@qwen-code/qwen-code 0.22.2-preview.0 → 0.22.2
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/goal-draft/SKILL.md +109 -0
- package/bundled/qc-helper/docs/configuration/settings.md +12 -12
- package/bundled/qc-helper/docs/features/_meta.ts +1 -0
- package/bundled/qc-helper/docs/features/commands.md +2 -1
- package/bundled/qc-helper/docs/features/goals.md +58 -0
- package/bundled/qc-helper/docs/features/headless.md +13 -11
- package/bundled/qc-helper/docs/features/status-line.md +3 -3
- package/chunks/MaxSizedBox-X5FZSNAJ.js +112 -0
- package/chunks/{StandaloneSessionPicker-KFMJILVY.js → StandaloneSessionPicker-AVLI6VJP.js} +76 -76
- package/chunks/{acpAgent-KNFTTDWL.js → acpAgent-MXEAN54C.js} +994 -277
- package/chunks/{agent-6V6MZOA7.js → agent-PJIPDWHB.js} +41 -41
- package/chunks/agent-headless-B4JVD7UK.js +87 -0
- package/chunks/{anthropicContentGenerator-U76GTVB6.js → anthropicContentGenerator-HGMBACVE.js} +7 -7
- package/chunks/{artifact-tool-XDJCZZCF.js → artifact-tool-5YT4QF7Y.js} +2 -2
- package/chunks/{askUserQuestion-ZXXERLEV.js → askUserQuestion-4SWJY65V.js} +2 -2
- package/chunks/bridge-FKZTVIS3.js +121 -0
- package/chunks/{channel-management-service-HXXS3HOZ.js → channel-management-service-X4AZ6IXX.js} +1 -1
- package/chunks/channel-settings-store-4UFCLBBG.js +117 -0
- package/chunks/{channel-worker-group-EVDC2P4K.js → channel-worker-group-27HMGD5S.js} +7 -6
- package/chunks/{channel-worker-manager-IJJZHGEI.js → channel-worker-manager-QEGX646Z.js} +9 -7
- package/chunks/{channel-worker-supervisor-YSKB5GVB.js → channel-worker-supervisor-UEW2WWCC.js} +5 -4
- package/chunks/{chunk-7QGEJI7M.js → chunk-23RFD54N.js} +1 -1
- package/chunks/{chunk-K5PNJ6VL.js → chunk-2K6ORIHJ.js} +13 -13
- package/chunks/{chunk-OGZAQWJP.js → chunk-2NYCN6F2.js} +11 -11
- package/chunks/chunk-2TNL5KPM.js +49 -0
- package/chunks/{chunk-ZEADBZLO.js → chunk-3AFMQUTI.js} +3 -3
- package/chunks/{chunk-LRLMDV5X.js → chunk-3DXFGHAJ.js} +185 -174
- package/chunks/{chunk-73WFGVIZ.js → chunk-3FDFA4MZ.js} +3 -3
- package/chunks/{chunk-WBT3STGU.js → chunk-3I6UTTDX.js} +1 -1
- package/chunks/{chunk-FVDQ5E67.js → chunk-3JGZSIDA.js} +3 -3
- package/chunks/{chunk-JJJD6QCC.js → chunk-3SGB2UHX.js} +15 -10
- package/chunks/{chunk-77TOMRBG.js → chunk-43GGFFLY.js} +3 -3
- package/chunks/{chunk-ZJG323IA.js → chunk-43UYNAWX.js} +6 -4
- package/chunks/{chunk-T2HMXHYA.js → chunk-4CDSK5AZ.js} +6 -6
- package/chunks/chunk-4CMJKUND.js +95 -0
- package/chunks/{chunk-EB4VDXNI.js → chunk-4FTKQNWJ.js} +1 -1
- package/chunks/{chunk-PAJGKZAA.js → chunk-4HV6HH33.js} +10 -8
- package/chunks/{chunk-BQBUZDDH.js → chunk-4J657AJR.js} +3 -3
- package/chunks/{chunk-BU7OUDQB.js → chunk-4JWNNLPT.js} +4 -4
- package/chunks/{chunk-4N6UAPD3.js → chunk-4MQEPP3Y.js} +9 -84
- package/chunks/{chunk-I6HWGOWD.js → chunk-5O72BNDD.js} +93 -14
- package/chunks/{chunk-IKN3IUJP.js → chunk-5XBFCMWD.js} +2 -2
- package/chunks/{chunk-2YDYDDE2.js → chunk-66KDY3LV.js} +3 -3
- package/chunks/{chunk-UVDOONRU.js → chunk-6CGL7E7G.js} +2 -2
- package/chunks/{chunk-SLEWBQWM.js → chunk-6DIGWMGT.js} +2 -2
- package/chunks/{chunk-SKNVVYIJ.js → chunk-6IUNAPLR.js} +3 -3
- package/chunks/{chunk-VUZY6MEQ.js → chunk-6LFJEACX.js} +4 -4
- package/chunks/{chunk-H2MDBYLL.js → chunk-6LFTG244.js} +8 -8
- package/chunks/{chunk-PVBT5QPD.js → chunk-6PJOTWAN.js} +1 -1
- package/chunks/{chunk-4IDJQOCO.js → chunk-77RG5SFQ.js} +1 -1
- package/chunks/{chunk-SDVF6A42.js → chunk-7DJCPZE3.js} +3 -3
- package/chunks/{chunk-ELY4QVIB.js → chunk-7EQQR46F.js} +1 -1
- package/chunks/{chunk-H4JK2A2V.js → chunk-7UYV53BC.js} +1 -1
- package/chunks/{chunk-6HOU52QX.js → chunk-A7YP63XN.js} +4 -4
- package/chunks/{chunk-E4I5MVBR.js → chunk-ABS25QER.js} +1 -1
- package/chunks/{chunk-XO4NGYRP.js → chunk-AGR5UROZ.js} +5 -5
- package/chunks/{chunk-5T4LWWNX.js → chunk-B7CDU2SL.js} +2 -2
- package/chunks/{chunk-GQAIZL3H.js → chunk-BAJKAAOY.js} +68 -64
- package/chunks/{chunk-DWRFOH3G.js → chunk-BBWV7ONL.js} +3 -3
- package/chunks/{chunk-4TPAG3O7.js → chunk-BFPESSTR.js} +1 -1
- package/chunks/{chunk-RUJTCU46.js → chunk-BNMF3K5X.js} +20 -19
- package/chunks/{chunk-IPQA4SR5.js → chunk-BWORX6FA.js} +1 -1
- package/chunks/{chunk-BKDAF7ES.js → chunk-BXDAPVQU.js} +2 -2
- package/chunks/{chunk-FY62MBPS.js → chunk-C6K43ZDE.js} +4 -4
- package/chunks/{chunk-JUIJ3FXC.js → chunk-CAJTKR6W.js} +5 -5
- package/chunks/{chunk-EADEZDPO.js → chunk-CCBZDVUA.js} +30 -25
- package/chunks/{chunk-DP7LABIB.js → chunk-CMHFCLBU.js} +1 -1
- package/chunks/{chunk-5AFPOEY3.js → chunk-CPGJJJLU.js} +1 -1
- package/chunks/{chunk-LRKMQPMD.js → chunk-CQH5KTKC.js} +1 -1
- package/chunks/{chunk-EWBY3PFB.js → chunk-CSMI4FP5.js} +1 -1
- package/chunks/{chunk-JECO75XD.js → chunk-D5LUXLUH.js} +2 -2
- package/chunks/{chunk-TQYZG5DU.js → chunk-DZWPESIF.js} +3 -3
- package/chunks/{chunk-5Y2JCJAH.js → chunk-EFUM7RVY.js} +15 -2
- package/chunks/{chunk-3UZCLCXR.js → chunk-EKSCLBBF.js} +3 -3
- package/chunks/{chunk-LJP2BBMK.js → chunk-EOGELB3H.js} +4 -4
- package/chunks/{chunk-624NHDGB.js → chunk-ERFDKH32.js} +11 -0
- package/chunks/{chunk-RQAMNZ4Y.js → chunk-F5SZP77N.js} +310 -78
- package/chunks/{chunk-SQPOJ4ZI.js → chunk-F6FV3C5K.js} +12 -7
- package/chunks/{chunk-C2BAEV64.js → chunk-F7TNAPZ4.js} +9 -7
- package/chunks/{chunk-OAAPGZVH.js → chunk-FBSSIAAQ.js} +6 -6
- package/chunks/{chunk-2FN2HNTI.js → chunk-FDY5RMGH.js} +2 -2
- package/chunks/{chunk-U66FXEH2.js → chunk-FY76G3G5.js} +5 -5
- package/chunks/{chunk-LKOSBI2M.js → chunk-G34IR3D6.js} +9 -9
- package/chunks/{chunk-ZWKGZB2K.js → chunk-H2WDGQ6D.js} +3 -3
- package/chunks/chunk-H72BQNM3.js +645 -0
- package/chunks/{chunk-ILPXSKGQ.js → chunk-HVEYF6VT.js} +2 -2
- package/chunks/{chunk-EAV3TENS.js → chunk-HVQ3B7FF.js} +2 -2
- package/chunks/{chunk-MI7CMXPU.js → chunk-IJKTMLBE.js} +1 -1
- package/chunks/{chunk-IN66KO3N.js → chunk-IK5BW3CS.js} +2 -2
- package/chunks/{chunk-5NV2AN56.js → chunk-IOPCFOTF.js} +3 -3
- package/chunks/{chunk-O3BUXIPM.js → chunk-IZIVM7LZ.js} +3 -3
- package/chunks/{chunk-I6VVOZDK.js → chunk-J2OSJFP3.js} +2 -2
- package/chunks/{chunk-AYVIGUUK.js → chunk-JB4JIVTJ.js} +1 -1
- package/chunks/{chunk-76WGY6LW.js → chunk-JCQD3INC.js} +3 -3
- package/chunks/{chunk-CITGRGCM.js → chunk-JHS74YAB.js} +4 -1
- package/chunks/{chunk-GXWY24QS.js → chunk-JSC3H3TD.js} +33 -10
- package/chunks/{chunk-NUHCXGAD.js → chunk-JSHHYW6T.js} +4 -4
- package/chunks/{chunk-5CW26JIE.js → chunk-JU4EEXC7.js} +2 -2
- package/chunks/{chunk-T6OODF2U.js → chunk-JWALNCLT.js} +1 -1
- package/chunks/{chunk-DX5FZGHZ.js → chunk-K2NQPH5D.js} +3 -3
- package/chunks/{chunk-VLY6XOBY.js → chunk-KEKZFOL6.js} +1 -1
- package/chunks/{chunk-RUQBJS34.js → chunk-KUX5D6DK.js} +1200 -339
- package/chunks/{chunk-UX3IFLJM.js → chunk-L2M46FP5.js} +149 -22
- package/chunks/{chunk-6US7BF3G.js → chunk-L6BZRIUL.js} +2 -2
- package/chunks/{chunk-BGWT7VBV.js → chunk-L6YT5H34.js} +4 -4
- package/chunks/{chunk-W2WRNJKX.js → chunk-LDP5OD6N.js} +5 -5
- package/chunks/{chunk-QB5DD75E.js → chunk-LXIBMVRN.js} +7 -7
- package/chunks/{chunk-GNMJNDZE.js → chunk-M6FOJXW3.js} +1 -1
- package/chunks/{chunk-OX44MOAN.js → chunk-MIIVI25Q.js} +3 -3
- package/chunks/{chunk-K3LPAED5.js → chunk-MQM5PJML.js} +24 -4
- package/chunks/{chunk-27ONXAFY.js → chunk-NIFYWDYN.js} +1 -1
- package/chunks/{chunk-IJVDHPKD.js → chunk-NU7RKEZR.js} +2 -2
- package/chunks/{chunk-MB4OCRQ2.js → chunk-O2UN57NX.js} +2 -2
- package/chunks/{chunk-TWUA5EIL.js → chunk-OIP7C4FE.js} +5 -5
- package/chunks/{chunk-UCSV2IZW.js → chunk-OIVXBW3W.js} +3 -3
- package/chunks/{chunk-TOF4UZHH.js → chunk-P2SU6ZTI.js} +3 -3
- package/chunks/{chunk-N4B7VPXK.js → chunk-P5GGM4KS.js} +5 -5
- package/chunks/{chunk-ZKAZP2ZG.js → chunk-PDMJ3KGS.js} +2 -2
- package/chunks/{chunk-RRKNX553.js → chunk-PDQGMSZK.js} +1 -1
- package/chunks/{chunk-3UXJFOB3.js → chunk-PFCQ62V4.js} +5 -5
- package/chunks/{chunk-JLGFGPZJ.js → chunk-PKAYJDB3.js} +2 -2
- package/chunks/{chunk-GTUKW3I6.js → chunk-PPKZ7JOE.js} +1 -1
- package/chunks/{chunk-HOANA6GC.js → chunk-Q26AYA62.js} +4 -4
- package/chunks/{chunk-WEGXPP5E.js → chunk-QFCDF5PL.js} +1 -1
- package/chunks/{chunk-4PLAO7FS.js → chunk-QP4C6WCE.js} +3 -3
- package/chunks/{chunk-3B5DCAQU.js → chunk-R4PMVSR5.js} +27 -25
- package/chunks/{chunk-7JJUFI36.js → chunk-RIEFGNTP.js} +579 -3419
- package/chunks/{chunk-7XKW4CVK.js → chunk-RJC5EIKY.js} +4 -4
- package/chunks/chunk-RKFGE7JH.js +93 -0
- package/chunks/{chunk-CPPYZHBN.js → chunk-RU7BK6B3.js} +1 -1
- package/chunks/{chunk-GZJUCMH4.js → chunk-RUGNCYNO.js} +11 -633
- package/chunks/{chunk-ZLTEQYNC.js → chunk-SFPGAQUL.js} +2 -2
- package/chunks/{chunk-K6FURWIX.js → chunk-SJ3ZUWFK.js} +26 -4
- package/chunks/{chunk-DEYPMJPD.js → chunk-SMPR7SPO.js} +1 -1
- package/chunks/{chunk-7CWEZQ6T.js → chunk-STUJ7IMZ.js} +0 -77
- package/chunks/{chunk-O5YGAEQS.js → chunk-T32W2JHI.js} +6 -6
- package/chunks/chunk-T3WXYEZ4.js +304 -0
- package/chunks/{chunk-D6XO27Z5.js → chunk-TGWAQ5RB.js} +750 -296
- package/chunks/{chunk-EC5BONC3.js → chunk-TPI7O7HR.js} +1 -1
- package/chunks/{chunk-OI2DR6QB.js → chunk-TRZTNIQ6.js} +2 -2
- package/chunks/{chunk-T2CRBIDJ.js → chunk-TTX2JUE6.js} +1 -1
- package/chunks/{chunk-2NNTE2ED.js → chunk-UHQFIS7N.js} +15 -0
- package/chunks/{chunk-KOJ6MHD5.js → chunk-UTLCH2FK.js} +1 -1
- package/chunks/{chunk-7DPKPBOQ.js → chunk-V2NDP3I4.js} +2 -2
- package/chunks/{chunk-RQ5ASDFQ.js → chunk-V4QXXQJ2.js} +3 -3
- package/chunks/{chunk-BVE5EMIG.js → chunk-V5J4J5TP.js} +2 -2
- package/chunks/{chunk-X2UOOG5V.js → chunk-VQUGEVGR.js} +1 -1
- package/chunks/{chunk-XJS54K4A.js → chunk-VTHREBQM.js} +2 -2
- package/chunks/{chunk-V3GINY6K.js → chunk-VVW4ZNFY.js} +3 -3
- package/chunks/{chunk-YT5XN3HV.js → chunk-W5MJJ2V7.js} +1 -1
- package/chunks/{chunk-FPH6TXD3.js → chunk-WAOIHTJS.js} +1 -1
- package/chunks/{chunk-FN5C6C7G.js → chunk-WKK5BQNP.js} +151 -60
- package/chunks/chunk-XDFHY4R3.js +1584 -0
- package/chunks/{chunk-L436XFLJ.js → chunk-XDLEZ5HX.js} +1 -1
- package/chunks/{chunk-VL4YX3FH.js → chunk-XF63PKEN.js} +1 -1
- package/chunks/{chunk-3FSBMAYD.js → chunk-XQFT3QUF.js} +1 -1
- package/chunks/{chunk-2MHGD7EE.js → chunk-XRSOI3DL.js} +1 -1
- package/chunks/{chunk-FJWICLG7.js → chunk-Y3QL45LS.js} +1 -1
- package/chunks/{chunk-RCDXSEJ5.js → chunk-Y6LSMB6J.js} +1 -1
- package/chunks/{chunk-2SERYG4T.js → chunk-YTDVNSUQ.js} +1 -1
- package/chunks/{chunk-4X5GYZFO.js → chunk-Z7FLBQPR.js} +7 -7
- package/chunks/{chunk-3BV7TZNQ.js → chunk-Z7TGYN5F.js} +3 -3
- package/chunks/{chunk-4Z3PSHN4.js → chunk-ZFKOCECU.js} +2 -2
- package/chunks/chunk-ZGXYO7DY.js +3416 -0
- package/chunks/{chunk-E6FGMDFQ.js → chunk-ZU4UDIWX.js} +19 -1
- package/chunks/config-utils-BBOCOGZW.js +113 -0
- package/chunks/contextCommand-EET67MQ2.js +108 -0
- package/chunks/{core-runtime-6TBMEULI.js → core-runtime-677KFX6Q.js} +53 -53
- package/chunks/{create-sub-session-RVHSWVAP.js → create-sub-session-23ITIELI.js} +3 -3
- package/chunks/{create-sub-session-SAOMTP62.js → create-sub-session-JKZAYZX7.js} +160 -79
- package/chunks/{cron-create-IJGVR5R2.js → cron-create-KJ4IY6PP.js} +57 -10
- package/chunks/{cron-delete-4N5BI6GL.js → cron-delete-MBLQCAYY.js} +4 -4
- package/chunks/{cron-list-2CATIPUX.js → cron-list-DWH2PQ47.js} +4 -4
- package/chunks/{daemon-NAYK4XXU.js → daemon-MJQUO7RA.js} +28 -1
- package/chunks/{daemon-git-worktree-guard-TYLESM6G.js → daemon-git-worktree-guard-6MVAAZZZ.js} +53 -53
- package/chunks/daemon-status-provider-RFKZOK3S.js +119 -0
- package/chunks/daemon-trust-policy-DRZPFB4Q.js +114 -0
- package/chunks/{daemon-trust-policy-monitor-WWX7I7P6.js → daemon-trust-policy-monitor-B5U6TQX5.js} +59 -59
- package/chunks/deferred-core-runtime-BBVIOP24.js +116 -0
- package/chunks/{display-image-DR55LL6M.js → display-image-BE7I6ZB6.js} +5 -5
- package/chunks/{dist-FVJZSIO4.js → dist-ILDBUWDB.js} +71 -19
- package/chunks/{dist-6H6RZ5H6.js → dist-QODVOVWI.js} +58 -35
- package/chunks/earlyInputCapture-2JOMMNQ4.js +109 -0
- package/chunks/{edit-GBDKI5DZ.js → edit-BSV6YRVW.js} +42 -42
- package/chunks/{en-6MDBWMTG.js → en-YLXBXM4Z.js} +2 -1
- package/chunks/{enter-worktree-UOZ6ZTP7.js → enter-worktree-MQXFFPKM.js} +7 -7
- package/chunks/{enterPlanMode-2KTIPPM3.js → enterPlanMode-PKNF35FE.js} +41 -41
- package/chunks/{environment-XJ75LJ6N.js → environment-MOZMPUHR.js} +55 -55
- package/chunks/errors-DMPQVYJL.js +115 -0
- package/chunks/{exit-worktree-G2QATUCV.js → exit-worktree-L344UY7K.js} +7 -7
- package/chunks/{exitPlanMode-AUMYTFIQ.js → exitPlanMode-UE4FGCY4.js} +41 -41
- package/chunks/{fast-path-TU7U2ETU.js → fast-path-773PV7PU.js} +5 -5
- package/chunks/{gemini-FKMYDP64.js → gemini-IP4FJAP5.js} +101 -100
- package/chunks/{geminiContentGenerator-WSHP7CSR.js → geminiContentGenerator-PUNEBWJW.js} +8 -8
- package/chunks/{glob-EOM6XK7H.js → glob-CZHOWUEA.js} +41 -41
- package/chunks/{goal-tools-CNVXMSZD.js → goal-tools-YZQJXTGH.js} +9 -8
- package/chunks/{grep-3NLSS32D.js → grep-5GPICQBU.js} +6 -6
- package/chunks/handleAutoUpdate-SGXKTQM6.js +111 -0
- package/chunks/{i18n-XX7U2Q3X.js → i18n-B42HKHKH.js} +54 -54
- package/chunks/{image-gen-63NN2H5N.js → image-gen-HAYOEQ4O.js} +9 -9
- package/chunks/initializer-FB66WYR3.js +115 -0
- package/chunks/installationInfo-Y7AULNMX.js +109 -0
- package/chunks/{keychain-token-storage-3MGFRYGM.js → keychain-token-storage-37XPR34V.js} +2 -2
- package/chunks/list-2HWGSVRA.js +118 -0
- package/chunks/{list-agents-EXRSHIDJ.js → list-agents-DI3YFTDT.js} +2 -2
- package/chunks/loadedSettingsAdapter-7Y7IEI6T.js +112 -0
- package/chunks/{loggingContentGenerator-TUDGCVUG.js → loggingContentGenerator-2GGZNGLG.js} +35 -22
- package/chunks/{loop-wakeup-XBPB2BRO.js → loop-wakeup-XJFONSQ7.js} +5 -5
- package/chunks/{ls-WFONAND2.js → ls-3VAT2J7A.js} +4 -4
- package/chunks/{lsp-DUKPDUXN.js → lsp-5W7IRUBH.js} +2 -2
- package/chunks/{managed-npm-update-5K4FWFX2.js → managed-npm-update-5TEV2E3J.js} +54 -54
- package/chunks/mcp-QGG5NMJJ.js +112 -0
- package/chunks/{monitor-UUHIAGT7.js → monitor-FI7PY36Z.js} +41 -41
- package/chunks/nonInteractiveCli-4LO2TL72.js +186 -0
- package/chunks/{notebook-edit-GZPB3Q57.js → notebook-edit-TPGMGBST.js} +42 -42
- package/chunks/{openaiContentGenerator-RPP6YBS3.js → openaiContentGenerator-SUCYANUZ.js} +24 -24
- package/chunks/pidfile-JMF2CLMY.js +113 -0
- package/chunks/{processUtils-ENAY2GSA.js → processUtils-IQZBYWSB.js} +2 -2
- package/chunks/prompt-terminal-ledger-DCZO6S7C.js +107 -0
- package/chunks/{qwenContentGenerator-GLUZVJAU.js → qwenContentGenerator-J4TXFGJT.js} +46 -46
- package/chunks/{qwenOAuth2-JIYAWXTW.js → qwenOAuth2-RF33DNZW.js} +8 -8
- package/chunks/{read-file-75R5LUWQ.js → read-file-QE2B5FTX.js} +12 -12
- package/chunks/{read-mcp-resource-7A7NFSFL.js → read-mcp-resource-XD257PGJ.js} +2 -2
- package/chunks/{record-artifact-CPJ4IJSD.js → record-artifact-RZGZBENU.js} +4 -4
- package/chunks/{report-findings-VFM5DENC.js → report-findings-Q3SYKKW5.js} +5 -5
- package/chunks/{request-shutdown-AXVOFN5C.js → request-shutdown-BCLA3JV2.js} +7 -7
- package/chunks/resumeHistoryUtils-CZ4JRDVW.js +120 -0
- package/chunks/{ripGrep-FNLXQYBS.js → ripGrep-R6B6HWPX.js} +17 -17
- package/chunks/{run-qwen-serve-FJD4VMI2.js → run-qwen-serve-TPHZMSXJ.js} +148 -319
- package/chunks/{runtime-INDSJB4K.js → runtime-TTIGSBM4.js} +62 -62
- package/chunks/scheduled-tasks-QB4ZVUQS.js +129 -0
- package/chunks/{scheduler-Z52TCSUG.js → scheduler-YRUG22M7.js} +55 -55
- package/chunks/{sdk-exporters-http-XXSKBD2C.js → sdk-exporters-http-KCJ4ZFG7.js} +2 -2
- package/chunks/{sdk-impl-VPNBLV7I.js → sdk-impl-HLSEDAEP.js} +4 -4
- package/chunks/{send-message-A2GXDX3B.js → send-message-Y5I6NYAM.js} +7 -7
- package/chunks/serve-MXXCDAQN.js +120 -0
- package/chunks/{server-PSN5OOSX.js → server-DFUSSSHI.js} +19760 -19444
- package/chunks/{session-JPE34X6Q.js → session-3TEHNENZ.js} +100 -99
- package/chunks/{settings-IVGC4UYK.js → settings-VOZYKLTT.js} +58 -58
- package/chunks/{shell-A5PZGPBR.js → shell-6RTKZVMI.js} +41 -41
- package/chunks/{skill-UUXQPDEH.js → skill-FEOKFX26.js} +22 -21
- package/chunks/{skill-settings-WVRXLTK4.js → skill-settings-VA4XVYVL.js} +58 -58
- package/chunks/spawnChannel-F6WVP723.js +114 -0
- package/chunks/{standalone-update-IRFRNGAA.js → standalone-update-RGILUQVK.js} +55 -55
- package/chunks/{startInteractiveUI-MC4GLL6G.js → startInteractiveUI-WHJPFOGH.js} +2757 -2223
- package/chunks/{syntheticOutput-5AJ444QT.js → syntheticOutput-ML43GEFN.js} +3 -3
- package/chunks/{task-create-CDJSOEQD.js → task-create-TMSV7RD5.js} +11 -11
- package/chunks/{task-list-BELMPA75.js → task-list-W55RBFRX.js} +5 -5
- package/chunks/{task-stop-U3S3KZG2.js → task-stop-CXEH5L2D.js} +2 -2
- package/chunks/{task-update-77VCFDDZ.js → task-update-N536I4GQ.js} +11 -11
- package/chunks/{team-create-WO5ZBCFW.js → team-create-QYSWCYCL.js} +41 -41
- package/chunks/{team-delete-YWFXX77L.js → team-delete-FJRFX33M.js} +5 -5
- package/chunks/{team-plan-approval-KAVKRN7U.js → team-plan-approval-P7DAD644.js} +41 -41
- package/chunks/{terminal-image-renderer-SMRRNI6Z.js → terminal-image-renderer-SMQE46UJ.js} +55 -55
- package/chunks/theme-manager-RFO5WWFF.js +104 -0
- package/chunks/{todoWrite-435EO2CS.js → todoWrite-WDJNQEMW.js} +43 -25
- package/chunks/{tool-search-FBN6OC6U.js → tool-search-F2EMIAPV.js} +17 -17
- package/chunks/total-session-admission-HTVTP4BS.js +116 -0
- package/chunks/{trustedFolders-B4LPJBFK.js → trustedFolders-7OCNMUQE.js} +54 -54
- package/chunks/{update-relaunch-X5TJVKVG.js → update-relaunch-4GF3OXMB.js} +5 -5
- package/chunks/{updateCheck-JCLP5JFT.js → updateCheck-7QBDXZRT.js} +56 -56
- package/chunks/useAutoAcceptIndicator-UI4SNL2O.js +122 -0
- package/chunks/{validateNonInterActiveAuth-W7HYH5ZN.js → validateNonInterActiveAuth-BPPA563H.js} +96 -95
- package/chunks/{version-JG4J76GL.js → version-ANP4TS6O.js} +1 -1
- package/chunks/{web-fetch-SPLMEDWF.js → web-fetch-QJADSAH3.js} +16 -16
- package/chunks/{web-search-PNW6OEH6.js → web-search-7TTQKEKM.js} +9 -9
- package/chunks/{workflow-QHOIIXJO.js → workflow-5XN6XSOT.js} +105 -60
- package/chunks/workspace-providers-status-PDFZWL5Q.js +116 -0
- package/chunks/{workspace-registration-store-H375IYR2.js → workspace-registration-store-XKVW2YVH.js} +1 -1
- package/chunks/{workspace-registry-XTLCD7Z2.js → workspace-registry-23R7XRB5.js} +61 -59
- package/chunks/workspace-service-MUYO2QIC.js +131 -0
- package/chunks/workspace-skills-status-IKECTOOQ.js +115 -0
- package/chunks/{workspace-trust-reconciler-6SC6RKQE.js → workspace-trust-reconciler-KLGOB53D.js} +67 -65
- package/chunks/write-file-GGRBB5TZ.js +90 -0
- package/chunks/{zh-TW-MV4FWFB6.js → zh-TW-RPTMRTHG.js} +2 -1
- package/chunks/{zh-X3WGU6SI.js → zh-UNY63FR3.js} +2 -1
- package/chunks/{zoom-image-WGNPZ572.js → zoom-image-6ASG6J4C.js} +12 -12
- package/cli.js +14 -14
- package/locales/en.js +2 -0
- package/locales/zh-TW.js +2 -0
- package/locales/zh.js +2 -0
- package/package.json +3 -3
- package/web-shell/assets/{abnfDiagram-VCTEODGH-yq7z7Anb.js → abnfDiagram-VCTEODGH-uS-vtfs3.js} +1 -1
- package/web-shell/assets/{arc-CbJO0xnT.js → arc-BSTnk5pu.js} +1 -1
- package/web-shell/assets/{architectureDiagram-5GKGNRK7-CRh89421.js → architectureDiagram-5GKGNRK7-DCMyiqzy.js} +1 -1
- package/web-shell/assets/{blockDiagram-NRAW4CY4-C75KAhKv.js → blockDiagram-NRAW4CY4-C7_gt0r1.js} +1 -1
- package/web-shell/assets/{c4Diagram-UCG6FXSJ-BzlMveFB.js → c4Diagram-UCG6FXSJ-BeQg2L8B.js} +1 -1
- package/web-shell/assets/channel-CENAhErJ.js +1 -0
- package/web-shell/assets/{chunk-2Q5K7J3B-DA8QDX3a.js → chunk-2Q5K7J3B-DnV9bKBe.js} +1 -1
- package/web-shell/assets/{chunk-5VM5RSS4-Bgu7gQ7Y.js → chunk-5VM5RSS4-rT1GAcT7.js} +1 -1
- package/web-shell/assets/{chunk-F27PBJKO-BOew7pIK.js → chunk-F27PBJKO-BcgSxqGA.js} +1 -1
- package/web-shell/assets/{chunk-G27WJ6UU-DHx1I-hO.js → chunk-G27WJ6UU-Bw1ZhyZq.js} +1 -1
- package/web-shell/assets/{chunk-JWPE2WC7-SarFW0WU.js → chunk-JWPE2WC7-D4iDw-96.js} +1 -1
- package/web-shell/assets/{chunk-LCL6LL3I-BLzP083Z.js → chunk-LCL6LL3I-D3MB3GTZ.js} +1 -1
- package/web-shell/assets/{chunk-POPQ4Y6H-Bmkv_iKm.js → chunk-POPQ4Y6H-Cep2ndrS.js} +1 -1
- package/web-shell/assets/{chunk-SVP7TREG-MPx9r1N2.js → chunk-SVP7TREG-BuahMHJc.js} +1 -1
- package/web-shell/assets/{chunk-XXDRQBXY-Ck-09rKG.js → chunk-XXDRQBXY-BdujIvJY.js} +1 -1
- package/web-shell/assets/classDiagram-DTDB5LWJ-CM6FArGH.js +1 -0
- package/web-shell/assets/classDiagram-v2-JRS7N3AN-CM6FArGH.js +1 -0
- package/web-shell/assets/{cose-bilkent-JH36ORCC-DWm6lfOG.js → cose-bilkent-JH36ORCC-CGLLUbF8.js} +1 -1
- package/web-shell/assets/{cynefin-OW5HDTMX-DcBUyr5R.js → cynefin-OW5HDTMX-D6kDsRSh.js} +1 -1
- package/web-shell/assets/{cynefinDiagram-5FMLGOSQ-Df8qmd_p.js → cynefinDiagram-5FMLGOSQ-CCy78qZx.js} +1 -1
- package/web-shell/assets/{dagre-3AP2YEHR-DDmGspD7.js → dagre-3AP2YEHR-D5gJuJsf.js} +1 -1
- package/web-shell/assets/{diagram-S7CK7UJ4-BK_qFvbi.js → diagram-S7CK7UJ4-ZwEZ5W__.js} +1 -1
- package/web-shell/assets/{diagram-UQ7AKVKN-Uw3AP_bi.js → diagram-UQ7AKVKN-B036APjv.js} +1 -1
- package/web-shell/assets/{diagram-VSXAHHWV-CJOQKxY7.js → diagram-VSXAHHWV-BfDJ57Fq.js} +1 -1
- package/web-shell/assets/{diagram-VX7I27RA-DhdvZna5.js → diagram-VX7I27RA-Wha0p5rT.js} +1 -1
- package/web-shell/assets/{diagram-Z3DM3KII-edQU0nlP.js → diagram-Z3DM3KII-L20bz2K1.js} +1 -1
- package/web-shell/assets/{ebnfDiagram-PWID7BFC-4kugBEsO.js → ebnfDiagram-PWID7BFC-D1ZM0Cp7.js} +1 -1
- package/web-shell/assets/{erDiagram-SSCWMZ5O-BMkFivWO.js → erDiagram-SSCWMZ5O-CMtA19v8.js} +1 -1
- package/web-shell/assets/{flowDiagram-A5DVABFB-BM1ea8g-.js → flowDiagram-A5DVABFB-D96m326S.js} +1 -1
- package/web-shell/assets/{ganttDiagram-EL5Y4UJY-CXj_cKRf.js → ganttDiagram-EL5Y4UJY-BuHiYG2o.js} +1 -1
- package/web-shell/assets/{gitGraphDiagram-WWUBYQGX-D0nEqwqu.js → gitGraphDiagram-WWUBYQGX-Ck3NmkSw.js} +1 -1
- package/web-shell/assets/index-8hXIpvo4.js +1865 -0
- package/web-shell/assets/{index-B6JN54Pd.js → index-CBGz4Qjl.js} +1 -1
- package/web-shell/assets/{index-C-XlQn24.css → index-DclEv91i.css} +1 -1
- package/web-shell/assets/{infoDiagram-RXCK75RN-DF7aGGbQ.js → infoDiagram-RXCK75RN-B6DAOyXe.js} +1 -1
- package/web-shell/assets/{ishikawaDiagram-5VMMS53U-CZYNX1lL.js → ishikawaDiagram-5VMMS53U-Bpg-joFo.js} +1 -1
- package/web-shell/assets/{journeyDiagram-EYS64GPL-CvrqMUz1.js → journeyDiagram-EYS64GPL-BclrHzGa.js} +1 -1
- package/web-shell/assets/{kanban-definition-3QL26DDD-BZNJQZBj.js → kanban-definition-3QL26DDD-5gJzNTYG.js} +1 -1
- package/web-shell/assets/{layout-Bf83x7D6.js → layout-CEz_1L8z.js} +1 -1
- package/web-shell/assets/{linear-Bkc3ES2f.js → linear-CBjTq9Hc.js} +1 -1
- package/web-shell/assets/{mermaid.core-C6xuovwz.js → mermaid.core-Dzhbxx_I.js} +6 -6
- package/web-shell/assets/{mindmap-definition-FBJOCRG2-DzH6gVRg.js → mindmap-definition-FBJOCRG2-DQdVqlBF.js} +1 -1
- package/web-shell/assets/{pegDiagram-XKGWAZYB-DCvLh2fa.js → pegDiagram-XKGWAZYB-D1JZlYXL.js} +1 -1
- package/web-shell/assets/{pieDiagram-E7YTZNPT-BtjVlx_6.js → pieDiagram-E7YTZNPT-BmkpYL0w.js} +1 -1
- package/web-shell/assets/{quadrantDiagram-AXDQQJYC-IbroqxFe.js → quadrantDiagram-AXDQQJYC-DRvD6co5.js} +1 -1
- package/web-shell/assets/{railroadDiagram-O6MQD6OU-BvMykiWW.js → railroadDiagram-O6MQD6OU-CEdjDuoo.js} +1 -1
- package/web-shell/assets/{requirementDiagram-EFPCY7ZU-D-HHMyrh.js → requirementDiagram-EFPCY7ZU-BCHG-ie8.js} +1 -1
- package/web-shell/assets/{sankeyDiagram-P5KCCOFB-C0XXhB6d.js → sankeyDiagram-P5KCCOFB-C9cZMnye.js} +1 -1
- package/web-shell/assets/{sequenceDiagram-WJ2MYXX4-DseAXj5d.js → sequenceDiagram-WJ2MYXX4-DYHRV4zL.js} +1 -1
- package/web-shell/assets/{sizeCapture-X5ZJPWSS-Cek2EweK.js → sizeCapture-X5ZJPWSS-DlK21aye.js} +1 -1
- package/web-shell/assets/{stateDiagram-HBIQ2CUA-yLv8wafW.js → stateDiagram-HBIQ2CUA-BrmZssvk.js} +1 -1
- package/web-shell/assets/stateDiagram-v2-4QOOHH4V-B2Q7XDaE.js +1 -0
- package/web-shell/assets/{swimlanes-XN3QIQJK-Cwz-opvE.js → swimlanes-XN3QIQJK-D9xfcayR.js} +1 -1
- package/web-shell/assets/swimlanesDiagram-VK2B7HYN-DpZPOSbX.js +8 -0
- package/web-shell/assets/{timeline-definition-24CTP7MA-BJuFD7OG.js → timeline-definition-24CTP7MA-D4gdDL_d.js} +1 -1
- package/web-shell/assets/{vennDiagram-4TSXK5OY-CNAavdoV.js → vennDiagram-4TSXK5OY-DdhIExjI.js} +1 -1
- package/web-shell/assets/{wardleyDiagram-VM6X3IG4-DaIjAidq.js → wardleyDiagram-VM6X3IG4-C9RS_Zof.js} +1 -1
- package/web-shell/assets/{xychartDiagram-S5SC5T6Z-DkcQXjTy.js → xychartDiagram-S5SC5T6Z-orRgmxWk.js} +1 -1
- package/web-shell/index.html +2 -2
- package/chunks/MaxSizedBox-XYQOMOBE.js +0 -112
- package/chunks/agent-headless-3ZC4LX3E.js +0 -87
- package/chunks/bridge-LFFLHLU5.js +0 -119
- package/chunks/channel-settings-store-CAL2HWAH.js +0 -117
- package/chunks/chunk-JS73NNWF.js +0 -30
- package/chunks/chunk-VGHZT6JR.js +0 -51
- package/chunks/config-utils-YMJNA25D.js +0 -113
- package/chunks/contextCommand-WMPSNKPG.js +0 -108
- package/chunks/daemon-status-provider-YBQAZD3G.js +0 -118
- package/chunks/daemon-trust-policy-O75ZSIJN.js +0 -114
- package/chunks/deferred-core-runtime-MGCCR6LA.js +0 -116
- package/chunks/earlyInputCapture-2EJKJET3.js +0 -109
- package/chunks/errors-XEI3SJRV.js +0 -115
- package/chunks/handleAutoUpdate-S4CLP36D.js +0 -111
- package/chunks/initializer-D3CA3272.js +0 -115
- package/chunks/installationInfo-HVDQOSIE.js +0 -109
- package/chunks/list-XUDSTGT3.js +0 -118
- package/chunks/loadedSettingsAdapter-ZOJ4QEID.js +0 -112
- package/chunks/mcp-QJ6AUYE5.js +0 -112
- package/chunks/nonInteractiveCli-PAWO75YO.js +0 -185
- package/chunks/pidfile-RF3WUFKR.js +0 -113
- package/chunks/prompt-terminal-ledger-4CCXZ2LF.js +0 -107
- package/chunks/resumeHistoryUtils-GFPJD2XB.js +0 -120
- package/chunks/serve-GVD2WXVL.js +0 -120
- package/chunks/spawnChannel-KTURLD4B.js +0 -113
- package/chunks/theme-manager-A7CPN7F4.js +0 -104
- package/chunks/total-session-admission-B7U6UWKQ.js +0 -114
- package/chunks/useAutoAcceptIndicator-VBT3NKDM.js +0 -122
- package/chunks/workspace-providers-status-653DTR35.js +0 -116
- package/chunks/workspace-service-KVJWACCS.js +0 -131
- package/chunks/workspace-skills-status-TRJ2VWGU.js +0 -115
- package/chunks/write-file-EAZSJZKR.js +0 -90
- package/web-shell/assets/channel-B3sGR79J.js +0 -1
- package/web-shell/assets/classDiagram-DTDB5LWJ-sTGo0K3v.js +0 -1
- package/web-shell/assets/classDiagram-v2-JRS7N3AN-sTGo0K3v.js +0 -1
- package/web-shell/assets/index-DLjXM0dn.js +0 -1860
- package/web-shell/assets/stateDiagram-v2-4QOOHH4V-DeThXnol.js +0 -1
- package/web-shell/assets/swimlanesDiagram-VK2B7HYN-GW0R1ZSv.js +0 -8
|
@@ -1,8 +1,5 @@
|
|
|
1
1
|
// Force strict mode and setup for ESM
|
|
2
2
|
"use strict";
|
|
3
|
-
import {
|
|
4
|
-
contextCommand
|
|
5
|
-
} from "./chunk-XO4NGYRP.js";
|
|
6
3
|
import {
|
|
7
4
|
ExtensionRefreshState,
|
|
8
5
|
clearSkillArgs,
|
|
@@ -11,7 +8,13 @@ import {
|
|
|
11
8
|
staleArgsWarning,
|
|
12
9
|
validateAuthMethod,
|
|
13
10
|
writeSkillArgs
|
|
14
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-BAJKAAOY.js";
|
|
12
|
+
import {
|
|
13
|
+
isKittyProtocolEnabled
|
|
14
|
+
} from "./chunk-NYX53SV4.js";
|
|
15
|
+
import {
|
|
16
|
+
contextCommand
|
|
17
|
+
} from "./chunk-AGR5UROZ.js";
|
|
15
18
|
import {
|
|
16
19
|
calculateCost,
|
|
17
20
|
computeSessionStats,
|
|
@@ -20,28 +23,25 @@ import {
|
|
|
20
23
|
findInlineMathExpressions,
|
|
21
24
|
getSystemInfoFields,
|
|
22
25
|
levelLabel
|
|
23
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-K2NQPH5D.js";
|
|
24
27
|
import {
|
|
25
28
|
VSCODE_SHIFT_ENTER_SEQUENCE,
|
|
26
29
|
isWaylandSession,
|
|
27
30
|
writeOsc52
|
|
28
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-FDY5RMGH.js";
|
|
29
32
|
import {
|
|
30
33
|
formatDuration,
|
|
31
34
|
formatTokenCount
|
|
32
35
|
} from "./chunk-3SH53ANB.js";
|
|
33
|
-
import {
|
|
34
|
-
isKittyProtocolEnabled
|
|
35
|
-
} from "./chunk-NYX53SV4.js";
|
|
36
36
|
import {
|
|
37
37
|
rollbackStandaloneUpdate
|
|
38
|
-
} from "./chunk-
|
|
38
|
+
} from "./chunk-QP4C6WCE.js";
|
|
39
39
|
import {
|
|
40
40
|
themeManager
|
|
41
|
-
} from "./chunk-
|
|
41
|
+
} from "./chunk-QFCDF5PL.js";
|
|
42
42
|
import {
|
|
43
43
|
getErrorMessage as getErrorMessage2
|
|
44
|
-
} from "./chunk-
|
|
44
|
+
} from "./chunk-L6YT5H34.js";
|
|
45
45
|
import {
|
|
46
46
|
GITHUB_WORKFLOW_PATHS,
|
|
47
47
|
INSIGHT_CSS,
|
|
@@ -54,7 +54,7 @@ import {
|
|
|
54
54
|
toJson,
|
|
55
55
|
toJsonl,
|
|
56
56
|
toMarkdown
|
|
57
|
-
} from "./chunk-
|
|
57
|
+
} from "./chunk-3SGB2UHX.js";
|
|
58
58
|
import {
|
|
59
59
|
stripUnsafeCharacters,
|
|
60
60
|
toCodePoints,
|
|
@@ -70,16 +70,16 @@ import {
|
|
|
70
70
|
isVoiceEnabled,
|
|
71
71
|
readVoiceMode,
|
|
72
72
|
readVoiceModel
|
|
73
|
-
} from "./chunk-
|
|
73
|
+
} from "./chunk-XRSOI3DL.js";
|
|
74
74
|
import {
|
|
75
75
|
getExtendedSystemInfo,
|
|
76
76
|
getGitVersion,
|
|
77
77
|
getNpmVersion
|
|
78
|
-
} from "./chunk-
|
|
78
|
+
} from "./chunk-RJC5EIKY.js";
|
|
79
79
|
import {
|
|
80
80
|
isInlineModelOverrideAllowed,
|
|
81
81
|
parseAcpModelOption
|
|
82
|
-
} from "./chunk-
|
|
82
|
+
} from "./chunk-Q26AYA62.js";
|
|
83
83
|
import {
|
|
84
84
|
OUTPUT_LANGUAGE_AUTO,
|
|
85
85
|
getAllSettingKeys,
|
|
@@ -91,12 +91,12 @@ import {
|
|
|
91
91
|
resolveOutputLanguageOrPreserveAuto,
|
|
92
92
|
validateSettingValue,
|
|
93
93
|
writeOutputLanguageAndRegisterPath
|
|
94
|
-
} from "./chunk-
|
|
94
|
+
} from "./chunk-F7TNAPZ4.js";
|
|
95
95
|
import {
|
|
96
96
|
getCurrentLanguage,
|
|
97
97
|
setLanguageAsync,
|
|
98
98
|
t
|
|
99
|
-
} from "./chunk-
|
|
99
|
+
} from "./chunk-LDP5OD6N.js";
|
|
100
100
|
import {
|
|
101
101
|
SUPPORTED_LANGUAGES,
|
|
102
102
|
getSupportedLanguageIds,
|
|
@@ -104,11 +104,11 @@ import {
|
|
|
104
104
|
} from "./chunk-5EJZE3FP.js";
|
|
105
105
|
import {
|
|
106
106
|
getInstallationInfo
|
|
107
|
-
} from "./chunk-
|
|
107
|
+
} from "./chunk-V2NDP3I4.js";
|
|
108
108
|
import {
|
|
109
109
|
isFolderTrustEnabled,
|
|
110
110
|
loadTrustedFolders
|
|
111
|
-
} from "./chunk-
|
|
111
|
+
} from "./chunk-V4QXXQJ2.js";
|
|
112
112
|
import {
|
|
113
113
|
require_strip_json_comments
|
|
114
114
|
} from "./chunk-NPQ5ZKRP.js";
|
|
@@ -122,24 +122,27 @@ import {
|
|
|
122
122
|
buildLearnSkillPrompt,
|
|
123
123
|
buildLearnVideoSkillRequest,
|
|
124
124
|
buildManagedRememberPrompt,
|
|
125
|
+
canonicalizeMsgId,
|
|
126
|
+
describeHoldCause,
|
|
125
127
|
encodeInsightErrorMessage,
|
|
126
128
|
encodeInsightProgressMessage,
|
|
127
129
|
encodeInsightReadyMessage,
|
|
128
130
|
findProviderByCredentials,
|
|
131
|
+
flattenPeerLabel,
|
|
129
132
|
generateSessionRecap,
|
|
130
133
|
getIdeInstaller,
|
|
131
134
|
getMCPServerPrompts,
|
|
132
135
|
isWsl,
|
|
133
136
|
parseLearnVideoInput,
|
|
134
137
|
readPathFromWorkspace
|
|
135
|
-
} from "./chunk-
|
|
138
|
+
} from "./chunk-KUX5D6DK.js";
|
|
136
139
|
import {
|
|
137
140
|
listSavedWorkflows,
|
|
138
141
|
listWorkflowSnapshots
|
|
139
|
-
} from "./chunk-
|
|
142
|
+
} from "./chunk-3DXFGHAJ.js";
|
|
140
143
|
import {
|
|
141
144
|
resolveOpenAILogDir
|
|
142
|
-
} from "./chunk-
|
|
145
|
+
} from "./chunk-MIIVI25Q.js";
|
|
143
146
|
import {
|
|
144
147
|
ArenaManager,
|
|
145
148
|
ConditionalRulesRegistry,
|
|
@@ -181,7 +184,7 @@ import {
|
|
|
181
184
|
resolveSlimmingConfig,
|
|
182
185
|
runForkedAgent,
|
|
183
186
|
tryGenerateSessionTitle
|
|
184
|
-
} from "./chunk-
|
|
187
|
+
} from "./chunk-TGWAQ5RB.js";
|
|
185
188
|
import {
|
|
186
189
|
external_exports
|
|
187
190
|
} from "./chunk-CQ35AJ4Z.js";
|
|
@@ -189,7 +192,7 @@ import {
|
|
|
189
192
|
buildRuntimeSnapshotId,
|
|
190
193
|
resolveModelId,
|
|
191
194
|
stripRuntimeSnapshotPrefix
|
|
192
|
-
} from "./chunk-
|
|
195
|
+
} from "./chunk-JB4JIVTJ.js";
|
|
193
196
|
import {
|
|
194
197
|
getAutoSkillCuratorStatus,
|
|
195
198
|
parse,
|
|
@@ -197,31 +200,31 @@ import {
|
|
|
197
200
|
restoreArchivedAutoSkill,
|
|
198
201
|
runAutoSkillCurator,
|
|
199
202
|
setAutoSkillPinned
|
|
200
|
-
} from "./chunk-
|
|
203
|
+
} from "./chunk-EFUM7RVY.js";
|
|
201
204
|
import {
|
|
202
205
|
HookEventName,
|
|
203
206
|
sanitizeUserPromptExpansionAdditionalContext
|
|
204
|
-
} from "./chunk-
|
|
207
|
+
} from "./chunk-TTX2JUE6.js";
|
|
205
208
|
import {
|
|
206
209
|
canUseRipgrep
|
|
207
|
-
} from "./chunk-
|
|
210
|
+
} from "./chunk-43GGFFLY.js";
|
|
208
211
|
import {
|
|
209
212
|
glob
|
|
210
|
-
} from "./chunk-
|
|
213
|
+
} from "./chunk-SMPR7SPO.js";
|
|
211
214
|
import {
|
|
212
215
|
checkArgumentSafety,
|
|
213
216
|
checkCommandPermissions,
|
|
214
217
|
escapeShellArg,
|
|
215
218
|
getShellConfiguration
|
|
216
|
-
} from "./chunk-
|
|
219
|
+
} from "./chunk-JWALNCLT.js";
|
|
217
220
|
import {
|
|
218
221
|
GoalPersistenceUnavailableError,
|
|
219
222
|
emptyGoalSnapshot,
|
|
220
223
|
projectUserTranscriptForDisplay
|
|
221
|
-
} from "./chunk-
|
|
224
|
+
} from "./chunk-WKK5BQNP.js";
|
|
222
225
|
import {
|
|
223
226
|
APPROVAL_MODES
|
|
224
|
-
} from "./chunk-
|
|
227
|
+
} from "./chunk-V5J4J5TP.js";
|
|
225
228
|
import {
|
|
226
229
|
openBrowserSecurely
|
|
227
230
|
} from "./chunk-NAVJD2PQ.js";
|
|
@@ -242,37 +245,37 @@ import {
|
|
|
242
245
|
read,
|
|
243
246
|
recordSkillInvocation,
|
|
244
247
|
uiTelemetryService
|
|
245
|
-
} from "./chunk-
|
|
248
|
+
} from "./chunk-L2M46FP5.js";
|
|
246
249
|
import {
|
|
247
250
|
getCurrentGeminiMdFilename
|
|
248
|
-
} from "./chunk-
|
|
251
|
+
} from "./chunk-3I6UTTDX.js";
|
|
249
252
|
import {
|
|
250
253
|
getAutoMemoryRoot
|
|
251
|
-
} from "./chunk-
|
|
254
|
+
} from "./chunk-6PJOTWAN.js";
|
|
252
255
|
import {
|
|
253
256
|
runSideQuery
|
|
254
|
-
} from "./chunk-
|
|
257
|
+
} from "./chunk-BWORX6FA.js";
|
|
255
258
|
import {
|
|
256
259
|
AuthType
|
|
257
|
-
} from "./chunk-
|
|
260
|
+
} from "./chunk-PPKZ7JOE.js";
|
|
258
261
|
import {
|
|
259
262
|
normalizeContent,
|
|
260
263
|
redactUrlCredentials
|
|
261
|
-
} from "./chunk-
|
|
264
|
+
} from "./chunk-L6BZRIUL.js";
|
|
262
265
|
import {
|
|
263
266
|
FORK_SUBAGENT_TYPE,
|
|
264
267
|
stripStartupContext
|
|
265
|
-
} from "./chunk-
|
|
268
|
+
} from "./chunk-CAJTKR6W.js";
|
|
266
269
|
import {
|
|
267
270
|
applySkillAllowedTools,
|
|
268
271
|
buildSkillLlmContent
|
|
269
|
-
} from "./chunk-
|
|
272
|
+
} from "./chunk-ZU4UDIWX.js";
|
|
270
273
|
import {
|
|
271
274
|
ToolDisplayNamesMigration,
|
|
272
275
|
ToolNames,
|
|
273
276
|
canonicalToolName,
|
|
274
277
|
isShellProgressData
|
|
275
|
-
} from "./chunk-
|
|
278
|
+
} from "./chunk-UTLCH2FK.js";
|
|
276
279
|
import {
|
|
277
280
|
Storage,
|
|
278
281
|
createDebugLogger,
|
|
@@ -281,12 +284,12 @@ import {
|
|
|
281
284
|
isSubpath,
|
|
282
285
|
resolvePath,
|
|
283
286
|
updateSymlink
|
|
284
|
-
} from "./chunk-
|
|
287
|
+
} from "./chunk-UHQFIS7N.js";
|
|
285
288
|
import {
|
|
286
289
|
isCpuProfileRecording,
|
|
287
290
|
startCpuProfile,
|
|
288
291
|
stopCpuProfile
|
|
289
|
-
} from "./chunk-
|
|
292
|
+
} from "./chunk-W5MJJ2V7.js";
|
|
290
293
|
import {
|
|
291
294
|
init_esbuild_shims
|
|
292
295
|
} from "./chunk-5O2XNYP6.js";
|
|
@@ -2435,7 +2438,7 @@ var approvalModeCommand = {
|
|
|
2435
2438
|
};
|
|
2436
2439
|
}
|
|
2437
2440
|
}
|
|
2438
|
-
const autoModeNotices = mode === "auto" /* AUTO */ && priorMode !== "auto" /* AUTO */ && config ? await import("./useAutoAcceptIndicator-
|
|
2441
|
+
const autoModeNotices = mode === "auto" /* AUTO */ && priorMode !== "auto" /* AUTO */ && config ? await import("./useAutoAcceptIndicator-UI4SNL2O.js") : void 0;
|
|
2439
2442
|
if (config) {
|
|
2440
2443
|
try {
|
|
2441
2444
|
config.setApprovalMode(mode);
|
|
@@ -2533,6 +2536,175 @@ var branchCommand = {
|
|
|
2533
2536
|
}, "action")
|
|
2534
2537
|
};
|
|
2535
2538
|
|
|
2539
|
+
// packages/cli/src/ui/commands/peers-command.ts
|
|
2540
|
+
init_esbuild_shims();
|
|
2541
|
+
function shortId(msgId) {
|
|
2542
|
+
return msgId.replace(/-/g, "").slice(0, 6);
|
|
2543
|
+
}
|
|
2544
|
+
__name(shortId, "shortId");
|
|
2545
|
+
function displayHandle(entry, held) {
|
|
2546
|
+
const own = canonicalizeMsgId(entry.frame.msgId);
|
|
2547
|
+
let length = Math.min(shortId(entry.frame.msgId).length, own.length);
|
|
2548
|
+
const collides = /* @__PURE__ */ __name((len) => held.some(
|
|
2549
|
+
(other) => other !== entry && canonicalizeMsgId(other.frame.msgId).startsWith(own.slice(0, len))
|
|
2550
|
+
), "collides");
|
|
2551
|
+
while (length < own.length && collides(length)) {
|
|
2552
|
+
length += 1;
|
|
2553
|
+
}
|
|
2554
|
+
return own.slice(0, length);
|
|
2555
|
+
}
|
|
2556
|
+
__name(displayHandle, "displayHandle");
|
|
2557
|
+
function preview(text, max = 100) {
|
|
2558
|
+
const oneLine = flattenPeerLabel(text).replace(/\s+/g, " ").trim();
|
|
2559
|
+
return oneLine.length > max ? `${oneLine.slice(0, max - 1)}\u2026` : oneLine;
|
|
2560
|
+
}
|
|
2561
|
+
__name(preview, "preview");
|
|
2562
|
+
function formatHeldList(held) {
|
|
2563
|
+
if (held.length === 0) return "No messages from other sessions are waiting.";
|
|
2564
|
+
const lines = held.map((entry) => {
|
|
2565
|
+
const who = flattenPeerLabel(
|
|
2566
|
+
entry.frame.fromName ?? entry.frame.from ?? "unknown session"
|
|
2567
|
+
);
|
|
2568
|
+
const handle = flattenPeerLabel(displayHandle(entry, held));
|
|
2569
|
+
return ` ${handle} ${who}
|
|
2570
|
+
${preview(entry.frame.message.content)}
|
|
2571
|
+
held because ${describeHoldCause(entry.cause)}`;
|
|
2572
|
+
});
|
|
2573
|
+
return [
|
|
2574
|
+
`${held.length} message${held.length === 1 ? "" : "s"} waiting for your review:`,
|
|
2575
|
+
...lines,
|
|
2576
|
+
"",
|
|
2577
|
+
"Release with /peers accept <id|all>, or drop with /peers deny <id|all>."
|
|
2578
|
+
].join("\n");
|
|
2579
|
+
}
|
|
2580
|
+
__name(formatHeldList, "formatHeldList");
|
|
2581
|
+
function resolveHeld(held, token) {
|
|
2582
|
+
const needle = token.toLowerCase();
|
|
2583
|
+
const exact = held.filter(
|
|
2584
|
+
(entry) => canonicalizeMsgId(entry.frame.msgId) === needle
|
|
2585
|
+
);
|
|
2586
|
+
if (exact.length === 1) return { kind: "one", msgId: exact[0].frame.msgId };
|
|
2587
|
+
const matches = held.filter(
|
|
2588
|
+
(entry) => canonicalizeMsgId(entry.frame.msgId).startsWith(needle) || entry.frame.msgId.toLowerCase().startsWith(needle)
|
|
2589
|
+
);
|
|
2590
|
+
if (matches.length === 0) return { kind: "none" };
|
|
2591
|
+
if (matches.length > 1) return { kind: "ambiguous" };
|
|
2592
|
+
return { kind: "one", msgId: matches[0].frame.msgId };
|
|
2593
|
+
}
|
|
2594
|
+
__name(resolveHeld, "resolveHeld");
|
|
2595
|
+
var peersCommand = {
|
|
2596
|
+
name: "peers",
|
|
2597
|
+
kind: "built-in" /* BUILT_IN */,
|
|
2598
|
+
get description() {
|
|
2599
|
+
return t(
|
|
2600
|
+
"Review messages held from other Qwen Code sessions (accept | deny)"
|
|
2601
|
+
);
|
|
2602
|
+
},
|
|
2603
|
+
action: /* @__PURE__ */ __name(async (context, args) => {
|
|
2604
|
+
const peerMessaging = context.services.peerMessaging;
|
|
2605
|
+
if (!peerMessaging) {
|
|
2606
|
+
const enabled = context.services.settings?.merged?.agents?.crossSessionMessaging === true;
|
|
2607
|
+
return {
|
|
2608
|
+
type: "message",
|
|
2609
|
+
messageType: enabled ? "error" : "info",
|
|
2610
|
+
content: enabled ? "Cross-session messaging is on, but this session has no inbox: it either failed to register in the session registry or failed to bind its socket. Re-run with DEBUG=1 to see the bind error." : 'Cross-session messaging is off. Enable it with "agents.crossSessionMessaging": true in settings.json, then restart.'
|
|
2611
|
+
};
|
|
2612
|
+
}
|
|
2613
|
+
const held = peerMessaging.getHeld();
|
|
2614
|
+
const [verb, ...rest] = args.trim().split(/\s+/).filter(Boolean);
|
|
2615
|
+
if (verb === void 0 || verb === "list") {
|
|
2616
|
+
peerMessaging.recordHeldListing(held);
|
|
2617
|
+
return {
|
|
2618
|
+
type: "message",
|
|
2619
|
+
messageType: "info",
|
|
2620
|
+
content: formatHeldList(held)
|
|
2621
|
+
};
|
|
2622
|
+
}
|
|
2623
|
+
if (verb !== "accept" && verb !== "deny") {
|
|
2624
|
+
return {
|
|
2625
|
+
type: "message",
|
|
2626
|
+
messageType: "error",
|
|
2627
|
+
content: `Unknown subcommand "${verb}". Use /peers, /peers accept <id|all>, or /peers deny <id|all>.`
|
|
2628
|
+
};
|
|
2629
|
+
}
|
|
2630
|
+
const decision = verb === "accept" ? "approve" : "deny";
|
|
2631
|
+
const target = rest[0];
|
|
2632
|
+
if (target === void 0) {
|
|
2633
|
+
return {
|
|
2634
|
+
type: "message",
|
|
2635
|
+
messageType: "error",
|
|
2636
|
+
content: `Which message? Use /peers ${verb} <id|all> \u2014 /peers lists the ids.`
|
|
2637
|
+
};
|
|
2638
|
+
}
|
|
2639
|
+
if (peerMessaging.heldSetChangedSinceListing()) {
|
|
2640
|
+
return {
|
|
2641
|
+
type: "message",
|
|
2642
|
+
messageType: "error",
|
|
2643
|
+
content: "The waiting list changed since you listed it \u2014 run /peers again to review what is waiting now."
|
|
2644
|
+
};
|
|
2645
|
+
}
|
|
2646
|
+
if (held.length === 0) {
|
|
2647
|
+
return {
|
|
2648
|
+
type: "message",
|
|
2649
|
+
messageType: "info",
|
|
2650
|
+
content: "No messages from other sessions are waiting."
|
|
2651
|
+
};
|
|
2652
|
+
}
|
|
2653
|
+
if (target.toLowerCase() === "all") {
|
|
2654
|
+
const ids = held.map((entry) => entry.frame.msgId);
|
|
2655
|
+
let count = 0;
|
|
2656
|
+
let failed = 0;
|
|
2657
|
+
for (const msgId of ids) {
|
|
2658
|
+
const outcome2 = peerMessaging.decide(msgId, decision);
|
|
2659
|
+
if (outcome2 === "done") count += 1;
|
|
2660
|
+
else if (outcome2 === "failed") failed += 1;
|
|
2661
|
+
}
|
|
2662
|
+
peerMessaging.recordHeldListing(peerMessaging.getHeld());
|
|
2663
|
+
return {
|
|
2664
|
+
type: "message",
|
|
2665
|
+
messageType: "info",
|
|
2666
|
+
content: `${verb === "accept" ? "Released" : "Dropped"} ${count} message${count === 1 ? "" : "s"}.` + (failed > 0 ? ` ${failed} could not be delivered and ${failed === 1 ? "is" : "are"} still waiting \u2014 try again once the session catches up.` : "")
|
|
2667
|
+
};
|
|
2668
|
+
}
|
|
2669
|
+
const resolved = resolveHeld(held, target);
|
|
2670
|
+
if (resolved.kind === "none") {
|
|
2671
|
+
return {
|
|
2672
|
+
type: "message",
|
|
2673
|
+
messageType: "error",
|
|
2674
|
+
content: `No held message matches "${target}". Run /peers to see what is waiting.`
|
|
2675
|
+
};
|
|
2676
|
+
}
|
|
2677
|
+
if (resolved.kind === "ambiguous") {
|
|
2678
|
+
return {
|
|
2679
|
+
type: "message",
|
|
2680
|
+
messageType: "error",
|
|
2681
|
+
content: `"${target}" matches more than one held message. Use more characters of the id.`
|
|
2682
|
+
};
|
|
2683
|
+
}
|
|
2684
|
+
const outcome = peerMessaging.decide(resolved.msgId, decision);
|
|
2685
|
+
peerMessaging.recordHeldListing(peerMessaging.getHeld());
|
|
2686
|
+
if (outcome === "gone") {
|
|
2687
|
+
return {
|
|
2688
|
+
type: "message",
|
|
2689
|
+
messageType: "info",
|
|
2690
|
+
content: "That message is no longer waiting \u2014 it may have expired or already been decided."
|
|
2691
|
+
};
|
|
2692
|
+
}
|
|
2693
|
+
if (outcome === "failed") {
|
|
2694
|
+
return {
|
|
2695
|
+
type: "message",
|
|
2696
|
+
messageType: "error",
|
|
2697
|
+
content: "The session could not take the message just now \u2014 its input queue is full. It is still waiting; try again in a moment."
|
|
2698
|
+
};
|
|
2699
|
+
}
|
|
2700
|
+
return {
|
|
2701
|
+
type: "message",
|
|
2702
|
+
messageType: "info",
|
|
2703
|
+
content: verb === "accept" ? "Released to this session. It will be picked up on the next turn." : "Dropped. The sending session has been told."
|
|
2704
|
+
};
|
|
2705
|
+
}, "action")
|
|
2706
|
+
};
|
|
2707
|
+
|
|
2536
2708
|
// packages/cli/src/ui/commands/btwCommand.ts
|
|
2537
2709
|
init_esbuild_shims();
|
|
2538
2710
|
function formatBtwError(error) {
|
|
@@ -5808,8 +5980,8 @@ function formatSmapsRollup(smapsRollup) {
|
|
|
5808
5980
|
if (rssLine) {
|
|
5809
5981
|
return rssLine;
|
|
5810
5982
|
}
|
|
5811
|
-
const
|
|
5812
|
-
return `${t("parse error")}: ${
|
|
5983
|
+
const preview2 = smapsRollup.slice(0, 80).trim().replace(/\s+/g, " ");
|
|
5984
|
+
return `${t("parse error")}: ${preview2}`;
|
|
5813
5985
|
}
|
|
5814
5986
|
__name(formatSmapsRollup, "formatSmapsRollup");
|
|
5815
5987
|
function formatCoreDiagnostics(diagnostics) {
|
|
@@ -6229,11 +6401,13 @@ var effortCommand = {
|
|
|
6229
6401
|
};
|
|
6230
6402
|
}
|
|
6231
6403
|
applyReasoningEffort(config, tier);
|
|
6232
|
-
|
|
6233
|
-
|
|
6234
|
-
|
|
6235
|
-
|
|
6236
|
-
|
|
6404
|
+
if (context.executionPolicy?.persistModelSelection !== false) {
|
|
6405
|
+
settings.setValue(
|
|
6406
|
+
getPersistScopeForModelSelection(settings),
|
|
6407
|
+
"model.reasoningEffort",
|
|
6408
|
+
tier
|
|
6409
|
+
);
|
|
6410
|
+
}
|
|
6237
6411
|
return {
|
|
6238
6412
|
type: "message",
|
|
6239
6413
|
messageType: "info",
|
|
@@ -7239,7 +7413,7 @@ var expandNowCommand = {
|
|
|
7239
7413
|
content: t("History is already expanded in this session.")
|
|
7240
7414
|
};
|
|
7241
7415
|
}
|
|
7242
|
-
const { expandCollapsedHistory } = await import("./resumeHistoryUtils-
|
|
7416
|
+
const { expandCollapsedHistory } = await import("./resumeHistoryUtils-CZ4JRDVW.js");
|
|
7243
7417
|
const updated = expandCollapsedHistory(history);
|
|
7244
7418
|
loadHistory(updated);
|
|
7245
7419
|
refreshStatic();
|
|
@@ -8622,6 +8796,15 @@ var importConfigCommand = {
|
|
|
8622
8796
|
${usage()}`
|
|
8623
8797
|
};
|
|
8624
8798
|
}
|
|
8799
|
+
if (parsed.scope === "project" && context.executionPolicy?.allowWorkspaceSettingsWrite === false) {
|
|
8800
|
+
return {
|
|
8801
|
+
type: "message",
|
|
8802
|
+
messageType: "error",
|
|
8803
|
+
content: t(
|
|
8804
|
+
"Project configuration imports are not available in this session."
|
|
8805
|
+
)
|
|
8806
|
+
};
|
|
8807
|
+
}
|
|
8625
8808
|
try {
|
|
8626
8809
|
const importSource = resolveImportSourceForScope(
|
|
8627
8810
|
parsed.source,
|
|
@@ -8816,6 +8999,15 @@ function validateUiScopeFlags(context, parsed) {
|
|
|
8816
8999
|
)
|
|
8817
9000
|
};
|
|
8818
9001
|
}
|
|
9002
|
+
if (parsed.scope === "Workspace" /* Workspace */ && context.executionPolicy?.allowWorkspaceSettingsWrite === false) {
|
|
9003
|
+
return {
|
|
9004
|
+
type: "message",
|
|
9005
|
+
messageType: "error",
|
|
9006
|
+
content: t(
|
|
9007
|
+
"Project language settings are not available in this session."
|
|
9008
|
+
)
|
|
9009
|
+
};
|
|
9010
|
+
}
|
|
8819
9011
|
if (parsed.scope === "Workspace" /* Workspace */ && context.services.settings && !context.services.settings.isTrusted) {
|
|
8820
9012
|
return {
|
|
8821
9013
|
type: "message",
|
|
@@ -9296,7 +9488,7 @@ function persistSetting(settings, path18, value, scopeOverride) {
|
|
|
9296
9488
|
settings.setValue(resolveScope(settings, scopeOverride), path18, value);
|
|
9297
9489
|
}
|
|
9298
9490
|
__name(persistSetting, "persistSetting");
|
|
9299
|
-
async function switchMainModel(config, settings, currentAuthType, modelArg, scopeOverride) {
|
|
9491
|
+
async function switchMainModel(config, settings, currentAuthType, modelArg, scopeOverride, persistSelection = true) {
|
|
9300
9492
|
const parsed = parseAcpModelOption(modelArg);
|
|
9301
9493
|
if (parsed.authType) {
|
|
9302
9494
|
await config.switchModel(
|
|
@@ -9304,19 +9496,23 @@ async function switchMainModel(config, settings, currentAuthType, modelArg, scop
|
|
|
9304
9496
|
parsed.modelId,
|
|
9305
9497
|
parsed.authType !== currentAuthType && parsed.authType === "qwen-oauth" /* QWEN_OAUTH */ ? { requireCachedCredentials: true } : void 0
|
|
9306
9498
|
);
|
|
9307
|
-
|
|
9308
|
-
|
|
9309
|
-
|
|
9310
|
-
|
|
9311
|
-
|
|
9312
|
-
|
|
9313
|
-
|
|
9314
|
-
|
|
9499
|
+
if (persistSelection) {
|
|
9500
|
+
persistSetting(
|
|
9501
|
+
settings,
|
|
9502
|
+
"security.auth.selectedType",
|
|
9503
|
+
parsed.authType,
|
|
9504
|
+
scopeOverride
|
|
9505
|
+
);
|
|
9506
|
+
persistSetting(settings, "model.name", parsed.modelId, scopeOverride);
|
|
9507
|
+
persistSetting(settings, "model.baseUrl", "", scopeOverride);
|
|
9508
|
+
}
|
|
9315
9509
|
return parsed.modelId;
|
|
9316
9510
|
}
|
|
9317
9511
|
await config.switchModel(currentAuthType, modelArg, void 0);
|
|
9318
|
-
|
|
9319
|
-
|
|
9512
|
+
if (persistSelection) {
|
|
9513
|
+
persistSetting(settings, "model.name", modelArg, scopeOverride);
|
|
9514
|
+
persistSetting(settings, "model.baseUrl", "", scopeOverride);
|
|
9515
|
+
}
|
|
9320
9516
|
return modelArg;
|
|
9321
9517
|
}
|
|
9322
9518
|
__name(switchMainModel, "switchMainModel");
|
|
@@ -9540,6 +9736,14 @@ var modelCommand = {
|
|
|
9540
9736
|
)
|
|
9541
9737
|
};
|
|
9542
9738
|
}
|
|
9739
|
+
const auxiliarySelection = /(?:^|\s)--(?:fast|voice|vision|compaction|image)(?:\s|$)/.test(rawArgs);
|
|
9740
|
+
if (hasProject && context.executionPolicy?.allowWorkspaceSettingsWrite === false || context.executionPolicy?.persistModelSelection === false && (hasProject || hasGlobal || auxiliarySelection)) {
|
|
9741
|
+
return {
|
|
9742
|
+
type: "message",
|
|
9743
|
+
messageType: "error",
|
|
9744
|
+
content: t("This model selection is not available in this session.")
|
|
9745
|
+
};
|
|
9746
|
+
}
|
|
9543
9747
|
if (scopeOverride === "Workspace" /* Workspace */ && settings && !settings.isTrusted) {
|
|
9544
9748
|
return {
|
|
9545
9749
|
type: "message",
|
|
@@ -10036,7 +10240,8 @@ ${formatNonVisionModelWarning(modelName2)}`;
|
|
|
10036
10240
|
settings,
|
|
10037
10241
|
authType,
|
|
10038
10242
|
modelName,
|
|
10039
|
-
scopeOverride
|
|
10243
|
+
scopeOverride,
|
|
10244
|
+
context.executionPolicy?.persistModelSelection !== false
|
|
10040
10245
|
);
|
|
10041
10246
|
if (context.executionMode === "acp") {
|
|
10042
10247
|
await recordDaemonSessionModelFromConfig(config);
|
|
@@ -14518,10 +14723,10 @@ var updateCommand = {
|
|
|
14518
14723
|
{ performStandaloneUpdate },
|
|
14519
14724
|
installationInfo
|
|
14520
14725
|
] = await Promise.all([
|
|
14521
|
-
import("./updateCheck-
|
|
14522
|
-
import("./processUtils-
|
|
14523
|
-
import("./standalone-update-
|
|
14524
|
-
import("./installationInfo-
|
|
14726
|
+
import("./updateCheck-7QBDXZRT.js"),
|
|
14727
|
+
import("./processUtils-IQZBYWSB.js"),
|
|
14728
|
+
import("./standalone-update-RGILUQVK.js"),
|
|
14729
|
+
import("./installationInfo-Y7AULNMX.js")
|
|
14525
14730
|
]);
|
|
14526
14731
|
const { formatUpdateInstructions, getInstallationInfo: getInstallationInfo2 } = installationInfo;
|
|
14527
14732
|
const settings = context.services.settings;
|
|
@@ -14682,6 +14887,7 @@ var BuiltinCommandLoader = class {
|
|
|
14682
14887
|
approvalModeCommand,
|
|
14683
14888
|
authCommand,
|
|
14684
14889
|
branchCommand,
|
|
14890
|
+
peersCommand,
|
|
14685
14891
|
btwCommand,
|
|
14686
14892
|
forkCommand,
|
|
14687
14893
|
bugCommand,
|
|
@@ -16057,6 +16263,12 @@ function getSkillCommandName(command) {
|
|
|
16057
16263
|
return command.skillDetail?.name ?? command.name;
|
|
16058
16264
|
}
|
|
16059
16265
|
__name(getSkillCommandName, "getSkillCommandName");
|
|
16266
|
+
function isCommandAllowedByPolicy(command, policy) {
|
|
16267
|
+
if (!policy || command.kind !== "built-in" /* BUILT_IN */) return true;
|
|
16268
|
+
if (command.name === "clear" && !policy.allowSessionReset) return false;
|
|
16269
|
+
return !policy.blockedBuiltinCommandNames.includes(command.name);
|
|
16270
|
+
}
|
|
16271
|
+
__name(isCommandAllowedByPolicy, "isCommandAllowedByPolicy");
|
|
16060
16272
|
function handleCommandResult(result, outputHistoryItems) {
|
|
16061
16273
|
switch (result.type) {
|
|
16062
16274
|
case "submit_prompt":
|
|
@@ -16176,12 +16388,12 @@ async function fireUserPromptExpansionHook(config, commandName, commandArgs, con
|
|
|
16176
16388
|
};
|
|
16177
16389
|
}
|
|
16178
16390
|
__name(fireUserPromptExpansionHook, "fireUserPromptExpansionHook");
|
|
16179
|
-
async function registerModelInvocableCommands(commandService, config, executionMode, settings) {
|
|
16391
|
+
async function registerModelInvocableCommands(commandService, config, executionMode, settings, executionPolicy) {
|
|
16180
16392
|
if (!settings) {
|
|
16181
16393
|
return;
|
|
16182
16394
|
}
|
|
16183
16395
|
config.setModelInvocableCommandsProvider(
|
|
16184
|
-
() => commandService.getModelInvocableCommands().map((cmd) => ({
|
|
16396
|
+
() => commandService.getModelInvocableCommands().filter((cmd) => isCommandAllowedByPolicy(cmd, executionPolicy)).map((cmd) => ({
|
|
16185
16397
|
name: cmd.name,
|
|
16186
16398
|
description: cmd.modelDescription ?? cmd.description
|
|
16187
16399
|
}))
|
|
@@ -16189,7 +16401,9 @@ async function registerModelInvocableCommands(commandService, config, executionM
|
|
|
16189
16401
|
config.setModelInvocableCommandsExecutor(
|
|
16190
16402
|
async (name, args = "") => {
|
|
16191
16403
|
const commands = commandService.getModelInvocableCommands();
|
|
16192
|
-
const cmd = commands.find(
|
|
16404
|
+
const cmd = commands.find(
|
|
16405
|
+
(candidate) => candidate.name === name && isCommandAllowedByPolicy(candidate, executionPolicy)
|
|
16406
|
+
);
|
|
16193
16407
|
if (!cmd?.action) return null;
|
|
16194
16408
|
const minimalContext = {
|
|
16195
16409
|
executionMode,
|
|
@@ -16198,7 +16412,8 @@ async function registerModelInvocableCommands(commandService, config, executionM
|
|
|
16198
16412
|
name,
|
|
16199
16413
|
args
|
|
16200
16414
|
},
|
|
16201
|
-
services: { config, settings, logger: null }
|
|
16415
|
+
services: { config, settings, logger: null },
|
|
16416
|
+
...executionPolicy ? { executionPolicy } : {}
|
|
16202
16417
|
};
|
|
16203
16418
|
const result = await cmd.action(minimalContext, args);
|
|
16204
16419
|
if (!result || result.type !== "submit_prompt") return null;
|
|
@@ -16227,7 +16442,7 @@ async function registerModelInvocableCommands(commandService, config, executionM
|
|
|
16227
16442
|
await skillManager?.notifyConfigChanged();
|
|
16228
16443
|
}
|
|
16229
16444
|
__name(registerModelInvocableCommands, "registerModelInvocableCommands");
|
|
16230
|
-
var handleSlashCommand = /* @__PURE__ */ __name(async (rawQuery, abortController, config, settings, sessionHooks) => {
|
|
16445
|
+
var handleSlashCommand = /* @__PURE__ */ __name(async (rawQuery, abortController, config, settings, sessionHooks, executionPolicy) => {
|
|
16231
16446
|
const trimmed = rawQuery.trim();
|
|
16232
16447
|
if (!trimmed.startsWith("/")) {
|
|
16233
16448
|
return { type: "no_command" };
|
|
@@ -16263,10 +16478,13 @@ var handleSlashCommand = /* @__PURE__ */ __name(async (rawQuery, abortController
|
|
|
16263
16478
|
commandService,
|
|
16264
16479
|
config,
|
|
16265
16480
|
executionMode,
|
|
16266
|
-
settings
|
|
16481
|
+
settings,
|
|
16482
|
+
executionPolicy
|
|
16267
16483
|
);
|
|
16268
16484
|
const allCommands = allCommandService.getCommands();
|
|
16269
|
-
const filteredCommands = commandService.getCommandsForMode(executionMode).filter(
|
|
16485
|
+
const filteredCommands = commandService.getCommandsForMode(executionMode).filter(
|
|
16486
|
+
(cmd) => !isDisabled(cmd) && isCommandAllowedByPolicy(cmd, executionPolicy)
|
|
16487
|
+
);
|
|
16270
16488
|
const { commandToExecute, args } = parseSlashCommand(
|
|
16271
16489
|
rawQuery,
|
|
16272
16490
|
filteredCommands
|
|
@@ -16282,6 +16500,7 @@ var handleSlashCommand = /* @__PURE__ */ __name(async (rawQuery, abortController
|
|
|
16282
16500
|
if (!skill.action) continue;
|
|
16283
16501
|
const skillContext = {
|
|
16284
16502
|
executionMode,
|
|
16503
|
+
...executionPolicy ? { executionPolicy } : {},
|
|
16285
16504
|
invocation: {
|
|
16286
16505
|
raw: `/${skill.name}`,
|
|
16287
16506
|
name: skill.name,
|
|
@@ -16355,6 +16574,15 @@ var handleSlashCommand = /* @__PURE__ */ __name(async (rawQuery, abortController
|
|
|
16355
16574
|
originalType: "filtered_command"
|
|
16356
16575
|
};
|
|
16357
16576
|
}
|
|
16577
|
+
if (!isCommandAllowedByPolicy(knownCommand, executionPolicy)) {
|
|
16578
|
+
return {
|
|
16579
|
+
type: "unsupported",
|
|
16580
|
+
reason: t('The command "/{{command}}" is not available here.', {
|
|
16581
|
+
command: typedToken
|
|
16582
|
+
}),
|
|
16583
|
+
originalType: "unsupported_action"
|
|
16584
|
+
};
|
|
16585
|
+
}
|
|
16358
16586
|
return {
|
|
16359
16587
|
type: "unsupported",
|
|
16360
16588
|
reason: t('The command "/{{command}}" is not supported in this mode.', {
|
|
@@ -16388,6 +16616,7 @@ var handleSlashCommand = /* @__PURE__ */ __name(async (rawQuery, abortController
|
|
|
16388
16616
|
};
|
|
16389
16617
|
const context = {
|
|
16390
16618
|
executionMode,
|
|
16619
|
+
...executionPolicy ? { executionPolicy } : {},
|
|
16391
16620
|
abortSignal: commandToExecute.name === "advisor" ? abortController.signal : void 0,
|
|
16392
16621
|
services: {
|
|
16393
16622
|
config,
|
|
@@ -16466,7 +16695,7 @@ var handleSlashCommand = /* @__PURE__ */ __name(async (rawQuery, abortController
|
|
|
16466
16695
|
resolvedCommand
|
|
16467
16696
|
};
|
|
16468
16697
|
}, "handleSlashCommand");
|
|
16469
|
-
var getAvailableCommands = /* @__PURE__ */ __name(async (config, abortSignal, mode = "acp", settings) => {
|
|
16698
|
+
var getAvailableCommands = /* @__PURE__ */ __name(async (config, abortSignal, mode = "acp", settings, executionPolicy) => {
|
|
16470
16699
|
try {
|
|
16471
16700
|
const loaders = [
|
|
16472
16701
|
new McpPromptLoader(config),
|
|
@@ -16486,9 +16715,12 @@ var getAvailableCommands = /* @__PURE__ */ __name(async (config, abortSignal, mo
|
|
|
16486
16715
|
commandService,
|
|
16487
16716
|
config,
|
|
16488
16717
|
mode,
|
|
16489
|
-
settings
|
|
16718
|
+
settings,
|
|
16719
|
+
executionPolicy
|
|
16720
|
+
);
|
|
16721
|
+
return commandService.getCommandsForMode(mode).filter(
|
|
16722
|
+
(command) => isCommandAllowedByPolicy(command, executionPolicy)
|
|
16490
16723
|
);
|
|
16491
|
-
return commandService.getCommandsForMode(mode);
|
|
16492
16724
|
} catch (error) {
|
|
16493
16725
|
debugLogger20.error("Error loading available commands:", error);
|
|
16494
16726
|
return [];
|