@qwen-code/qwen-code 0.24.5-preview.0 → 0.24.5
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/bundled/browser-use/SKILL.md +11 -10
- package/bundled/browser-use/runtime/index.js +70 -31
- package/bundled/browser-use/runtime/native-host.js +1 -0
- package/bundled/browser-use/runtime/scripts/native-host-setup.js +1 -0
- package/bundled/computer-use/SKILL.md +182 -224
- package/bundled/qc-helper/docs/configuration/model-providers.md +13 -2
- package/bundled/qc-helper/docs/conversations-recovery.md +10 -0
- package/bundled/qc-helper/docs/features/browser-use.md +22 -12
- package/bundled/qc-helper/docs/features/channels/dingtalk.md +2 -2
- package/bundled/qc-helper/docs/features/channels/dws.md +7 -7
- package/bundled/qc-helper/docs/features/channels/feishu.md +1 -1
- package/bundled/qc-helper/docs/features/channels/github.md +13 -9
- package/bundled/qc-helper/docs/features/channels/gitlab.md +12 -5
- package/bundled/qc-helper/docs/features/channels/overview.md +121 -46
- package/bundled/qc-helper/docs/features/channels/plugins.md +12 -12
- package/bundled/qc-helper/docs/features/channels/qqbot.md +5 -5
- package/bundled/qc-helper/docs/features/channels/telegram.md +5 -5
- package/bundled/qc-helper/docs/features/channels/wecom.md +5 -4
- package/bundled/qc-helper/docs/features/channels/weixin.md +3 -3
- package/bundled/qc-helper/docs/features/code-review.md +4 -0
- package/bundled/qc-helper/docs/features/computer-use.md +1 -1
- package/bundled/qc-helper/docs/quickstart.md +14 -14
- package/bundled/qc-helper/docs/qwen-serve.md +10 -4
- package/bundled/review/SKILL.md +44 -9
- package/bundled/review/references/persistence.md +3 -4
- package/chunks/{MaxSizedBox-3RXPTLCS.js → MaxSizedBox-4MLWQHF3.js} +33 -31
- package/chunks/{StandaloneSessionPicker-74775YBZ.js → StandaloneSessionPicker-PDNU6KJJ.js} +50 -48
- package/chunks/{acp-subagent-executor-OQXOMTFK.js → acp-subagent-executor-JB2J6N73.js} +35 -33
- package/chunks/{acpAgent-MD56LD7L.js → acpAgent-CAPZFZCW.js} +123 -97
- package/chunks/{agent-75EZNG2Q.js → agent-MTWGIPWC.js} +18 -16
- package/chunks/{agent-headless-TQ6MWUDT.js → agent-headless-Z27XJSXK.js} +18 -16
- package/chunks/{anthropicContentGenerator-DCDXTX3R.js → anthropicContentGenerator-VAFZRJWG.js} +3 -3
- package/chunks/{askUserQuestion-2NU6CXK2.js → askUserQuestion-V4OFZD5D.js} +1 -1
- package/chunks/{bridge-KGJYQUWD.js → bridge-BUCSJHCE.js} +35 -33
- package/chunks/{channel-management-service-YN4A3BJ6.js → channel-management-service-Q2B7WUPL.js} +27 -10
- package/chunks/{channel-settings-store-773UOD6B.js → channel-settings-store-U25CVEL6.js} +42 -40
- package/chunks/{channel-worker-group-AKPVHRUO.js → channel-worker-group-QNX4OIMZ.js} +5 -5
- package/chunks/{channel-worker-manager-TDAQSKWX.js → channel-worker-manager-IJCPV4WY.js} +24 -5
- package/chunks/{channel-worker-supervisor-PUMSN4J2.js → channel-worker-supervisor-ENJ2AE2N.js} +4 -4
- package/chunks/{chunk-OU4ZCLGJ.js → chunk-242INZ6Y.js} +1 -1
- package/chunks/{chunk-JOFZBTVL.js → chunk-245NB3M4.js} +1 -1
- package/chunks/{chunk-LISITUEH.js → chunk-26KGIWIW.js} +1 -1
- package/chunks/{chunk-WPHZEGFC.js → chunk-2RQEWY2P.js} +1 -1
- package/chunks/{chunk-DCTJ3GVF.js → chunk-2SCE6YR2.js} +3 -3
- package/chunks/{chunk-STKUN7BR.js → chunk-2XNGG7R3.js} +1 -1
- package/chunks/{chunk-OQE7AA2W.js → chunk-36ZMEEBW.js} +16 -12
- package/chunks/{chunk-Y53WH7VD.js → chunk-44K6Q5AW.js} +3 -3
- package/chunks/{chunk-N4VKU36J.js → chunk-465XOJLQ.js} +1 -1
- package/chunks/{chunk-HD4IXPPC.js → chunk-4A4XNQEZ.js} +3 -3
- package/chunks/{chunk-RXB6Y33E.js → chunk-4VULJ3LV.js} +1 -1
- package/chunks/{chunk-EBRC4GX2.js → chunk-4XXUGJJS.js} +1 -1
- package/chunks/{chunk-MVC4XLNM.js → chunk-53IRNMPU.js} +118 -5
- package/chunks/{chunk-VGLXXHTF.js → chunk-5BLOZPTW.js} +1 -1
- package/chunks/{chunk-3SK2A75W.js → chunk-5OJQLD3P.js} +3 -3
- package/chunks/{chunk-WVNCMGAO.js → chunk-6FURC4LI.js} +1 -1
- package/chunks/{chunk-WVTM33Q3.js → chunk-6KXQIDK2.js} +4 -4
- package/chunks/{chunk-ZKDUQHU4.js → chunk-7MNHZUTA.js} +35 -18
- package/chunks/{chunk-JEIPBSGX.js → chunk-7P5WZQXF.js} +7 -7
- package/chunks/{chunk-GGUOO2XC.js → chunk-7RCAMBLN.js} +1 -1
- package/chunks/{chunk-FBLGI2SO.js → chunk-AAOMFXVZ.js} +7 -7
- package/chunks/{chunk-JM76TMGV.js → chunk-ACLD6C3R.js} +8798 -7901
- package/chunks/{chunk-4FCWKBOC.js → chunk-ALTMZEBU.js} +6 -6
- package/chunks/{chunk-ZHQSWNO6.js → chunk-AN62TPO6.js} +1 -1
- package/chunks/{chunk-U5DPG7JW.js → chunk-AYTI24XN.js} +1 -1
- package/chunks/{chunk-B53FO7JN.js → chunk-AZN2GSLM.js} +2 -2
- package/chunks/{chunk-6KQQPPFF.js → chunk-B3J4BSPL.js} +1 -1
- package/chunks/{chunk-SLSH5TFD.js → chunk-BMCDSO77.js} +4 -4
- package/chunks/{chunk-DBYUN4U3.js → chunk-BUDUHXX3.js} +1 -1
- package/chunks/{chunk-TS4Y2MHO.js → chunk-CGREZDGO.js} +1 -1
- package/chunks/chunk-CLNDQINM.js +523 -0
- package/chunks/{chunk-LNUQA3OE.js → chunk-CVRZNFXO.js} +1 -1
- package/chunks/{chunk-3DBI3LLL.js → chunk-CWLTXYKP.js} +4 -4
- package/chunks/{chunk-B3XMX4SN.js → chunk-DACCX4JI.js} +4 -4
- package/chunks/{chunk-YWZOEHBT.js → chunk-DE2WI7RU.js} +192 -62
- package/chunks/{chunk-3TQVPDCN.js → chunk-DU53RB7A.js} +2 -2
- package/chunks/{chunk-2KZURPTB.js → chunk-DZCTQ2MF.js} +6 -1
- package/chunks/{chunk-35SABQFH.js → chunk-DZUNDX4M.js} +1 -1
- package/chunks/{chunk-4INF7OYV.js → chunk-ELY2U74S.js} +2 -2
- package/chunks/chunk-EMGHODF7.js +56 -0
- package/chunks/{chunk-5FZKG4JB.js → chunk-EMOTEATH.js} +1 -1
- package/chunks/{chunk-LW7WW3Z5.js → chunk-ERGQUKZ2.js} +1 -1
- package/chunks/{chunk-TNWJJEDT.js → chunk-ES6EQNGR.js} +6 -6
- package/chunks/{chunk-E3TLOFX7.js → chunk-EUHSEMO4.js} +62 -7
- package/chunks/{chunk-N25B6FZN.js → chunk-EYCDA5MN.js} +2 -0
- package/chunks/{chunk-GPTEZLRR.js → chunk-F4ERRMCO.js} +25 -23
- package/chunks/{chunk-SXFZ5P7F.js → chunk-FE7D3WKV.js} +1 -1
- package/chunks/{chunk-XEXNBTYX.js → chunk-FH45BQGZ.js} +3 -3
- package/chunks/{chunk-CAORZAZD.js → chunk-FLBUHGL4.js} +10 -10
- package/chunks/{chunk-X2R47SFR.js → chunk-FLVPNMCS.js} +1 -1
- package/chunks/{chunk-5SZSV2CK.js → chunk-FVIJFKEQ.js} +3 -3
- package/chunks/{chunk-KFLDZ3HB.js → chunk-G6XRNTXF.js} +1 -1
- package/chunks/{chunk-2JHQ2J3Y.js → chunk-G72UHXC3.js} +5 -5
- package/chunks/{chunk-4A255ZI6.js → chunk-GAHZJLQG.js} +2 -2
- package/chunks/{chunk-7IVZOKKW.js → chunk-GKJGKTWJ.js} +3 -3
- package/chunks/{chunk-KY4HZXLV.js → chunk-GLPNIOEV.js} +33 -2
- package/chunks/{chunk-6PRSQUPJ.js → chunk-GQZZGEMS.js} +1 -1
- package/chunks/{chunk-G2AE7GYZ.js → chunk-GRUASRWC.js} +1 -1
- package/chunks/{chunk-HH7R6RLK.js → chunk-GTQ35GRO.js} +1 -1
- package/chunks/{chunk-LWRJLRZS.js → chunk-GYLDOFLU.js} +3 -3
- package/chunks/{chunk-MZRJ2JJS.js → chunk-HDSI3RDN.js} +136 -9
- package/chunks/{chunk-RO5K7QUL.js → chunk-HHMJ5ONX.js} +45 -31
- package/chunks/{chunk-E4HNTYHK.js → chunk-HVVQYSBA.js} +32 -9
- package/chunks/{chunk-H2GVLBFU.js → chunk-I36GIR6K.js} +64 -2
- package/chunks/{chunk-VTFLRL55.js → chunk-IBRV4T3I.js} +2 -2
- package/chunks/{chunk-4VSTV4C2.js → chunk-IH22ZGZI.js} +53 -2
- package/chunks/{chunk-AOW7WIWE.js → chunk-IQH7Q5OP.js} +4 -4
- package/chunks/{chunk-OB444SG3.js → chunk-IYKGSUTA.js} +1 -1
- package/chunks/{chunk-HS5OZTQF.js → chunk-J2FLXQJM.js} +1 -1
- package/chunks/{chunk-BBCH7PBA.js → chunk-KACKEW2M.js} +2 -2
- package/chunks/{chunk-JE3J5HFM.js → chunk-KAOHUUM7.js} +62 -251
- package/chunks/{chunk-JCMDVGPR.js → chunk-KGLPVCX7.js} +2 -2
- package/chunks/{chunk-QKXZOHHQ.js → chunk-LDURD6EP.js} +15 -62
- package/chunks/{chunk-O4IH5UEC.js → chunk-LLIYDIGU.js} +20 -20
- package/chunks/{chunk-3XHMOJCP.js → chunk-MBC3PULP.js} +1 -1
- package/chunks/{chunk-SRZA7OU4.js → chunk-MMCGLNPP.js} +6 -6
- package/chunks/{chunk-3NG2ZQAJ.js → chunk-NZC74TT2.js} +1 -1
- package/chunks/{chunk-47C3HPMW.js → chunk-O5YL6KSX.js} +47 -18
- package/chunks/{chunk-EIHZ4FFM.js → chunk-O6PPYFQN.js} +3 -3
- package/chunks/{chunk-XCU752HT.js → chunk-OICDXWXP.js} +13 -19
- package/chunks/{chunk-VJCKLKZX.js → chunk-OOU7XOZF.js} +3 -3
- package/chunks/{chunk-OM5NSL25.js → chunk-P4P7CH7H.js} +38 -38
- package/chunks/{chunk-CIS4SY3R.js → chunk-PPBZHGEQ.js} +3 -3
- package/chunks/{chunk-PB7JBAHF.js → chunk-PVBIEIVZ.js} +0 -1
- package/chunks/{chunk-GG3MO6NO.js → chunk-PWGMHXIV.js} +2 -2
- package/chunks/{chunk-6N2PJAZG.js → chunk-PX2ZOOGQ.js} +1 -1
- package/chunks/{chunk-NNN2PKPV.js → chunk-PYYPSK6Q.js} +36 -495
- package/chunks/{chunk-TKOQGFRE.js → chunk-PZOWKCPJ.js} +1 -1
- package/chunks/{chunk-PJ546DX4.js → chunk-Q36IJ74U.js} +17 -11
- package/chunks/chunk-Q4FJVWI4.js +78 -0
- package/chunks/{chunk-PA4HU5IQ.js → chunk-QATPE3SN.js} +13 -7
- package/chunks/{chunk-MBUUQJPV.js → chunk-QGKAYDES.js} +5 -5
- package/chunks/{chunk-TFBQ5CKI.js → chunk-QNEBHC2E.js} +1 -1
- package/chunks/{chunk-6NA357SF.js → chunk-QTNSMJKU.js} +1 -1
- package/chunks/{chunk-TDLEDOJN.js → chunk-QU7VULWX.js} +5 -4
- package/chunks/{chunk-LOTGIM6V.js → chunk-R3IFSY55.js} +20 -20
- package/chunks/{chunk-ZX6EZ7EH.js → chunk-RBE3WRSN.js} +3 -3
- package/chunks/{chunk-YSZ2XZTG.js → chunk-RBKZ6SK4.js} +5 -5
- package/chunks/{chunk-FLRFAPDA.js → chunk-RCL6OXZC.js} +5 -5
- package/chunks/{chunk-H4W6TJFJ.js → chunk-RONRTFAQ.js} +1 -1
- package/chunks/{chunk-ZEGLZ3MN.js → chunk-SCYKHWRM.js} +5 -5
- package/chunks/{chunk-STUJ7IMZ.js → chunk-SI7XKACY.js} +56 -56
- package/chunks/{chunk-RL2HSTEB.js → chunk-SYZPPX3O.js} +1492 -1140
- package/chunks/{chunk-VUYJRNG5.js → chunk-T7TJPVTY.js} +3 -3
- package/chunks/{chunk-4V5YKOBI.js → chunk-TF7UC7F6.js} +3 -3
- package/chunks/{chunk-NXZD3VNX.js → chunk-TL7DSR47.js} +1 -1
- package/chunks/{chunk-BVFBDXI2.js → chunk-TPFV5YZK.js} +1 -1
- package/chunks/{chunk-YIHOHHJL.js → chunk-TZHXHWEW.js} +1 -1
- package/chunks/{chunk-3X5BDEXS.js → chunk-U6RMVE5X.js} +8 -8
- package/chunks/{chunk-HRVFPNGT.js → chunk-VFNKO4FK.js} +4 -4
- package/chunks/{chunk-VPALWDQL.js → chunk-VUIH3BQL.js} +31 -12
- package/chunks/{chunk-WVNML4HH.js → chunk-VW33WARJ.js} +1 -1
- package/chunks/{chunk-MICQVBPI.js → chunk-WCLHOKAZ.js} +1 -1
- package/chunks/{chunk-KMQ2ZH3Q.js → chunk-WVWCRZ6M.js} +2 -2
- package/chunks/{chunk-5NFAKADR.js → chunk-WZCVB2ER.js} +1 -36
- package/chunks/{chunk-JNQEW7B2.js → chunk-X3A72KX5.js} +6 -6
- package/chunks/{chunk-3JSIWFNA.js → chunk-XHHUGXYW.js} +527 -135
- package/chunks/{chunk-VIA4STCR.js → chunk-YCCBLTSL.js} +3 -3
- package/chunks/{chunk-Q5IEY2TN.js → chunk-Z3I5B4DH.js} +1 -1
- package/chunks/{chunk-O346IB64.js → chunk-ZAJNI63I.js} +1 -1
- package/chunks/{chunk-QR4U27UW.js → chunk-ZJFCDRVP.js} +4 -4
- package/chunks/{codex-subagent-executor-437LQYGM.js → codex-subagent-executor-IKWULWIZ.js} +35 -33
- package/chunks/{config-utils-CVLI36KM.js → config-utils-3IOTAFBG.js} +38 -34
- package/chunks/{contextCommand-2KSW7H5F.js → contextCommand-ZKG2JFCR.js} +33 -31
- package/chunks/{core-runtime-4IB27E7J.js → core-runtime-5CAK5DSM.js} +32 -30
- package/chunks/{create-sub-session-A73TQDAN.js → create-sub-session-DG4CVOQC.js} +33 -31
- package/chunks/{daemon-Y6AOK7LF.js → daemon-D4OAVQKB.js} +1 -1
- package/chunks/{daemon-git-worktree-guard-BTKVV3DZ.js → daemon-git-worktree-guard-S3SFT3H7.js} +32 -30
- package/chunks/{daemon-status-provider-ETDIOWMS.js → daemon-status-provider-GG64ZJR3.js} +40 -38
- package/chunks/{daemon-trust-policy-U5SPHJLP.js → daemon-trust-policy-XNWYLQ32.js} +38 -36
- package/chunks/{daemon-trust-policy-monitor-QKRCO5WI.js → daemon-trust-policy-monitor-DR5CRWMM.js} +38 -36
- package/chunks/{deferred-core-runtime-FRELZPIE.js → deferred-core-runtime-V4Q674KN.js} +32 -30
- package/chunks/{dist-54LGNLWW.js → dist-3M75XY4G.js} +1 -1
- package/chunks/{dist-YZBMQPNS.js → dist-6U5NQYA7.js} +5 -5
- package/chunks/{dist-FVMLRUVM.js → dist-AS2RPYOB.js} +1 -1
- package/chunks/{dist-HANHY2MK.js → dist-GFT4GU72.js} +2 -2
- package/chunks/{dist-Y5GP7SWL.js → dist-J7JK3GPY.js} +10 -9
- package/chunks/{dist-O723VE2K.js → dist-JTPRKF5H.js} +30 -27
- package/chunks/{dist-MGZKUISU.js → dist-MOO5VOC5.js} +7 -20
- package/chunks/{dist-IZ66D5A3.js → dist-NJ2L5QKL.js} +1 -1
- package/chunks/{dist-EI2XAB4W.js → dist-YC6LDCKH.js} +22 -28
- package/chunks/{edit-TQ3CABYP.js → edit-FPIWTN3L.js} +20 -18
- package/chunks/{enter-worktree-J46XVFRS.js → enter-worktree-55OWD4LT.js} +4 -3
- package/chunks/{enterPlanMode-JHOWELZO.js → enterPlanMode-GDZVXYB2.js} +18 -16
- package/chunks/{environment-LUM7XX27.js → environment-Q2BVTUQO.js} +36 -32
- package/chunks/{errors-SH32ID5I.js → errors-MZTLVUEM.js} +34 -32
- package/chunks/{execution-sandbox-settings-HIYVUBII.js → execution-sandbox-settings-3WJ67GX3.js} +3 -1
- package/chunks/{execution-tool-IIEL25CL.js → execution-tool-DZ4XSEFZ.js} +21 -19
- package/chunks/{execution-worker-NKKEZ4XF.js → execution-worker-L3TM3F5D.js} +24 -22
- package/chunks/{exit-worktree-BC4SDZCC.js → exit-worktree-MI6N4OUP.js} +4 -3
- package/chunks/{exitPlanMode-PUICCCQ5.js → exitPlanMode-VIGOD2KP.js} +18 -16
- package/chunks/{fast-path-QH3QTZZA.js → fast-path-JCKEFUUL.js} +4 -4
- package/chunks/{fast-path-settings-TQAYWLXR.js → fast-path-settings-VIYSH3SD.js} +2 -2
- package/chunks/{glob-OEB4WH3Z.js → glob-UOKQZHKL.js} +18 -16
- package/chunks/{goal-tools-KWGKFUSK.js → goal-tools-G4RIX4ER.js} +18 -16
- package/chunks/{handleAutoUpdate-KEA7JSUD.js → handleAutoUpdate-UZZEGL3N.js} +34 -32
- package/chunks/{i18n-AC3MUXKZ.js → i18n-IL33FVND.js} +32 -30
- package/chunks/{initializer-WBD32BEX.js → initializer-BCXBRM6Y.js} +38 -36
- package/chunks/{installationInfo-JRGFTKWY.js → installationInfo-V7OKUOJV.js} +32 -30
- package/chunks/{list-S7KW7NBX.js → list-LQHG6SXA.js} +41 -39
- package/chunks/{llm-E32WLISX.js → llm-JWCANCDC.js} +85 -74
- package/chunks/{llm-content-generator-OMKJHC5P.js → llm-content-generator-OXMMHUVK.js} +3 -3
- package/chunks/{loadedSettingsAdapter-5OSU3J46.js → loadedSettingsAdapter-EKXSRWMY.js} +38 -36
- package/chunks/{local-execution-environment-IQHCTUJ5.js → local-execution-environment-XIQLRMLF.js} +24 -22
- package/chunks/{loggingContentGenerator-JIYG3LJS.js → loggingContentGenerator-6KHNZDTZ.js} +20 -18
- package/chunks/{managed-npm-update-RKAT7AMQ.js → managed-npm-update-MBUH5TIX.js} +32 -30
- package/chunks/managed-runtime-attestation-worker-G23AEEMF.js +367 -0
- package/chunks/{mcp-SV72BZKG.js → mcp-AYVCEEN7.js} +38 -36
- package/chunks/{model-call-collection-PKDMVCZN.js → model-call-collection-OKUGOY4B.js} +1 -1
- package/chunks/{model-configuration-A52XMQW7.js → model-configuration-Q3MNGG3B.js} +38 -36
- package/chunks/{modelConfigUtils-7O4P3SLE.js → modelConfigUtils-WC5XDR34.js} +33 -31
- package/chunks/{monitor-ZXRV2DJB.js → monitor-7JUZXYZN.js} +18 -16
- package/chunks/{nonInteractiveCli-UPSGIYRC.js → nonInteractiveCli-B3GCZ6NJ.js} +74 -73
- package/chunks/{nonInteractiveToolExecutor-TDKVR43J.js → nonInteractiveToolExecutor-IUHO7PXG.js} +19 -17
- package/chunks/{notebook-edit-FBVHAHYM.js → notebook-edit-IYDACZDW.js} +19 -17
- package/chunks/{omni-3NREMV2Q.js → omni-DLBHISHC.js} +10 -7
- package/chunks/{openaiContentGenerator-EWPBZFIT.js → openaiContentGenerator-W5GN6H6Z.js} +12 -10
- package/chunks/{openaiResponsesContentGenerator-3CI3PINB.js → openaiResponsesContentGenerator-BXXRYJQQ.js} +5 -5
- package/chunks/{pidfile-BBUANGZX.js → pidfile-QIBF53CW.js} +32 -30
- package/chunks/{processUtils-6OHQLG7W.js → processUtils-2LU22KCR.js} +2 -2
- package/chunks/{prompt-terminal-ledger-ZBFYXJ4L.js → prompt-terminal-ledger-LXFVLR6C.js} +33 -31
- package/chunks/{qwenContentGenerator-62F5IKXJ.js → qwenContentGenerator-LYMLXBWI.js} +21 -19
- package/chunks/{reactive-degrade-URJMXJ7N.js → reactive-degrade-HPYBJHYA.js} +6 -6
- package/chunks/{read-file-IM4Q5TKI.js → read-file-SXS2MKDY.js} +6 -3
- package/chunks/{record-artifact-K4XSMW4X.js → record-artifact-XP3X7RE5.js} +3 -2
- package/chunks/{record-source-XZCI3IGU.js → record-source-2VBLKVIE.js} +2 -2
- package/chunks/{report-findings-MCGXBQFX.js → report-findings-D2QUYUOG.js} +4 -3
- package/chunks/{request-shutdown-TT62PREA.js → request-shutdown-R5SA5GE3.js} +1 -1
- package/chunks/{resumeHistoryUtils-O3NQMDVR.js → resumeHistoryUtils-UPGZGP5V.js} +35 -33
- package/chunks/{ripGrep-BG2FEVIV.js → ripGrep-X33VVIN5.js} +8 -5
- package/chunks/{run-qwen-serve-GMLWJITM.js → run-qwen-serve-CUB2NZ6P.js} +278 -79
- package/chunks/{runtime-SSGPOXRZ.js → runtime-2DAVBADX.js} +43 -41
- package/chunks/{sandboxConfig-ALYLLNWY.js → sandboxConfig-ESBH3F27.js} +34 -32
- package/chunks/{scheduled-tasks-QJTC5XQ7.js → scheduled-tasks-TGWYXZWW.js} +38 -36
- package/chunks/{scheduler-PEXTY7IG.js → scheduler-XGLZCXPN.js} +34 -32
- package/chunks/{send-message-3UM7XRTB.js → send-message-FBU6WDID.js} +1 -1
- package/chunks/{serve-OVAUTKXK.js → serve-7RX4AIID.js} +38 -36
- package/chunks/{server-3MMYOOJW.js → server-MJETIFJS.js} +1789 -375
- package/chunks/{session-PZBIKBQJ.js → session-7AVYU3TC.js} +75 -74
- package/chunks/{session-attachments-root-ESP5CNBV.js → session-attachments-root-RONFQ3D3.js} +32 -30
- package/chunks/{session-pr-refresh-B3N7PKUP.js → session-pr-refresh-ZPT6TAD4.js} +37 -35
- package/chunks/{settings-KSQ2DGPY.js → settings-FPMUAVWD.js} +37 -35
- package/chunks/{shell-3V26EVNC.js → shell-THD5EYOK.js} +18 -16
- package/chunks/{skill-XP7F3LBV.js → skill-2D6KXDC5.js} +52 -13
- package/chunks/{skill-settings-PDESL7S3.js → skill-settings-XW7X244B.js} +38 -36
- package/chunks/{spawnChannel-NVO7CCBW.js → spawnChannel-DBSAAUUT.js} +34 -32
- package/chunks/{standalone-update-FDWS2EGF.js → standalone-update-TFAWA676.js} +33 -31
- package/chunks/{start-opentui-ui-WIFFY5UD.js → start-opentui-ui-VYMAXPBH.js} +87 -86
- package/chunks/{startInteractiveUI-YBLIRIHD.js → startInteractiveUI-Z54XKH35.js} +1037 -966
- package/chunks/{task-create-PEI7AJLE.js → task-create-PVF66J3R.js} +2 -2
- package/chunks/{task-update-MQZRWBGK.js → task-update-RSIITTOK.js} +2 -2
- package/chunks/{team-create-Z5JUEMB7.js → team-create-TPCELNBJ.js} +18 -16
- package/chunks/{team-plan-approval-ZLLHMEQN.js → team-plan-approval-RUURGHQL.js} +18 -16
- package/chunks/{terminal-image-renderer-QFO2JTTT.js → terminal-image-renderer-SLJVUD4Z.js} +32 -30
- package/chunks/{theme-manager-N7ILUTRY.js → theme-manager-VBOIN2KT.js} +32 -30
- package/chunks/{tool-call-PLSQ34VE.js → tool-call-DUHP6UXC.js} +2 -2
- package/chunks/{tool-result-media-OAHUKGRK.js → tool-result-media-WU6QAREN.js} +10 -7
- package/chunks/{tool-search-534QKE2X.js → tool-search-ET4NH2LK.js} +7 -4
- package/chunks/{total-session-admission-EZJQKTPF.js → total-session-admission-UWMJWTWP.js} +35 -33
- package/chunks/{trustedFolders-4ZEV6RXD.js → trustedFolders-3WNZBUH7.js} +33 -31
- package/chunks/{update-relaunch-GB3SGRDP.js → update-relaunch-SHS3BD6V.js} +5 -5
- package/chunks/{updateCheck-DVAGAEQ4.js → updateCheck-MDF2FCRN.js} +32 -30
- package/chunks/{upload-config-DMZVTDH7.js → upload-config-LVVUIKA2.js} +4 -4
- package/chunks/{useAutoAcceptIndicator-PTQBS42B.js → useAutoAcceptIndicator-26OOM7OM.js} +41 -39
- package/chunks/{validateNonInterActiveAuth-DU3WXVSU.js → validateNonInterActiveAuth-TBCZCQIN.js} +72 -71
- package/chunks/{version-PNMZGKCV.js → version-MICV7I4Y.js} +1 -1
- package/chunks/{web-fetch-LMCOAHW6.js → web-fetch-3O2DFRE5.js} +13 -9
- package/chunks/{web-search-N7RR74LA.js → web-search-5FS3NB3D.js} +4 -4
- package/chunks/{web-shell-static-GI6FVIMI.js → web-shell-static-E3O6NW7Y.js} +4 -3
- package/chunks/{workflow-ZZPHI7FK.js → workflow-FRJO5ZUI.js} +19 -17
- package/chunks/{workspace-providers-status-TU73CNRF.js → workspace-providers-status-I5MO7Z2T.js} +43 -41
- package/chunks/{workspace-registration-store-743FRSOU.js → workspace-registration-store-CBHKV34L.js} +1 -1
- package/chunks/{workspace-registry-S7QTXFWM.js → workspace-registry-2UKNZO5M.js} +35 -33
- package/chunks/{workspace-runtime-coordinator-GWNDUIGO.js → workspace-runtime-coordinator-TKCI5WJW.js} +36 -34
- package/chunks/{workspace-service-CERZFJ3B.js → workspace-service-M3ZKR6WL.js} +40 -38
- package/chunks/{workspace-skills-status-5M3EIAUY.js → workspace-skills-status-OC3EYL7U.js} +41 -39
- package/chunks/{workspace-trust-reconciler-Q3LUKMQB.js → workspace-trust-reconciler-YQZSUOH4.js} +41 -39
- package/chunks/{write-file-CT54LXQL.js → write-file-BATJLBJX.js} +21 -19
- package/chunks/{zoom-image-EU3PGSZM.js → zoom-image-5I7DDLQE.js} +10 -6
- package/cli-entry.js +13 -0
- package/cli.js +24 -12
- package/execution-worker.js +1 -1
- package/export-transcript-document.css +1 -1
- package/export-transcript-document.js +104 -104
- package/package.json +3 -3
- package/web-shell/assets/{abnfDiagram-VCTEODGH-DDYEvG-M.js → abnfDiagram-VCTEODGH-DQHroFS1.js} +1 -1
- package/web-shell/assets/{arc-DQncKWFX.js → arc-BrOc_HVh.js} +1 -1
- package/web-shell/assets/{architectureDiagram-5GKGNRK7-C0-8u9zj.js → architectureDiagram-5GKGNRK7-DXce8IH6.js} +1 -1
- package/web-shell/assets/{blockDiagram-NRAW4CY4-Cpt59Ge5.js → blockDiagram-NRAW4CY4-96A3Q3-l.js} +1 -1
- package/web-shell/assets/{c4Diagram-UCG6FXSJ-BvESWh83.js → c4Diagram-UCG6FXSJ-CQBg2PSg.js} +1 -1
- package/web-shell/assets/channel-CBP6pwSs.js +1 -0
- package/web-shell/assets/{chunk-2Q5K7J3B-wKulGIU6.js → chunk-2Q5K7J3B-i_jhVz-t.js} +1 -1
- package/web-shell/assets/{chunk-5VM5RSS4-BX6kRoq7.js → chunk-5VM5RSS4-Cx3gMrWT.js} +1 -1
- package/web-shell/assets/{chunk-F27PBJKO-wA4IqTt-.js → chunk-F27PBJKO-B9WwW7C0.js} +1 -1
- package/web-shell/assets/{chunk-G27WJ6UU-B7hzevlb.js → chunk-G27WJ6UU-B8t0FNPI.js} +1 -1
- package/web-shell/assets/{chunk-JWPE2WC7-BdBg9pJg.js → chunk-JWPE2WC7-Dg0__6CF.js} +1 -1
- package/web-shell/assets/{chunk-LCL6LL3I-DghmF6LJ.js → chunk-LCL6LL3I-DUwE5g3m.js} +1 -1
- package/web-shell/assets/{chunk-POPQ4Y6H-BbReTOod.js → chunk-POPQ4Y6H-BirYW5iS.js} +1 -1
- package/web-shell/assets/{chunk-SVP7TREG-C1t0_19D.js → chunk-SVP7TREG-_ONJKtFF.js} +1 -1
- package/web-shell/assets/{chunk-XXDRQBXY-DQBby5mI.js → chunk-XXDRQBXY-DGi0chgj.js} +1 -1
- package/web-shell/assets/classDiagram-DTDB5LWJ-_4_fFrN3.js +1 -0
- package/web-shell/assets/classDiagram-v2-JRS7N3AN-_4_fFrN3.js +1 -0
- package/web-shell/assets/{cose-bilkent-JH36ORCC-CNrSyg7B.js → cose-bilkent-JH36ORCC-BSSFxREn.js} +1 -1
- package/web-shell/assets/{cynefin-OW5HDTMX-DoxgDRN-.js → cynefin-OW5HDTMX-h-oYVCez.js} +1 -1
- package/web-shell/assets/{cynefinDiagram-5FMLGOSQ-BmUwbS8Q.js → cynefinDiagram-5FMLGOSQ-CXj6T7Pm.js} +1 -1
- package/web-shell/assets/{dagre-3AP2YEHR-BJrOVIjc.js → dagre-3AP2YEHR-Ch9GIhJm.js} +1 -1
- package/web-shell/assets/{diagram-S7CK7UJ4-TDX4KU9V.js → diagram-S7CK7UJ4-Cq3W541T.js} +1 -1
- package/web-shell/assets/{diagram-UQ7AKVKN-D3VUQkGl.js → diagram-UQ7AKVKN-Bm1R5-sN.js} +1 -1
- package/web-shell/assets/{diagram-VSXAHHWV-CqCpgViy.js → diagram-VSXAHHWV-BW2qG6Vh.js} +1 -1
- package/web-shell/assets/{diagram-VX7I27RA-CthqfwCs.js → diagram-VX7I27RA-DN96PhRe.js} +1 -1
- package/web-shell/assets/{diagram-Z3DM3KII-BRY3Ahvu.js → diagram-Z3DM3KII-A8MnwaJr.js} +1 -1
- package/web-shell/assets/{ebnfDiagram-PWID7BFC-tJvTnIwp.js → ebnfDiagram-PWID7BFC-CZTpUypI.js} +1 -1
- package/web-shell/assets/{erDiagram-SSCWMZ5O-DT4b7w5B.js → erDiagram-SSCWMZ5O-CbxCRFru.js} +1 -1
- package/web-shell/assets/{flowDiagram-A5DVABFB-C5oirWSf.js → flowDiagram-A5DVABFB-Bt1PM2Dy.js} +1 -1
- package/web-shell/assets/{ganttDiagram-EL5Y4UJY-ZD3kNlO4.js → ganttDiagram-EL5Y4UJY-CTgim3LX.js} +1 -1
- package/web-shell/assets/{gitGraphDiagram-WWUBYQGX-Bp1sg_wH.js → gitGraphDiagram-WWUBYQGX-h4jX7S4l.js} +1 -1
- package/web-shell/assets/{index-DSIzVof7.js → index-BDxWHGNm.js} +1 -1
- package/web-shell/assets/index-Bd3iA5Er.js +2407 -0
- package/web-shell/assets/index-DuwfO01z.css +36 -0
- package/web-shell/assets/{infoDiagram-RXCK75RN-Btumz_CZ.js → infoDiagram-RXCK75RN-DsIsFmZ4.js} +1 -1
- package/web-shell/assets/{ishikawaDiagram-5VMMS53U-Dx8_uvso.js → ishikawaDiagram-5VMMS53U-BgF2V3rC.js} +1 -1
- package/web-shell/assets/{journeyDiagram-EYS64GPL-DS5spUhj.js → journeyDiagram-EYS64GPL-CJ2ibWhB.js} +1 -1
- package/web-shell/assets/{kanban-definition-3QL26DDD-DttC9d4D.js → kanban-definition-3QL26DDD-oqNfpjND.js} +1 -1
- package/web-shell/assets/{layout-BDOJQJbX.js → layout-DKF2f-UC.js} +1 -1
- package/web-shell/assets/{linear-BsUVMxld.js → linear-CadmYA8J.js} +1 -1
- package/web-shell/assets/{mermaid.core-De4-EW4Z.js → mermaid.core-BSD13L-h.js} +6 -6
- package/web-shell/assets/{mindmap-definition-FBJOCRG2-BsYY98Wv.js → mindmap-definition-FBJOCRG2-Cg3jlHzV.js} +1 -1
- package/web-shell/assets/{pegDiagram-XKGWAZYB-DXnnQrVY.js → pegDiagram-XKGWAZYB-BGzqlBWk.js} +1 -1
- package/web-shell/assets/{pieDiagram-E7YTZNPT-DGLAGUYR.js → pieDiagram-E7YTZNPT-BVDdPYnC.js} +1 -1
- package/web-shell/assets/{quadrantDiagram-AXDQQJYC-Y8DcMTa5.js → quadrantDiagram-AXDQQJYC-D7maRW6r.js} +1 -1
- package/web-shell/assets/{railroadDiagram-O6MQD6OU-ZgauslUZ.js → railroadDiagram-O6MQD6OU-C7J0Nnqc.js} +1 -1
- package/web-shell/assets/{requirementDiagram-EFPCY7ZU-Kxtu4twe.js → requirementDiagram-EFPCY7ZU-CDEpUB7S.js} +1 -1
- package/web-shell/assets/{sankeyDiagram-P5KCCOFB-BKsLF9EA.js → sankeyDiagram-P5KCCOFB-DoA0BWeR.js} +1 -1
- package/web-shell/assets/{sequenceDiagram-WJ2MYXX4-D8sCv1NK.js → sequenceDiagram-WJ2MYXX4-DlqRjDLl.js} +1 -1
- package/web-shell/assets/{sizeCapture-X5ZJPWSS-BX8sokZX.js → sizeCapture-X5ZJPWSS-3l2EJ1DB.js} +1 -1
- package/web-shell/assets/{stateDiagram-HBIQ2CUA-DFMl58kv.js → stateDiagram-HBIQ2CUA-Bdq0N6Lr.js} +1 -1
- package/web-shell/assets/stateDiagram-v2-4QOOHH4V-DtdYpKZp.js +1 -0
- package/web-shell/assets/{swimlanes-XN3QIQJK-BnMwURLN.js → swimlanes-XN3QIQJK-B4ArxdLV.js} +1 -1
- package/web-shell/assets/swimlanesDiagram-VK2B7HYN-B_iL0Dc4.js +8 -0
- package/web-shell/assets/{timeline-definition-24CTP7MA-C8y77DDz.js → timeline-definition-24CTP7MA-B_Ug6D_k.js} +1 -1
- package/web-shell/assets/{vennDiagram-4TSXK5OY-DOWQgX9u.js → vennDiagram-4TSXK5OY-BR9tvaDT.js} +1 -1
- package/web-shell/assets/{wardleyDiagram-VM6X3IG4-BM0AVIzE.js → wardleyDiagram-VM6X3IG4-BdGIt6qE.js} +1 -1
- package/web-shell/assets/{xychartDiagram-S5SC5T6Z-B18-YghG.js → xychartDiagram-S5SC5T6Z-NxS8XkXN.js} +1 -1
- package/web-shell/index.html +2 -2
- package/web-shell/sw.js +1 -1
- package/bundled/computer-use/references/macos.md +0 -208
- package/bundled/computer-use/references/windows-linux.md +0 -247
- package/web-shell/assets/channel-B88Zt8_x.js +0 -1
- package/web-shell/assets/classDiagram-DTDB5LWJ-Dp-7ruHm.js +0 -1
- package/web-shell/assets/classDiagram-v2-JRS7N3AN-Dp-7ruHm.js +0 -1
- package/web-shell/assets/index-CpxLhWqx.js +0 -2337
- package/web-shell/assets/index-mr0Sw0G-.css +0 -36
- package/web-shell/assets/stateDiagram-v2-4QOOHH4V-B3HSbbo2.js +0 -1
- package/web-shell/assets/swimlanesDiagram-VK2B7HYN-FnO0SUMi.js +0 -8
|
@@ -5,14 +5,14 @@ import {
|
|
|
5
5
|
enableMouseEvents,
|
|
6
6
|
useKeypress,
|
|
7
7
|
useKeypressContext
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-RBKZ6SK4.js";
|
|
9
9
|
import {
|
|
10
10
|
INLINE_CODE_SPAN_PATTERN_SOURCE,
|
|
11
11
|
mergeInlineMathMatches,
|
|
12
12
|
readInlineMathSpanAt,
|
|
13
13
|
unescapeMarkdownBeforeMath,
|
|
14
14
|
unescapeMarkdownDollars
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-FVIJFKEQ.js";
|
|
16
16
|
import {
|
|
17
17
|
MINIMUM_MAX_HEIGHT,
|
|
18
18
|
MaxSizedBox
|
|
@@ -27,7 +27,7 @@ import {
|
|
|
27
27
|
ToolElapsedTime,
|
|
28
28
|
ToolStatusIndicator,
|
|
29
29
|
isCollapsibleTool
|
|
30
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-44K6Q5AW.js";
|
|
31
31
|
import {
|
|
32
32
|
formatDuration,
|
|
33
33
|
formatTokenCount
|
|
@@ -47,10 +47,6 @@ import {
|
|
|
47
47
|
use_stdout_default,
|
|
48
48
|
wrapAnsi
|
|
49
49
|
} from "./chunk-4GG4IOFX.js";
|
|
50
|
-
import {
|
|
51
|
-
resolveColor,
|
|
52
|
-
themeManager
|
|
53
|
-
} from "./chunk-NHSGF64C.js";
|
|
54
50
|
import {
|
|
55
51
|
require_react
|
|
56
52
|
} from "./chunk-5QWWOFGG.js";
|
|
@@ -64,6 +60,10 @@ import {
|
|
|
64
60
|
import {
|
|
65
61
|
formatInlineImageOverflow
|
|
66
62
|
} from "./chunk-ESETIGBP.js";
|
|
63
|
+
import {
|
|
64
|
+
resolveColor,
|
|
65
|
+
themeManager
|
|
66
|
+
} from "./chunk-NHSGF64C.js";
|
|
67
67
|
import {
|
|
68
68
|
cpLen,
|
|
69
69
|
cpSlice,
|
|
@@ -90,8 +90,9 @@ import {
|
|
|
90
90
|
allowEditorTypeInSandbox,
|
|
91
91
|
getEditorExecutable,
|
|
92
92
|
getExternalEditorCommand,
|
|
93
|
+
isEditorAvailable,
|
|
93
94
|
isValidEditorType
|
|
94
|
-
} from "./chunk-
|
|
95
|
+
} from "./chunk-SYZPPX3O.js";
|
|
95
96
|
import {
|
|
96
97
|
ShellExecutionService
|
|
97
98
|
} from "./chunk-QXQMBRGL.js";
|
|
@@ -103,7 +104,7 @@ import {
|
|
|
103
104
|
} from "./chunk-CHEIIBT3.js";
|
|
104
105
|
import {
|
|
105
106
|
buildHumanReadableRuleLabel
|
|
106
|
-
} from "./chunk-
|
|
107
|
+
} from "./chunk-O5YL6KSX.js";
|
|
107
108
|
import {
|
|
108
109
|
sanitizeForOsc,
|
|
109
110
|
supportsHyperlinks,
|
|
@@ -114,7 +115,7 @@ import {
|
|
|
114
115
|
formatVisionBridgeNoticeDisplay,
|
|
115
116
|
isVisionBridgeNoticeDisplay,
|
|
116
117
|
uiTelemetryService
|
|
117
|
-
} from "./chunk-
|
|
118
|
+
} from "./chunk-HDSI3RDN.js";
|
|
118
119
|
import {
|
|
119
120
|
isTerminalImageDisplay
|
|
120
121
|
} from "./chunk-DYBNVJ2F.js";
|
|
@@ -9396,6 +9397,11 @@ var ToolConfirmationMessage = /* @__PURE__ */ __name(({
|
|
|
9396
9397
|
const hidesAlwaysAllow = "hideAlwaysAllow" in confirmationDetails && confirmationDetails.hideAlwaysAllow === true;
|
|
9397
9398
|
const settings = useSettings();
|
|
9398
9399
|
const preferredEditor = settings.merged.general?.preferredEditor;
|
|
9400
|
+
const hideModify = confirmationDetails.type === "edit" ? confirmationDetails.hideModify : false;
|
|
9401
|
+
const editorAvailable = (0, import_react24.useMemo)(
|
|
9402
|
+
() => !compactMode && confirmationDetails.type === "edit" && !hideModify && preferredEditor !== void 0 && isEditorAvailable(preferredEditor),
|
|
9403
|
+
[compactMode, confirmationDetails.type, hideModify, preferredEditor]
|
|
9404
|
+
);
|
|
9399
9405
|
const [ideClient, setIdeClient] = (0, import_react24.useState)(null);
|
|
9400
9406
|
const [isDiffingEnabled, setIsDiffingEnabled] = (0, import_react24.useState)(false);
|
|
9401
9407
|
(0, import_react24.useEffect)(() => {
|
|
@@ -9530,7 +9536,7 @@ var ToolConfirmationMessage = /* @__PURE__ */ __name(({
|
|
|
9530
9536
|
key: "Yes, allow always"
|
|
9531
9537
|
});
|
|
9532
9538
|
}
|
|
9533
|
-
if (!confirmationDetails.hideModify && (!config.getIdeMode() || !isDiffingEnabled) &&
|
|
9539
|
+
if (!confirmationDetails.hideModify && (!config.getIdeMode() || !isDiffingEnabled) && editorAvailable) {
|
|
9534
9540
|
options.push({
|
|
9535
9541
|
label: t("Modify with external editor"),
|
|
9536
9542
|
value: "modify_with_editor" /* ModifyWithEditor */,
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
// Force strict mode and setup for ESM
|
|
2
|
+
"use strict";
|
|
3
|
+
import {
|
|
4
|
+
sanitizeMimeForPlaceholder
|
|
5
|
+
} from "./chunk-GC3J5W2O.js";
|
|
6
|
+
import {
|
|
7
|
+
init_esbuild_shims
|
|
8
|
+
} from "./chunk-5O2XNYP6.js";
|
|
9
|
+
import {
|
|
10
|
+
__name
|
|
11
|
+
} from "./chunk-J2S4EL5Y.js";
|
|
12
|
+
|
|
13
|
+
// packages/core/src/core/inlineMediaLimit.ts
|
|
14
|
+
init_esbuild_shims();
|
|
15
|
+
var DEFAULT_MAX_INLINE_MEDIA_BYTES = 10 * 1024 * 1024;
|
|
16
|
+
function getMaxInlineMediaBytes() {
|
|
17
|
+
const raw = process.env["QWEN_CODE_MAX_INLINE_MEDIA_BYTES"];
|
|
18
|
+
if (raw === void 0 || raw.trim() === "") {
|
|
19
|
+
return DEFAULT_MAX_INLINE_MEDIA_BYTES;
|
|
20
|
+
}
|
|
21
|
+
const parsed = Number(raw);
|
|
22
|
+
return Number.isInteger(parsed) && parsed > 0 ? parsed : DEFAULT_MAX_INLINE_MEDIA_BYTES;
|
|
23
|
+
}
|
|
24
|
+
__name(getMaxInlineMediaBytes, "getMaxInlineMediaBytes");
|
|
25
|
+
function approxBase64Bytes(base64) {
|
|
26
|
+
let start = 0;
|
|
27
|
+
if (base64.startsWith("data:")) {
|
|
28
|
+
const commaIndex = base64.indexOf(",");
|
|
29
|
+
if (commaIndex !== -1) {
|
|
30
|
+
start = commaIndex + 1;
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
const length = base64.length - start;
|
|
34
|
+
if (length === 0) {
|
|
35
|
+
return 0;
|
|
36
|
+
}
|
|
37
|
+
const padding = base64.endsWith("==") ? 2 : base64.endsWith("=") ? 1 : 0;
|
|
38
|
+
return Math.floor(length * 3 / 4) - padding;
|
|
39
|
+
}
|
|
40
|
+
__name(approxBase64Bytes, "approxBase64Bytes");
|
|
41
|
+
function formatMb(bytes) {
|
|
42
|
+
return (bytes / (1024 * 1024)).toFixed(1);
|
|
43
|
+
}
|
|
44
|
+
__name(formatMb, "formatMb");
|
|
45
|
+
var DEFAULT_REMEDY = "Ask the user to resize/compress it, or reference it via an @file path so it can be read from disk.";
|
|
46
|
+
var TOOL_RESULT_MEDIA_REMEDY = "Ask the user to have the tool return a smaller or lower-resolution payload.";
|
|
47
|
+
function oversizedMediaPlaceholder(mimeType, bytes, limitBytes, remedy = DEFAULT_REMEDY) {
|
|
48
|
+
const mime = sanitizeMimeForPlaceholder(mimeType);
|
|
49
|
+
return `[Media omitted: ${mime} is ~${formatMb(bytes)}MB, exceeding the ${formatMb(limitBytes)}MB inline limit. ${remedy}]`;
|
|
50
|
+
}
|
|
51
|
+
__name(oversizedMediaPlaceholder, "oversizedMediaPlaceholder");
|
|
52
|
+
function clampInlineMediaPart(part, limitBytes = getMaxInlineMediaBytes(), remedy) {
|
|
53
|
+
const data = part.inlineData?.data;
|
|
54
|
+
if (!data) {
|
|
55
|
+
return part;
|
|
56
|
+
}
|
|
57
|
+
const bytes = approxBase64Bytes(data);
|
|
58
|
+
if (bytes <= limitBytes) {
|
|
59
|
+
return part;
|
|
60
|
+
}
|
|
61
|
+
const mimeType = part.inlineData?.mimeType ?? "application/octet-stream";
|
|
62
|
+
return {
|
|
63
|
+
text: oversizedMediaPlaceholder(mimeType, bytes, limitBytes, remedy)
|
|
64
|
+
};
|
|
65
|
+
}
|
|
66
|
+
__name(clampInlineMediaPart, "clampInlineMediaPart");
|
|
67
|
+
|
|
68
|
+
export {
|
|
69
|
+
getMaxInlineMediaBytes,
|
|
70
|
+
approxBase64Bytes,
|
|
71
|
+
TOOL_RESULT_MEDIA_REMEDY,
|
|
72
|
+
clampInlineMediaPart
|
|
73
|
+
};
|
|
74
|
+
/**
|
|
75
|
+
* @license
|
|
76
|
+
* Copyright 2025 Qwen Team
|
|
77
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
78
|
+
*/
|
|
@@ -1,12 +1,15 @@
|
|
|
1
1
|
// Force strict mode and setup for ESM
|
|
2
2
|
"use strict";
|
|
3
3
|
import {
|
|
4
|
-
|
|
4
|
+
WEB_SHELL_PAGE_PATHS,
|
|
5
|
+
isDocumentNavigation
|
|
6
|
+
} from "./chunk-EMGHODF7.js";
|
|
7
|
+
import {
|
|
5
8
|
require_express
|
|
6
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-WZCVB2ER.js";
|
|
7
10
|
import {
|
|
8
11
|
WEB_SHELL_PWA_ASSETS
|
|
9
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-IH22ZGZI.js";
|
|
10
13
|
import {
|
|
11
14
|
writeStderrLine
|
|
12
15
|
} from "./chunk-7FA2II6K.js";
|
|
@@ -156,10 +159,13 @@ function mountWebShellAssets(app, webShellDir, frameAncestors = []) {
|
|
|
156
159
|
res.status(404).type("text/plain").send("Not found");
|
|
157
160
|
});
|
|
158
161
|
app.get("/", (req, res) => sendIndex(req, res));
|
|
159
|
-
app.get(
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
162
|
+
app.get(
|
|
163
|
+
[...WEB_SHELL_PAGE_PATHS, "/session/:id"],
|
|
164
|
+
(req, res, next) => {
|
|
165
|
+
if (!isDocumentNavigation(req)) return next();
|
|
166
|
+
sendIndex(req, res);
|
|
167
|
+
}
|
|
168
|
+
);
|
|
163
169
|
for (const {
|
|
164
170
|
route,
|
|
165
171
|
contentType,
|
|
@@ -2,16 +2,16 @@
|
|
|
2
2
|
"use strict";
|
|
3
3
|
import {
|
|
4
4
|
loadSettings
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-36ZMEEBW.js";
|
|
6
6
|
import {
|
|
7
7
|
getCurrentLanguage
|
|
8
8
|
} from "./chunk-LDNRKF24.js";
|
|
9
9
|
import {
|
|
10
10
|
isWorkspaceTrusted
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-245NB3M4.js";
|
|
12
12
|
import {
|
|
13
13
|
hashMcpServerConfig
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-XHHUGXYW.js";
|
|
15
15
|
import {
|
|
16
16
|
require_strip_json_comments
|
|
17
17
|
} from "./chunk-ALGGS7UH.js";
|
|
@@ -25,11 +25,11 @@ import {
|
|
|
25
25
|
isGatedMcpScope,
|
|
26
26
|
normalizeClaudeMcpServer,
|
|
27
27
|
runWithTimeout
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-SYZPPX3O.js";
|
|
29
29
|
import {
|
|
30
30
|
getMCPServerLastError,
|
|
31
31
|
getMCPServerStatus
|
|
32
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-HDSI3RDN.js";
|
|
33
33
|
import {
|
|
34
34
|
atomicWriteFile
|
|
35
35
|
} from "./chunk-GLN4T62H.js";
|
|
@@ -7,10 +7,10 @@ import {
|
|
|
7
7
|
jsonStringPayloadByteLength,
|
|
8
8
|
observeAcpToolResultProjection,
|
|
9
9
|
truncateJsonStringPayload
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-7MNHZUTA.js";
|
|
11
11
|
import {
|
|
12
12
|
isA2uiToolMeta
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-F4ERRMCO.js";
|
|
14
14
|
import {
|
|
15
15
|
redactLogCredentials
|
|
16
16
|
} from "./chunk-M5GB774H.js";
|
|
@@ -18,7 +18,7 @@ import {
|
|
|
18
18
|
getResponseText,
|
|
19
19
|
lastHistoryContentFromRecords,
|
|
20
20
|
restorableAskUserQuestionCallIds
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-SYZPPX3O.js";
|
|
22
22
|
import {
|
|
23
23
|
isShellResultDisplay,
|
|
24
24
|
mapShellResultText
|
|
@@ -26,7 +26,7 @@ import {
|
|
|
26
26
|
import {
|
|
27
27
|
parseGoalSnapshotV2,
|
|
28
28
|
parseGoalStateCause
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-QNEBHC2E.js";
|
|
30
30
|
import {
|
|
31
31
|
init_esbuild_shims
|
|
32
32
|
} from "./chunk-5O2XNYP6.js";
|
|
@@ -752,6 +752,7 @@ function parseTranscriptReplayState(replay, logger) {
|
|
|
752
752
|
{
|
|
753
753
|
callId: pending.callId,
|
|
754
754
|
toolName: pending.toolName,
|
|
755
|
+
...pending.resolvedToolName ? { resolvedToolName: pending.resolvedToolName } : {},
|
|
755
756
|
recordId: pending.sourceRecordId,
|
|
756
757
|
...pending.sourceTimestamp ? { timestamp: pending.sourceTimestamp } : {},
|
|
757
758
|
...pending.rawCallId ? { rawCallId: pending.rawCallId } : {},
|
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
// Force strict mode and setup for ESM
|
|
2
2
|
"use strict";
|
|
3
|
+
import {
|
|
4
|
+
JsonOutputAdapter
|
|
5
|
+
} from "./chunk-IBRV4T3I.js";
|
|
3
6
|
import {
|
|
4
7
|
normalizePartList
|
|
5
8
|
} from "./chunk-5IENVM7Z.js";
|
|
@@ -7,15 +10,12 @@ import {
|
|
|
7
10
|
settleChatRecording,
|
|
8
11
|
subscribeToHeadlessChatRecordingFailures
|
|
9
12
|
} from "./chunk-R3QZPTZF.js";
|
|
10
|
-
import {
|
|
11
|
-
handleAtCommand
|
|
12
|
-
} from "./chunk-FBLGI2SO.js";
|
|
13
|
-
import {
|
|
14
|
-
JsonOutputAdapter
|
|
15
|
-
} from "./chunk-VTFLRL55.js";
|
|
16
13
|
import {
|
|
17
14
|
StreamJsonOutputAdapter
|
|
18
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-ZJFCDRVP.js";
|
|
16
|
+
import {
|
|
17
|
+
handleAtCommand
|
|
18
|
+
} from "./chunk-AAOMFXVZ.js";
|
|
19
19
|
import {
|
|
20
20
|
buildInitialSystemReminders,
|
|
21
21
|
buildSystemMessage,
|
|
@@ -26,11 +26,11 @@ import {
|
|
|
26
26
|
handleSlashCommand,
|
|
27
27
|
insertAfterFunctionResponses,
|
|
28
28
|
isSlashCommand
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-P4P7CH7H.js";
|
|
30
30
|
import {
|
|
31
31
|
RunBudgetEnforcer,
|
|
32
32
|
cleanupReviewWorktreeLeases
|
|
33
|
-
} from "./chunk-
|
|
33
|
+
} from "./chunk-ACLD6C3R.js";
|
|
34
34
|
import {
|
|
35
35
|
formatDuration
|
|
36
36
|
} from "./chunk-3JDX2ANU.js";
|
|
@@ -44,7 +44,7 @@ import {
|
|
|
44
44
|
handleError,
|
|
45
45
|
handleMaxTurnsExceededError,
|
|
46
46
|
handleToolError
|
|
47
|
-
} from "./chunk-
|
|
47
|
+
} from "./chunk-FH45BQGZ.js";
|
|
48
48
|
import {
|
|
49
49
|
isInlineModelOverrideAllowed
|
|
50
50
|
} from "./chunk-YI6PVSSY.js";
|
|
@@ -53,13 +53,13 @@ import {
|
|
|
53
53
|
buildSessionRecoveryPlanFromApiHistory,
|
|
54
54
|
detectAutonomousSentinel,
|
|
55
55
|
detectLoopSentinel
|
|
56
|
-
} from "./chunk-
|
|
56
|
+
} from "./chunk-XHHUGXYW.js";
|
|
57
57
|
import {
|
|
58
58
|
restoreWorktreeContext
|
|
59
|
-
} from "./chunk-
|
|
59
|
+
} from "./chunk-RONRTFAQ.js";
|
|
60
60
|
import {
|
|
61
61
|
executeToolCall
|
|
62
|
-
} from "./chunk-
|
|
62
|
+
} from "./chunk-AN62TPO6.js";
|
|
63
63
|
import {
|
|
64
64
|
GoalPersistenceUnavailableError,
|
|
65
65
|
PLAN_MODE_ENTRY_SIBLING_SKIP_MESSAGE,
|
|
@@ -75,7 +75,7 @@ import {
|
|
|
75
75
|
parseAndFormatApiError,
|
|
76
76
|
partitionByConcurrencySafety,
|
|
77
77
|
recordHandledToolCall
|
|
78
|
-
} from "./chunk-
|
|
78
|
+
} from "./chunk-SYZPPX3O.js";
|
|
79
79
|
import {
|
|
80
80
|
shellResultText
|
|
81
81
|
} from "./chunk-4M7RD5QQ.js";
|
|
@@ -85,16 +85,13 @@ import {
|
|
|
85
85
|
addAgentOutputMessageAttributes,
|
|
86
86
|
goalPauseReasonForHeadlessFailure,
|
|
87
87
|
goalPauseReasonForRunBudget
|
|
88
|
-
} from "./chunk-
|
|
88
|
+
} from "./chunk-QNEBHC2E.js";
|
|
89
89
|
import {
|
|
90
90
|
parsePositiveIntegerEnv
|
|
91
91
|
} from "./chunk-6PVPNMXU.js";
|
|
92
92
|
import {
|
|
93
93
|
promptIdContext
|
|
94
94
|
} from "./chunk-O6GEWCJA.js";
|
|
95
|
-
import {
|
|
96
|
-
clampInlineMediaPart
|
|
97
|
-
} from "./chunk-QKXZOHHQ.js";
|
|
98
95
|
import {
|
|
99
96
|
formatFullTurnVisionNotice,
|
|
100
97
|
formatVisionBridgeNotice,
|
|
@@ -104,7 +101,10 @@ import {
|
|
|
104
101
|
shouldRunVisionBridge,
|
|
105
102
|
splitImageParts,
|
|
106
103
|
uiTelemetryService
|
|
107
|
-
} from "./chunk-
|
|
104
|
+
} from "./chunk-HDSI3RDN.js";
|
|
105
|
+
import {
|
|
106
|
+
clampInlineMediaPart
|
|
107
|
+
} from "./chunk-Q4FJVWI4.js";
|
|
108
108
|
import {
|
|
109
109
|
isSystemReminderContent
|
|
110
110
|
} from "./chunk-MNK4GIGD.js";
|
|
@@ -123,7 +123,7 @@ import {
|
|
|
123
123
|
} from "./chunk-C2YAG4QV.js";
|
|
124
124
|
import {
|
|
125
125
|
registerCleanup
|
|
126
|
-
} from "./chunk-
|
|
126
|
+
} from "./chunk-Z3I5B4DH.js";
|
|
127
127
|
import {
|
|
128
128
|
FatalInputError,
|
|
129
129
|
getErrorType
|
|
@@ -8,10 +8,10 @@ import {
|
|
|
8
8
|
} from "./chunk-OY4DP3XV.js";
|
|
9
9
|
import {
|
|
10
10
|
ChannelWorkerStartupError
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-PPBZHGEQ.js";
|
|
12
12
|
import {
|
|
13
13
|
ChannelWebhookEnqueueError
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-SI7XKACY.js";
|
|
15
15
|
import {
|
|
16
16
|
ChannelDeliveryError
|
|
17
17
|
} from "./chunk-RKFGE7JH.js";
|
|
@@ -20,7 +20,7 @@ import {
|
|
|
20
20
|
} from "./chunk-CJ3DHN5I.js";
|
|
21
21
|
import {
|
|
22
22
|
CHANNEL_LOOP_MCP_SERVER_NAME
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-DE2WI7RU.js";
|
|
24
24
|
import {
|
|
25
25
|
init_esbuild_shims
|
|
26
26
|
} from "./chunk-5O2XNYP6.js";
|
|
@@ -16,7 +16,7 @@ import {
|
|
|
16
16
|
MODIFIER_SHIFT_BIT,
|
|
17
17
|
MODIFIER_SUPER_BIT,
|
|
18
18
|
clipboardHasImage
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-EYCDA5MN.js";
|
|
20
20
|
import {
|
|
21
21
|
require_jsx_runtime
|
|
22
22
|
} from "./chunk-SV5PQVQE.js";
|
|
@@ -24,16 +24,16 @@ import {
|
|
|
24
24
|
use_stdin_default,
|
|
25
25
|
use_stdout_default
|
|
26
26
|
} from "./chunk-4GG4IOFX.js";
|
|
27
|
-
import {
|
|
28
|
-
noteInteraction
|
|
29
|
-
} from "./chunk-KW7NOTN6.js";
|
|
30
27
|
import {
|
|
31
28
|
require_react
|
|
32
29
|
} from "./chunk-5QWWOFGG.js";
|
|
30
|
+
import {
|
|
31
|
+
noteInteraction
|
|
32
|
+
} from "./chunk-KW7NOTN6.js";
|
|
33
33
|
import {
|
|
34
34
|
KittySequenceOverflowEvent,
|
|
35
35
|
logKittySequenceOverflow
|
|
36
|
-
} from "./chunk-
|
|
36
|
+
} from "./chunk-HDSI3RDN.js";
|
|
37
37
|
import {
|
|
38
38
|
createDebugLogger
|
|
39
39
|
} from "./chunk-C2YAG4QV.js";
|
|
@@ -8,11 +8,11 @@ import {
|
|
|
8
8
|
hasUnsafeDisplayPayload,
|
|
9
9
|
pathHasSkippedDirectoryComponent,
|
|
10
10
|
toCanonicalWorkspaceArtifactPath
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-7RCAMBLN.js";
|
|
12
12
|
import {
|
|
13
13
|
captureRuntimeFileVersion,
|
|
14
14
|
writeRuntimeFile
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-6FURC4LI.js";
|
|
16
16
|
import {
|
|
17
17
|
checkTeamMemorySecrets
|
|
18
18
|
} from "./chunk-6URMIIZO.js";
|
|
@@ -24,16 +24,16 @@ import {
|
|
|
24
24
|
detectLineEnding,
|
|
25
25
|
getDiffStat,
|
|
26
26
|
needsUtf8Bom
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-SYZPPX3O.js";
|
|
28
28
|
import {
|
|
29
29
|
FileOperationEvent,
|
|
30
30
|
getLanguageFromFilePath,
|
|
31
31
|
logFileOperation
|
|
32
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-HDSI3RDN.js";
|
|
33
33
|
import {
|
|
34
34
|
fileExists,
|
|
35
35
|
getSpecificMimeType
|
|
36
|
-
} from "./chunk-
|
|
36
|
+
} from "./chunk-PYYPSK6Q.js";
|
|
37
37
|
import {
|
|
38
38
|
isAnyAutoMemPath,
|
|
39
39
|
isTeamAutoMemPath
|
|
@@ -2,20 +2,20 @@
|
|
|
2
2
|
"use strict";
|
|
3
3
|
import {
|
|
4
4
|
getExtensionManager
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-GKJGKTWJ.js";
|
|
6
6
|
import {
|
|
7
7
|
parseChannelConfig
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-53IRNMPU.js";
|
|
9
9
|
import {
|
|
10
10
|
getPlugin,
|
|
11
11
|
registerPlugin
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-VUIH3BQL.js";
|
|
13
13
|
import {
|
|
14
14
|
sanitizeLogText
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-DE2WI7RU.js";
|
|
16
16
|
import {
|
|
17
17
|
loadSettings
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-36ZMEEBW.js";
|
|
19
19
|
import {
|
|
20
20
|
hashDaemonWorkspace
|
|
21
21
|
} from "./chunk-KBVGO6H4.js";
|
|
@@ -7,54 +7,6 @@ import {
|
|
|
7
7
|
__name
|
|
8
8
|
} from "./chunk-J2S4EL5Y.js";
|
|
9
9
|
|
|
10
|
-
// packages/cli/src/serve/channel-webhook-ipc.ts
|
|
11
|
-
init_esbuild_shims();
|
|
12
|
-
import { randomUUID } from "node:crypto";
|
|
13
|
-
var CHANNEL_WEBHOOK_ENQUEUE_ERROR_CODES = /* @__PURE__ */ new Set([
|
|
14
|
-
"channel_worker_unavailable",
|
|
15
|
-
"channel_webhook_enqueue_timeout",
|
|
16
|
-
"channel_webhook_queue_full",
|
|
17
|
-
"channel_webhook_target_unavailable",
|
|
18
|
-
"channel_webhook_invalid_task",
|
|
19
|
-
"channel_webhook_enqueue_failed"
|
|
20
|
-
]);
|
|
21
|
-
var ChannelWebhookEnqueueError = class extends Error {
|
|
22
|
-
constructor(code, message) {
|
|
23
|
-
super(message);
|
|
24
|
-
this.code = code;
|
|
25
|
-
this.name = "ChannelWebhookEnqueueError";
|
|
26
|
-
}
|
|
27
|
-
static {
|
|
28
|
-
__name(this, "ChannelWebhookEnqueueError");
|
|
29
|
-
}
|
|
30
|
-
};
|
|
31
|
-
function isChannelWebhookEnqueueErrorCode(value) {
|
|
32
|
-
return typeof value === "string" && CHANNEL_WEBHOOK_ENQUEUE_ERROR_CODES.has(value);
|
|
33
|
-
}
|
|
34
|
-
__name(isChannelWebhookEnqueueErrorCode, "isChannelWebhookEnqueueErrorCode");
|
|
35
|
-
function isChannelWebhookEnqueueError(value) {
|
|
36
|
-
return value instanceof ChannelWebhookEnqueueError || typeof value === "object" && value !== null && isChannelWebhookEnqueueErrorCode(value.code) && typeof value.message === "string";
|
|
37
|
-
}
|
|
38
|
-
__name(isChannelWebhookEnqueueError, "isChannelWebhookEnqueueError");
|
|
39
|
-
var CHANNEL_WEBHOOK_TASK_IPC_TIMEOUT_MS = 3e4;
|
|
40
|
-
function createChannelWebhookTaskMessage(task) {
|
|
41
|
-
return {
|
|
42
|
-
type: "webhook_task",
|
|
43
|
-
id: randomUUID(),
|
|
44
|
-
expiresAt: Date.now() + CHANNEL_WEBHOOK_TASK_IPC_TIMEOUT_MS,
|
|
45
|
-
task
|
|
46
|
-
};
|
|
47
|
-
}
|
|
48
|
-
__name(createChannelWebhookTaskMessage, "createChannelWebhookTaskMessage");
|
|
49
|
-
function isChannelWebhookTaskMessage(value) {
|
|
50
|
-
return typeof value === "object" && value !== null && value.type === "webhook_task" && typeof value.id === "string" && typeof value.expiresAt === "number" && typeof value.task === "object" && value.task !== null;
|
|
51
|
-
}
|
|
52
|
-
__name(isChannelWebhookTaskMessage, "isChannelWebhookTaskMessage");
|
|
53
|
-
function isChannelWebhookTaskResultMessage(value) {
|
|
54
|
-
return typeof value === "object" && value !== null && value.type === "webhook_task_result" && typeof value.id === "string" && typeof value.ok === "boolean";
|
|
55
|
-
}
|
|
56
|
-
__name(isChannelWebhookTaskResultMessage, "isChannelWebhookTaskResultMessage");
|
|
57
|
-
|
|
58
10
|
// packages/cli/src/serve/channel-worker-startup-ipc.ts
|
|
59
11
|
init_esbuild_shims();
|
|
60
12
|
var MAX_CHANNEL_STARTUP_FAILURES = 64;
|
|
@@ -128,21 +80,69 @@ function isChannelStartupReportType(value) {
|
|
|
128
80
|
}
|
|
129
81
|
__name(isChannelStartupReportType, "isChannelStartupReportType");
|
|
130
82
|
|
|
83
|
+
// packages/cli/src/serve/channel-webhook-ipc.ts
|
|
84
|
+
init_esbuild_shims();
|
|
85
|
+
import { randomUUID } from "node:crypto";
|
|
86
|
+
var CHANNEL_WEBHOOK_ENQUEUE_ERROR_CODES = /* @__PURE__ */ new Set([
|
|
87
|
+
"channel_worker_unavailable",
|
|
88
|
+
"channel_webhook_enqueue_timeout",
|
|
89
|
+
"channel_webhook_queue_full",
|
|
90
|
+
"channel_webhook_target_unavailable",
|
|
91
|
+
"channel_webhook_invalid_task",
|
|
92
|
+
"channel_webhook_enqueue_failed"
|
|
93
|
+
]);
|
|
94
|
+
var ChannelWebhookEnqueueError = class extends Error {
|
|
95
|
+
constructor(code, message) {
|
|
96
|
+
super(message);
|
|
97
|
+
this.code = code;
|
|
98
|
+
this.name = "ChannelWebhookEnqueueError";
|
|
99
|
+
}
|
|
100
|
+
static {
|
|
101
|
+
__name(this, "ChannelWebhookEnqueueError");
|
|
102
|
+
}
|
|
103
|
+
};
|
|
104
|
+
function isChannelWebhookEnqueueErrorCode(value) {
|
|
105
|
+
return typeof value === "string" && CHANNEL_WEBHOOK_ENQUEUE_ERROR_CODES.has(value);
|
|
106
|
+
}
|
|
107
|
+
__name(isChannelWebhookEnqueueErrorCode, "isChannelWebhookEnqueueErrorCode");
|
|
108
|
+
function isChannelWebhookEnqueueError(value) {
|
|
109
|
+
return value instanceof ChannelWebhookEnqueueError || typeof value === "object" && value !== null && isChannelWebhookEnqueueErrorCode(value.code) && typeof value.message === "string";
|
|
110
|
+
}
|
|
111
|
+
__name(isChannelWebhookEnqueueError, "isChannelWebhookEnqueueError");
|
|
112
|
+
var CHANNEL_WEBHOOK_TASK_IPC_TIMEOUT_MS = 3e4;
|
|
113
|
+
function createChannelWebhookTaskMessage(task) {
|
|
114
|
+
return {
|
|
115
|
+
type: "webhook_task",
|
|
116
|
+
id: randomUUID(),
|
|
117
|
+
expiresAt: Date.now() + CHANNEL_WEBHOOK_TASK_IPC_TIMEOUT_MS,
|
|
118
|
+
task
|
|
119
|
+
};
|
|
120
|
+
}
|
|
121
|
+
__name(createChannelWebhookTaskMessage, "createChannelWebhookTaskMessage");
|
|
122
|
+
function isChannelWebhookTaskMessage(value) {
|
|
123
|
+
return typeof value === "object" && value !== null && value.type === "webhook_task" && typeof value.id === "string" && typeof value.expiresAt === "number" && typeof value.task === "object" && value.task !== null;
|
|
124
|
+
}
|
|
125
|
+
__name(isChannelWebhookTaskMessage, "isChannelWebhookTaskMessage");
|
|
126
|
+
function isChannelWebhookTaskResultMessage(value) {
|
|
127
|
+
return typeof value === "object" && value !== null && value.type === "webhook_task_result" && typeof value.id === "string" && typeof value.ok === "boolean";
|
|
128
|
+
}
|
|
129
|
+
__name(isChannelWebhookTaskResultMessage, "isChannelWebhookTaskResultMessage");
|
|
130
|
+
|
|
131
131
|
export {
|
|
132
|
-
ChannelWebhookEnqueueError,
|
|
133
|
-
isChannelWebhookEnqueueErrorCode,
|
|
134
|
-
isChannelWebhookEnqueueError,
|
|
135
|
-
CHANNEL_WEBHOOK_TASK_IPC_TIMEOUT_MS,
|
|
136
|
-
createChannelWebhookTaskMessage,
|
|
137
|
-
isChannelWebhookTaskMessage,
|
|
138
|
-
isChannelWebhookTaskResultMessage,
|
|
139
132
|
MAX_CHANNEL_STARTUP_FAILURES,
|
|
140
133
|
MAX_CHANNEL_STARTUP_FAILURE_CHANNEL_LENGTH,
|
|
141
134
|
MAX_CHANNEL_STARTUP_FAILURE_CODE_LENGTH,
|
|
142
135
|
MAX_CHANNEL_STARTUP_FAILURE_MESSAGE_LENGTH,
|
|
143
136
|
isChannelStartupReportMessage,
|
|
144
137
|
isChannelStartupReportAckMessage,
|
|
145
|
-
isChannelStartupReportType
|
|
138
|
+
isChannelStartupReportType,
|
|
139
|
+
ChannelWebhookEnqueueError,
|
|
140
|
+
isChannelWebhookEnqueueErrorCode,
|
|
141
|
+
isChannelWebhookEnqueueError,
|
|
142
|
+
CHANNEL_WEBHOOK_TASK_IPC_TIMEOUT_MS,
|
|
143
|
+
createChannelWebhookTaskMessage,
|
|
144
|
+
isChannelWebhookTaskMessage,
|
|
145
|
+
isChannelWebhookTaskResultMessage
|
|
146
146
|
};
|
|
147
147
|
/**
|
|
148
148
|
* @license
|