@qwen-code/qwen-code 0.19.8 → 0.19.9
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/qc-helper/SKILL.md +1 -0
- package/bundled/qc-helper/docs/configuration/auth.md +40 -55
- package/bundled/qc-helper/docs/configuration/model-providers.md +224 -218
- package/bundled/qc-helper/docs/configuration/settings.md +60 -51
- package/bundled/qc-helper/docs/features/_meta.ts +1 -0
- package/bundled/qc-helper/docs/features/channels/dingtalk.md +9 -2
- package/bundled/qc-helper/docs/features/channels/overview.md +71 -4
- package/bundled/qc-helper/docs/features/channels/wecom.md +6 -0
- package/bundled/qc-helper/docs/features/code-review.md +29 -5
- package/bundled/qc-helper/docs/features/commands.md +39 -38
- package/bundled/qc-helper/docs/features/computer-use.md +77 -0
- package/bundled/qc-helper/docs/features/tool-use-summaries.md +19 -23
- package/bundled/qc-helper/docs/integration-vscode.md +2 -2
- package/bundled/qc-helper/docs/qwen-serve.md +29 -12
- package/bundled/qc-helper/docs/reference/keyboard-shortcuts.md +1 -1
- package/bundled/review/DESIGN.md +93 -22
- package/bundled/review/SKILL.md +295 -86
- package/chunks/MaxSizedBox-6HYJ3ZPJ.js +70 -0
- package/chunks/{StandaloneSessionPicker-EYRGH6PJ.js → StandaloneSessionPicker-WS4GXYOG.js} +79 -79
- package/chunks/{acpAgent-GRFTTRHW.js → acpAgent-5FWSOZL5.js} +968 -200
- package/chunks/agent-HOLHB3RT.js +68 -0
- package/chunks/agent-headless-SXL6H56A.js +62 -0
- package/chunks/{anthropicContentGenerator-CPF22MA7.js → anthropicContentGenerator-L73TO3DB.js} +187 -31
- package/chunks/{artifact-tool-D233YJFH.js → artifact-tool-U7IRTLIV.js} +5 -5
- package/chunks/{askUserQuestion-MKL5ZTMC.js → askUserQuestion-2DLUUZZG.js} +6 -6
- package/chunks/bridge-BCJQ7BBB.js +78 -0
- package/chunks/{ca-MKD32FQL.js → ca-UJ6HC4H2.js} +64 -5
- package/chunks/{channel-worker-supervisor-NZQUOEFJ.js → channel-worker-supervisor-WSOAAYUO.js} +137 -13
- package/chunks/{chunk-QQDPRDVW.js → chunk-2HRYPZT5.js} +1 -1
- package/chunks/{chunk-2PSWA5ID.js → chunk-2X56YUSZ.js} +1 -1
- package/chunks/{chunk-DIWVZ3VM.js → chunk-34MW4KTI.js} +5 -5
- package/chunks/{chunk-IBY3Q3HG.js → chunk-34Z3U5RQ.js} +508 -126
- package/chunks/{chunk-UXEW557D.js → chunk-3AHXV67U.js} +3 -3
- package/chunks/{chunk-O2YT7VB4.js → chunk-3BTRNWWD.js} +1 -1
- package/chunks/chunk-3G7CIHVV.js +71 -0
- package/chunks/{chunk-FBET5XZ2.js → chunk-3SJSQXNS.js} +20 -5
- package/chunks/{chunk-BUZ6HGL4.js → chunk-3VAGG5T5.js} +248 -55
- package/chunks/{chunk-M7S4GK5Z.js → chunk-4C5BQ2D2.js} +74 -27
- package/chunks/{chunk-5MBO76SL.js → chunk-4GORAUCN.js} +3 -3
- package/chunks/{chunk-55ZMG67I.js → chunk-4LD5APFL.js} +4 -4
- package/chunks/{chunk-TLWA7TPR.js → chunk-4QLQE5WJ.js} +2 -2
- package/chunks/{chunk-UIDXQNMV.js → chunk-4WGODMVR.js} +1 -1
- package/chunks/{chunk-E6US47KI.js → chunk-4WKAA4KS.js} +1 -1
- package/chunks/{chunk-H6EMK6QK.js → chunk-4ZVWQHEQ.js} +11913 -5207
- package/chunks/{chunk-HW4N45EE.js → chunk-524RQP4Q.js} +29 -8
- package/chunks/{chunk-3GONHQOA.js → chunk-57OAHC2Y.js} +1 -1
- package/chunks/{chunk-JZSY4WP3.js → chunk-5DTTYNB7.js} +1 -1
- package/chunks/{chunk-YDOXPLYL.js → chunk-5HOMWMCL.js} +1147 -738
- package/chunks/{chunk-A4BMJM77.js → chunk-5O2XNYP6.js} +1 -0
- package/chunks/{chunk-ZL5HN75Q.js → chunk-5SFOMFG4.js} +2 -2
- package/chunks/{chunk-2EM7ECZD.js → chunk-5U27BZ72.js} +179 -63
- package/chunks/{chunk-JRQ7EVGE.js → chunk-5VXNZWGF.js} +2 -2
- package/chunks/{chunk-QYNNN7BK.js → chunk-5XUCZNSY.js} +2 -2
- package/chunks/{chunk-GO6LNQXT.js → chunk-6AM5D4ME.js} +1 -1
- package/chunks/{chunk-BJBWRCSK.js → chunk-6H67XLET.js} +1 -1
- package/chunks/{chunk-PUVCVELY.js → chunk-6PESIEKJ.js} +4 -4
- package/chunks/{chunk-3UP777ZS.js → chunk-6RLROE6G.js} +1 -1
- package/chunks/{chunk-ZERZSAZL.js → chunk-75DOP5OR.js} +2 -2
- package/chunks/{chunk-RMLZAUWH.js → chunk-77XJ3SWN.js} +10 -12
- package/chunks/{chunk-L46XKEGM.js → chunk-7PU4FYLG.js} +5 -8
- package/chunks/{chunk-NQKLOAVJ.js → chunk-7R3CZA3Q.js} +2 -2
- package/chunks/{chunk-SAIILPQ3.js → chunk-7X7TEQNX.js} +5 -3
- package/chunks/{chunk-OQXDAMKY.js → chunk-A3XKDTSH.js} +8 -8
- package/chunks/{chunk-IRJWHZWU.js → chunk-A4UCTEB5.js} +2 -2
- package/chunks/{chunk-TSPB77TG.js → chunk-AKIVHSJR.js} +923 -2892
- package/chunks/{chunk-FQNC62B2.js → chunk-ATAKVRIF.js} +11 -11
- package/chunks/{chunk-GSHQYYIV.js → chunk-AURZZYMD.js} +6 -26
- package/chunks/{chunk-CHB5SLZZ.js → chunk-B4G2WOFA.js} +3 -3
- package/chunks/{chunk-X3YGAX7V.js → chunk-B5ORX3FG.js} +4 -2
- package/chunks/chunk-BAPGSC7U.js +239 -0
- package/chunks/{chunk-UX6OTBVD.js → chunk-BMGVRZN4.js} +2 -2
- package/chunks/{chunk-ZN5T4BHI.js → chunk-BPZALHVR.js} +2 -2
- package/chunks/{chunk-IJRL2S3D.js → chunk-BZIFY5TF.js} +6 -6
- package/chunks/{chunk-OFEVLU4C.js → chunk-CARU2RR2.js} +1 -1
- package/chunks/chunk-CC2ITGCF.js +176 -0
- package/chunks/{chunk-HDOH3QYE.js → chunk-CCDMCZPP.js} +2 -2
- package/chunks/{chunk-FV7425LN.js → chunk-CEA3E3JB.js} +18 -5
- package/chunks/{chunk-BOBOCR5H.js → chunk-CLFKOZEK.js} +4 -4
- package/chunks/{chunk-P3XEEI3X.js → chunk-CNEIYWSA.js} +38 -9
- package/chunks/{chunk-GLE2YUPU.js → chunk-COH43MRJ.js} +1 -1
- package/chunks/{chunk-E5A7LHNN.js → chunk-CPBF7KYF.js} +1 -1
- package/chunks/{chunk-UWCTAVOD.js → chunk-CR3C7WXL.js} +1 -1
- package/chunks/{chunk-5P5XGNYH.js → chunk-CU3L64TP.js} +1 -1
- package/chunks/{chunk-CD6USWHZ.js → chunk-CUMMSHH6.js} +2 -2
- package/chunks/{chunk-IWKSG2AR.js → chunk-CXAOG665.js} +1 -1
- package/chunks/{chunk-WQTHLB5T.js → chunk-D2GFWEXB.js} +7 -7
- package/chunks/{chunk-I6WGFJJ3.js → chunk-D5SKC4YG.js} +38 -12
- package/chunks/{chunk-MZ7BABX3.js → chunk-DC5Z3DU6.js} +2 -2
- package/chunks/{chunk-64WXLC72.js → chunk-DJ2GSRLV.js} +1 -1
- package/chunks/{chunk-QN5NZ3UQ.js → chunk-DMTGGOSA.js} +2 -2
- package/chunks/{chunk-A5JOJ77H.js → chunk-E2IY465S.js} +38 -15
- package/chunks/{chunk-KHDZHZMH.js → chunk-E5Z2AVNV.js} +1 -1
- package/chunks/{chunk-SQ2UATK7.js → chunk-EAXLGSFP.js} +11 -11
- package/chunks/{chunk-JCH35JB3.js → chunk-ECNYL4AA.js} +2 -2
- package/chunks/{chunk-E7EMCSUG.js → chunk-EGYZ275M.js} +64 -42
- package/chunks/{chunk-6VK6FIMQ.js → chunk-EMDMPBJ4.js} +415 -379
- package/chunks/{chunk-5IFG2VC4.js → chunk-FCMNKVXT.js} +1 -1
- package/chunks/{chunk-V35MD7KN.js → chunk-GRC5HGPI.js} +1 -1
- package/chunks/{chunk-WMPVYQ4P.js → chunk-GWHYEOV2.js} +2 -2
- package/chunks/{chunk-27BHARDE.js → chunk-GWLSNBG4.js} +2103 -13
- package/chunks/chunk-GZRTYZ2R.js +292 -0
- package/chunks/{chunk-A2X3KLC3.js → chunk-GZXCZHCT.js} +3 -3
- package/chunks/{chunk-K5PGHDBN.js → chunk-H6XPXXMH.js} +1 -1
- package/chunks/{chunk-DICGXFAI.js → chunk-HKMAENAO.js} +8 -8
- package/chunks/{chunk-ZE6E424U.js → chunk-HPDUL5MF.js} +2 -2
- package/chunks/{chunk-KYMBIKIW.js → chunk-HTHUX2T5.js} +1 -1
- package/chunks/{chunk-LQ7TMOCE.js → chunk-HTO4JFDZ.js} +1 -1
- package/chunks/{chunk-ON3JA3RU.js → chunk-HVY356M2.js} +7 -9
- package/chunks/{chunk-GGQQA4JW.js → chunk-IAVB3HM3.js} +2 -2
- package/chunks/{chunk-FEJ2FZ3U.js → chunk-J3JA76CF.js} +2 -2
- package/chunks/{chunk-4CGOWHKM.js → chunk-J4MOFEOK.js} +2 -2
- package/chunks/{chunk-22MNNNXE.js → chunk-J4TSQ5EQ.js} +3 -2
- package/chunks/{chunk-22IFUCVR.js → chunk-JESCGQM3.js} +1 -1
- package/chunks/{chunk-CCGOFQV3.js → chunk-JSG7ZSBC.js} +8 -7
- package/chunks/{chunk-WF4FAXDL.js → chunk-JZETEN3Z.js} +62 -62
- package/chunks/{chunk-GN3F6PIU.js → chunk-K434OPES.js} +5 -5
- package/chunks/{chunk-YKZIAK7C.js → chunk-KHUQZZJ6.js} +66 -16
- package/chunks/{chunk-X2XNQQJI.js → chunk-KKNMOEZH.js} +4 -4
- package/chunks/{chunk-MRO43B25.js → chunk-KW7NOTN6.js} +1 -1
- package/chunks/{chunk-6IAWPIQ6.js → chunk-L36P3NBD.js} +3 -3
- package/chunks/{chunk-54YZOP7P.js → chunk-L573Z2QZ.js} +11894 -5190
- package/chunks/{chunk-DHOLNQLC.js → chunk-L6P4KPHR.js} +12 -12
- package/chunks/{chunk-E7KNELIZ.js → chunk-LK7KUE55.js} +2 -2
- package/chunks/{chunk-W7EEOR7D.js → chunk-LUODI7WD.js} +5 -5
- package/chunks/{chunk-CSOTA7KX.js → chunk-LXNEJD34.js} +2 -2
- package/chunks/{chunk-HLKG6CZN.js → chunk-M5GB774H.js} +1 -1
- package/chunks/{chunk-3B26UVCX.js → chunk-MC23XKFE.js} +39 -10
- package/chunks/{chunk-PC4ZXHU2.js → chunk-MXL5UP4X.js} +3 -3
- package/chunks/{chunk-BVYU3ZTI.js → chunk-N3EMS75V.js} +73 -30
- package/chunks/{chunk-332PWN27.js → chunk-NHDKSOEY.js} +1 -1
- package/chunks/{chunk-3GNOQZDC.js → chunk-NVYTCB5Z.js} +4797 -2620
- package/chunks/{chunk-P7M4GA57.js → chunk-OCPBI7J5.js} +1 -1
- package/chunks/chunk-OQ4DRIOA.js +296 -0
- package/chunks/{chunk-42XGFRJS.js → chunk-ORBGV7NJ.js} +5 -5
- package/chunks/{chunk-AYNCLGTW.js → chunk-P67PFTUT.js} +8 -51
- package/chunks/{chunk-VGGOPZUL.js → chunk-PDZ7MBDG.js} +12 -5
- package/chunks/{chunk-WHJQ3JUS.js → chunk-PODM4SZ4.js} +12 -12
- package/chunks/{chunk-JPALE3PA.js → chunk-PVZM22CK.js} +6 -6
- package/chunks/{chunk-AGHU5VRK.js → chunk-PZL23GTM.js} +1 -1
- package/chunks/{chunk-L4AMBVQG.js → chunk-Q4YQW46J.js} +31 -17
- package/chunks/{chunk-XYR5RUA5.js → chunk-Q6I5QHMH.js} +10 -3
- package/chunks/{chunk-FXGLL2HL.js → chunk-Q7YDKOGY.js} +1 -1
- package/chunks/{chunk-LGFAYIKX.js → chunk-QHTIBUWB.js} +1 -1
- package/chunks/{chunk-P3MYAZBY.js → chunk-QMGX2KO2.js} +1 -1
- package/chunks/{chunk-Z3I3QJK3.js → chunk-QRUIS3DN.js} +1 -1
- package/chunks/{chunk-ITOGNELQ.js → chunk-QSWDGAIC.js} +2 -2
- package/chunks/{chunk-GHOTR7HL.js → chunk-QUPXZXLV.js} +1 -1
- package/chunks/{chunk-XOHNA2S6.js → chunk-QYMQSECS.js} +3 -3
- package/chunks/{chunk-QYUE6W3T.js → chunk-RDJSGHZE.js} +1 -1
- package/chunks/{chunk-TLRYABYP.js → chunk-RKUWKYED.js} +1 -1
- package/chunks/{chunk-RNBYOUGV.js → chunk-RXFQM6FQ.js} +1 -1
- package/chunks/{chunk-QXPI7FEC.js → chunk-S3TWXGKA.js} +4 -4
- package/chunks/{chunk-BOBRZZKD.js → chunk-SCGXUJBT.js} +5 -5
- package/chunks/{chunk-44NROQYV.js → chunk-SJHDYNHF.js} +4 -4
- package/chunks/{chunk-MLZQVCF3.js → chunk-SZRN75WQ.js} +1 -1
- package/chunks/{chunk-7RYW5LQV.js → chunk-T2NCM2ET.js} +2 -2
- package/chunks/{chunk-Z2Z3GUXZ.js → chunk-TB6UDU4T.js} +1 -1
- package/chunks/{chunk-SUAKHHK7.js → chunk-TDEXZKMT.js} +3 -3
- package/chunks/{chunk-EXPMGZZV.js → chunk-TEGEBB2I.js} +1 -1
- package/chunks/{chunk-MX2YXRER.js → chunk-TJTKSVIV.js} +1 -1
- package/chunks/chunk-TO6QE22P.js +444 -0
- package/chunks/{chunk-H6BD2ELD.js → chunk-TYAMGABM.js} +2 -2
- package/chunks/chunk-U2NNEY4R.js +38 -0
- package/chunks/{chunk-VRDMOSQS.js → chunk-UDXSXLER.js} +2 -2
- package/chunks/{chunk-AHNJGLFV.js → chunk-UOZWKTQG.js} +3 -3
- package/chunks/{chunk-CJCKDMWO.js → chunk-URK542T4.js} +1 -1
- package/chunks/{chunk-AHNXYU4O.js → chunk-V6WHFGST.js} +1 -1
- package/chunks/{chunk-DCZWC4PF.js → chunk-VA4KQY6V.js} +5 -5
- package/chunks/{chunk-ZTQ26VBE.js → chunk-VDDGDZMA.js} +1 -1
- package/chunks/{chunk-OMX7CUOE.js → chunk-VGC4I5JJ.js} +1 -1
- package/chunks/{chunk-43W4YSO6.js → chunk-VJNBRRZG.js} +2 -2
- package/chunks/{chunk-J7RCB6N5.js → chunk-VTU57BWZ.js} +2 -2
- package/chunks/{chunk-LAXNEOBG.js → chunk-VWPVHAMO.js} +15 -3
- package/chunks/{chunk-VZ7HY3YU.js → chunk-W2UIXQDL.js} +3 -3
- package/chunks/{chunk-JZHIQJOE.js → chunk-W3JHSWRP.js} +6 -6
- package/chunks/{chunk-ER3BKOLB.js → chunk-W7FJ3N32.js} +1 -1
- package/chunks/{chunk-3HX5LZ6R.js → chunk-WBL3FJEU.js} +2 -2
- package/chunks/{chunk-BMFMJINR.js → chunk-WL4L7EZH.js} +1 -1
- package/chunks/{chunk-PMFULMLX.js → chunk-WQUQVGTF.js} +2057 -266
- package/chunks/chunk-X4NKFGFJ.js +81 -0
- package/chunks/{chunk-YHKAK72D.js → chunk-X6TJ3YZV.js} +102 -16
- package/chunks/{chunk-3RW4AZJV.js → chunk-XFSFZCM5.js} +1 -1
- package/chunks/{chunk-O7FIRWJV.js → chunk-XLA62MYB.js} +3 -3
- package/chunks/{chunk-2MPVVENX.js → chunk-XU457J4V.js} +2 -2
- package/chunks/{chunk-EEN2TKST.js → chunk-XUOOWUZS.js} +2 -2
- package/chunks/{chunk-SIUQ3YYX.js → chunk-XVNQMZ2I.js} +1 -1
- package/chunks/{chunk-SYCJMSIJ.js → chunk-XWRJCPHC.js} +1 -1
- package/chunks/{chunk-TI3BWD4D.js → chunk-XYQSMABS.js} +39 -19
- package/chunks/chunk-YAF2MQZ6.js +19 -0
- package/chunks/{chunk-O33TBKDC.js → chunk-YAUFFXDS.js} +154 -19
- package/chunks/{chunk-OACJLMLD.js → chunk-YLV3XXFB.js} +2 -2
- package/chunks/{chunk-BR4QREVK.js → chunk-YQ3U5MUC.js} +1 -1
- package/chunks/{chunk-Y6Z2O3WR.js → chunk-YUZI3WAC.js} +1 -1
- package/chunks/{chunk-II73RK2S.js → chunk-YVEDCAUE.js} +1 -1
- package/chunks/{chunk-SKAZWEV5.js → chunk-ZJE7NSL3.js} +1 -1
- package/chunks/{chunk-7LTB54MK.js → chunk-ZLXQN2QS.js} +2 -2
- package/chunks/cli-entry-path-4VJ3Y6T2.js +10 -0
- package/chunks/{computer-use-WMY3UOBX.js → computer-use-HM37RX6A.js} +50 -50
- package/chunks/config-utils-NV2SVGPB.js +23 -0
- package/chunks/contextCommand-OF5SFGH2.js +68 -0
- package/chunks/create-sub-session-INX7TXJI.js +207 -0
- package/chunks/create-sub-session-KPRT7ECJ.js +375 -0
- package/chunks/{cron-create-JSXEIPVS.js → cron-create-AMBKGZX6.js} +9 -9
- package/chunks/{cron-delete-OIFVEPGU.js → cron-delete-LRU4OJYG.js} +7 -7
- package/chunks/{cron-list-D4ZX4IOE.js → cron-list-WVP2JXER.js} +14 -10
- package/chunks/{daemon-WPAENEBW.js → daemon-ARHTSTXP.js} +478 -6
- package/chunks/daemon-status-provider-B2UTZUJ2.js +76 -0
- package/chunks/{de-ZFPPQVSF.js → de-EBJN3OVN.js} +64 -5
- package/chunks/{devtools-FM6GJPYG.js → devtools-4QFYJT6U.js} +3 -3
- package/chunks/{dist-Z34QPAQW.js → dist-PNVLTKTL.js} +374 -78
- package/chunks/{dist-63IS3ZMI.js → dist-PZV5RKM6.js} +4 -4
- package/chunks/{dist-BEXOZXLQ.js → dist-QYCAEZIT.js} +32 -15
- package/chunks/{dist-H2AEJCZ5.js → dist-R7LN5AZE.js} +5 -5
- package/chunks/{dist-E6UANPIM.js → dist-VHV4EVHG.js} +1011 -197
- package/chunks/{dist-O2IRTRPP.js → dist-WKPOYU7O.js} +10 -10
- package/chunks/{dist-SCFLLYMK.js → dist-XKU3ABM5.js} +12 -11
- package/chunks/earlyInputCapture-3VTHRC4C.js +69 -0
- package/chunks/{edit-OTYWAXGP.js → edit-VNI4NJ73.js} +51 -51
- package/chunks/{en-N4EPZAQI.js → en-5A6LA7RK.js} +74 -6
- package/chunks/{enter-worktree-HNYBDVCX.js → enter-worktree-IYYBKPZT.js} +50 -50
- package/chunks/{enterPlanMode-CJCNGT63.js → enterPlanMode-GMC5FD5A.js} +50 -50
- package/chunks/environment-5HSSRMJ7.js +88 -0
- package/chunks/errors-HMFCJJ7P.js +75 -0
- package/chunks/{exit-worktree-DUUKOE3X.js → exit-worktree-6BHCMP5G.js} +50 -50
- package/chunks/{exitPlanMode-AMMSXOAJ.js → exitPlanMode-CJW7G74W.js} +51 -51
- package/chunks/{fast-path-OV6NIP3K.js → fast-path-FRDMDVHG.js} +8 -8
- package/chunks/{fast-path-settings-7RIFI3PK.js → fast-path-settings-5QZE64HR.js} +6 -6
- package/chunks/{fileFromPath-IBEHA3CO.js → fileFromPath-UDALK7FM.js} +3 -3
- package/chunks/{fr-5WWMY53B.js → fr-YXRABLYZ.js} +64 -5
- package/chunks/{gemini-NQ3WWBKB.js → gemini-QYSEGHAX.js} +119 -111
- package/chunks/{geminiContentGenerator-CDUNEJQE.js → geminiContentGenerator-J7YNZDYP.js} +9 -9
- package/chunks/{getMachineId-bsd-4CASPIU4.js → getMachineId-bsd-EXV7SWPA.js} +3 -3
- package/chunks/{getMachineId-darwin-HPQPEMZR.js → getMachineId-darwin-IUOMFXU3.js} +3 -3
- package/chunks/{getMachineId-linux-AUARKYHL.js → getMachineId-linux-K7XJYFHL.js} +2 -2
- package/chunks/{getMachineId-unsupported-S32ZDA2T.js → getMachineId-unsupported-EA5FDRJ6.js} +2 -2
- package/chunks/{getMachineId-win-4EFLHYIJ.js → getMachineId-win-KBA6RAI5.js} +3 -3
- package/chunks/{glob-ROV3YS4R.js → glob-BRCSGFOT.js} +95 -74
- package/chunks/{grep-NRITKDCD.js → grep-EE2DUOSY.js} +50 -50
- package/chunks/handleAutoUpdate-5NWTLR67.js +69 -0
- package/chunks/i18n-BASPENNQ.js +84 -0
- package/chunks/initializer-UTQ7FB7G.js +71 -0
- package/chunks/installationInfo-W6V4DT7W.js +65 -0
- package/chunks/{ja-CUHZOLEJ.js → ja-7VQOANVG.js} +64 -5
- package/chunks/{keychain-token-storage-UJV5XP4Z.js → keychain-token-storage-VKUBNCP4.js} +4 -4
- package/chunks/{kittyProtocolDetector-OJRCJLIU.js → kittyProtocolDetector-HCNNKJTI.js} +2 -2
- package/chunks/list-DEICDL65.js +74 -0
- package/chunks/loadedSettingsAdapter-NOWEGDYJ.js +68 -0
- package/chunks/{loop-wakeup-OHWEMFP5.js → loop-wakeup-WX7BLWWP.js} +10 -10
- package/chunks/{lowlight-FYAAUU5J.js → lowlight-J2OZNPCA.js} +1 -1
- package/chunks/{ls-7MFU2QYW.js → ls-ZB2BDP6T.js} +6 -6
- package/chunks/{lsp-XHDTPTGV.js → lsp-V5DN4YUJ.js} +4 -4
- package/chunks/mcp-L5JXEEIA.js +68 -0
- package/chunks/{monitor-FL2ZO33W.js → monitor-X5Z3H4FY.js} +50 -50
- package/chunks/{multipart-parser-AJ4WASWR.js → multipart-parser-AWZKXSQN.js} +3 -3
- package/chunks/nonInteractiveCli-LS2K4X6A.js +124 -0
- package/chunks/{notebook-edit-6PULTHL5.js → notebook-edit-TRM2QIJK.js} +51 -51
- package/chunks/openaiContentGenerator-AAYONPMF.js +56 -0
- package/chunks/pidfile-D4I4FTVA.js +73 -0
- package/chunks/{pt-OLYN42DS.js → pt-2C6YCSHL.js} +64 -5
- package/chunks/{qwenContentGenerator-NX2E7PB7.js → qwenContentGenerator-K3HZ2H76.js} +52 -52
- package/chunks/{qwenOAuth2-ZV7YLMND.js → qwenOAuth2-PJQ27GSO.js} +9 -9
- package/chunks/read-file-7SZSIZOL.js +30 -0
- package/chunks/{read-mcp-resource-CNQHBSJM.js → read-mcp-resource-SM5DA4RG.js} +5 -5
- package/chunks/{read-package-up-ER5OJUGP.js → read-package-up-TCM6I7S2.js} +2 -2
- package/chunks/{record-artifact-SQ2OKRJW.js → record-artifact-4XKZX3UW.js} +4 -4
- package/chunks/ripGrep-YNPFVCZP.js +60 -0
- package/chunks/{ru-LDM3GWVQ.js → ru-6BBHVZZV.js} +64 -5
- package/chunks/{run-qwen-serve-JK2DL7PI.js → run-qwen-serve-DMWV5N6L.js} +395 -74
- package/chunks/runtime-57WWRVHN.js +94 -0
- package/chunks/{scheduler-O4IGVZKK.js → scheduler-YBLGWSIL.js} +51 -51
- package/chunks/{send-message-76GT3JMC.js → send-message-F36YD6KQ.js} +7 -7
- package/chunks/serve-R63NK3CV.js +74 -0
- package/chunks/{server-SGNPKX2O.js → server-Z22GCAXP.js} +3956 -869
- package/chunks/{session-5BNM25EZ.js → session-HKAAI7BN.js} +117 -112
- package/chunks/settings-3EYN66GK.js +118 -0
- package/chunks/shell-6YXINTWJ.js +68 -0
- package/chunks/{skill-I22QK5XS.js → skill-OO57P4X6.js} +24 -24
- package/chunks/spawnChannel-JD7G4VU6.js +70 -0
- package/chunks/{src-BBQSM46M.js → src-G5UPLZSZ.js} +122 -52
- package/chunks/{src-7XL4G4DC.js → src-VLI3TKEY.js} +4 -4
- package/chunks/standalone-update-OB7F4JPZ.js +79 -0
- package/chunks/{startInteractiveUI-JII36UGN.js → startInteractiveUI-73EGLIIH.js} +1775 -1663
- package/chunks/stdioHelpers-UMY72QRP.js +14 -0
- package/chunks/{syntheticOutput-F7LSDCAR.js → syntheticOutput-34H7LGA7.js} +5 -5
- package/chunks/task-create-FRGOEIKY.js +22 -0
- package/chunks/{task-list-TGGJX7EA.js → task-list-OW766BXZ.js} +10 -10
- package/chunks/{task-stop-W7NGTMYQ.js → task-stop-SIR5SNBN.js} +4 -4
- package/chunks/{task-update-XYWMHJGJ.js → task-update-YRA532MT.js} +12 -12
- package/chunks/{team-create-A7NUU5AQ.js → team-create-PECAAPXK.js} +50 -50
- package/chunks/{team-delete-UHQQ2QQX.js → team-delete-6OSECUZC.js} +10 -10
- package/chunks/{team-plan-approval-TOQRJ2KI.js → team-plan-approval-L6F434RY.js} +50 -50
- package/chunks/theme-manager-ZG4RY6GU.js +64 -0
- package/chunks/{todoWrite-C4ZAMSR3.js → todoWrite-YDMFEV4G.js} +6 -6
- package/chunks/{tool-search-SZ4EFS2T.js → tool-search-THVIWAPB.js} +24 -24
- package/chunks/total-session-admission-JOKNRIIA.js +72 -0
- package/chunks/trustedFolders-EOGT3UVS.js +79 -0
- package/chunks/{types-QX5C3CHJ.js → types-JNKGKUJT.js} +2 -2
- package/chunks/updateCheck-2KYEYVSB.js +69 -0
- package/chunks/updateEventEmitter-5MKC7BLQ.js +10 -0
- package/chunks/validateNonInterActiveAuth-EN6ZQSR2.js +190 -0
- package/chunks/{version-NO2XSNNP.js → version-3UEA6ZIR.js} +3 -3
- package/chunks/{web-fetch-UYGMOHW4.js → web-fetch-PAAEQKBW.js} +8 -8
- package/chunks/{workflow-WO2H6NRI.js → workflow-QCCCMYP3.js} +51 -51
- package/chunks/workspace-providers-status-4KMGETOJ.js +71 -0
- package/chunks/workspace-registry-24QFLQYH.js +76 -0
- package/chunks/workspace-service-RVLBMSMZ.js +80 -0
- package/chunks/workspace-skills-status-DS4ZVFTO.js +70 -0
- package/chunks/{write-file-PX2Z7IBE.js → write-file-I3MUDRIE.js} +51 -51
- package/chunks/{yargs-B64EYTCF.js → yargs-6H2AUULL.js} +2 -2
- package/chunks/{zh-J4F6QWQV.js → zh-RQE7I22T.js} +74 -6
- package/chunks/{zh-TW-XVDWOLSW.js → zh-TW-TBPQGHKH.js} +74 -6
- package/cli.js +18 -17
- package/locales/ca.js +85 -7
- package/locales/de.js +84 -7
- package/locales/en.js +101 -7
- package/locales/fr.js +85 -7
- package/locales/ja.js +86 -6
- package/locales/pt.js +84 -7
- package/locales/ru.js +84 -7
- package/locales/zh-TW.js +97 -6
- package/locales/zh.js +97 -6
- package/package.json +3 -6
- package/web-shell/assets/{arc-BWyoJpY2.js → arc-C15hqnJe.js} +1 -1
- package/web-shell/assets/{architectureDiagram-3BPJPVTR-BT0mGrz2.js → architectureDiagram-3BPJPVTR-B-At37J_.js} +1 -1
- package/web-shell/assets/{blockDiagram-GPEHLZMM-BLgUWvyf.js → blockDiagram-GPEHLZMM-B51wjcU7.js} +1 -1
- package/web-shell/assets/{c4Diagram-AAUBKEIU-DYx9M7oU.js → c4Diagram-AAUBKEIU-xBK7BAwN.js} +1 -1
- package/web-shell/assets/channel-CLiQD50f.js +1 -0
- package/web-shell/assets/{chunk-2J33WTMH-CfMHWbuZ.js → chunk-2J33WTMH-xKmLg7Yr.js} +1 -1
- package/web-shell/assets/{chunk-4BX2VUAB-B1URoqEV.js → chunk-4BX2VUAB-BfkdKZCM.js} +1 -1
- package/web-shell/assets/{chunk-55IACEB6-DAIaM4QF.js → chunk-55IACEB6-DT713sZf.js} +1 -1
- package/web-shell/assets/{chunk-727SXJPM-B2X34knw.js → chunk-727SXJPM-CYEeAamv.js} +1 -1
- package/web-shell/assets/{chunk-AQP2D5EJ-Cif-zLTQ.js → chunk-AQP2D5EJ-DBN-5CFd.js} +1 -1
- package/web-shell/assets/{chunk-FMBD7UC4-H18WCXdY.js → chunk-FMBD7UC4-CGZKk4PH.js} +1 -1
- package/web-shell/assets/{chunk-ND2GUHAM-YFtetHi0.js → chunk-ND2GUHAM-qQbC2O-y.js} +1 -1
- package/web-shell/assets/{chunk-QZHKN3VN-By2hiH3r.js → chunk-QZHKN3VN-B3zeXwsX.js} +1 -1
- package/web-shell/assets/classDiagram-4FO5ZUOK-D3sYqow5.js +1 -0
- package/web-shell/assets/classDiagram-v2-Q7XG4LA2-D3sYqow5.js +1 -0
- package/web-shell/assets/{cose-bilkent-S5V4N54A-VrcnnLZu.js → cose-bilkent-S5V4N54A-BKsl1Wvy.js} +1 -1
- package/web-shell/assets/{dagre-BM42HDAG-CGo-IaVV.js → dagre-BM42HDAG-CuuuLiBK.js} +1 -1
- package/web-shell/assets/{diagram-2AECGRRQ-Dl4QjzIB.js → diagram-2AECGRRQ-CG4_eKiV.js} +1 -1
- package/web-shell/assets/{diagram-5GNKFQAL-qMLmsO0u.js → diagram-5GNKFQAL-DSFTmZB1.js} +1 -1
- package/web-shell/assets/{diagram-KO2AKTUF-CHlmuxPI.js → diagram-KO2AKTUF-BxwlEHn8.js} +1 -1
- package/web-shell/assets/{diagram-LMA3HP47-BUwU3GwT.js → diagram-LMA3HP47-BUAg-jMG.js} +1 -1
- package/web-shell/assets/{diagram-OG6HWLK6-HEhwPDUM.js → diagram-OG6HWLK6-BFM2jlO5.js} +1 -1
- package/web-shell/assets/{erDiagram-TEJ5UH35-1n0llBmM.js → erDiagram-TEJ5UH35-CerbFPa2.js} +1 -1
- package/web-shell/assets/{flowDiagram-I6XJVG4X-BN74uMnt.js → flowDiagram-I6XJVG4X-BNeZz5Zz.js} +1 -1
- package/web-shell/assets/{ganttDiagram-6RSMTGT7-BoOq78i3.js → ganttDiagram-6RSMTGT7-CTOogLaM.js} +1 -1
- package/web-shell/assets/{gitGraphDiagram-PVQCEYII-CN8b00c8.js → gitGraphDiagram-PVQCEYII-yxSFkXPj.js} +1 -1
- package/web-shell/assets/index-D5IWFVk1.css +5 -0
- package/web-shell/assets/index-KFJRDhX7.js +783 -0
- package/web-shell/assets/{infoDiagram-5YYISTIA-CCurnIna.js → infoDiagram-5YYISTIA-DYdAUevm.js} +1 -1
- package/web-shell/assets/{ishikawaDiagram-YF4QCWOH-AwuRqdUP.js → ishikawaDiagram-YF4QCWOH-CNuijZ90.js} +1 -1
- package/web-shell/assets/{journeyDiagram-JHISSGLW-B7IICk-E.js → journeyDiagram-JHISSGLW-BTyiuonf.js} +1 -1
- package/web-shell/assets/{kanban-definition-UN3LZRKU-BYF0OKhx.js → kanban-definition-UN3LZRKU-DPJo0Uow.js} +1 -1
- package/web-shell/assets/{linear-GWWguGfD.js → linear-C8wKCbIC.js} +1 -1
- package/web-shell/assets/{mermaid.core-JqtkxvCl.js → mermaid.core-BV5o7nW5.js} +5 -5
- package/web-shell/assets/{mindmap-definition-RKZ34NQL-B0MmHsZ6.js → mindmap-definition-RKZ34NQL-BtLcBmSt.js} +1 -1
- package/web-shell/assets/{pieDiagram-4H26LBE5-DhImUZLQ.js → pieDiagram-4H26LBE5-C22J7A9Q.js} +1 -1
- package/web-shell/assets/{quadrantDiagram-W4KKPZXB-DGeSC3DT.js → quadrantDiagram-W4KKPZXB-DSL10wiL.js} +1 -1
- package/web-shell/assets/{requirementDiagram-4Y6WPE33-DkspY6Re.js → requirementDiagram-4Y6WPE33-feqh0UpX.js} +1 -1
- package/web-shell/assets/{sankeyDiagram-5OEKKPKP-CaOofS2x.js → sankeyDiagram-5OEKKPKP-Z4OVaWaZ.js} +1 -1
- package/web-shell/assets/{sequenceDiagram-3UESZ5HK-DFQ_kFnN.js → sequenceDiagram-3UESZ5HK-DIluIcb1.js} +1 -1
- package/web-shell/assets/{stateDiagram-AJRCARHV-D3snw0Tz.js → stateDiagram-AJRCARHV-hlhnuoYH.js} +1 -1
- package/web-shell/assets/stateDiagram-v2-BHNVJYJU-BhQMwgpl.js +1 -0
- package/web-shell/assets/{timeline-definition-PNZ67QCA-l4zH8nLM.js → timeline-definition-PNZ67QCA-Dqf_CqgL.js} +1 -1
- package/web-shell/assets/{vennDiagram-CIIHVFJN-BnRlA98M.js → vennDiagram-CIIHVFJN-DD2QhaTX.js} +1 -1
- package/web-shell/assets/{wardley-L42UT6IY-BS0xUdmd.js → wardley-L42UT6IY-B2uI85U_.js} +1 -1
- package/web-shell/assets/{wardleyDiagram-YWT4CUSO-DKGBUWyQ.js → wardleyDiagram-YWT4CUSO-U1aJX71g.js} +1 -1
- package/web-shell/assets/{xychartDiagram-2RQKCTM6-DVb2HuOB.js → xychartDiagram-2RQKCTM6-C0ODHUee.js} +1 -1
- package/web-shell/index.html +16 -4
- package/chunks/MaxSizedBox-5DT2SD7B.js +0 -71
- package/chunks/agent-H2DGKS77.js +0 -68
- package/chunks/agent-headless-KFMFIT6J.js +0 -62
- package/chunks/bridge-NA3ZQQKJ.js +0 -78
- package/chunks/chunk-6SHO7WFF.js +0 -79
- package/chunks/chunk-IFEWJXFS.js +0 -37
- package/chunks/chunk-S6RLAIUR.js +0 -23
- package/chunks/chunk-XNXVCNAT.js +0 -88
- package/chunks/contextCommand-LXFZRP4L.js +0 -68
- package/chunks/daemon-status-provider-GJRXY5EN.js +0 -76
- package/chunks/earlyInputCapture-KNOYZ4MJ.js +0 -69
- package/chunks/environment-ATFTYMLZ.js +0 -88
- package/chunks/errors-A54HAADA.js +0 -75
- package/chunks/handleAutoUpdate-CEZJAARW.js +0 -65
- package/chunks/initializer-BRFJKRRX.js +0 -71
- package/chunks/list-KVHF7O4X.js +0 -73
- package/chunks/loadedSettingsAdapter-LL5PSFKX.js +0 -68
- package/chunks/mcp-3GCXRTOQ.js +0 -68
- package/chunks/nonInteractiveCli-PTQI3DV6.js +0 -119
- package/chunks/openaiContentGenerator-YE42PKCY.js +0 -56
- package/chunks/pidfile-NZYSCFRK.js +0 -73
- package/chunks/read-file-33XGP5HF.js +0 -30
- package/chunks/ripGrep-QWZLGTAN.js +0 -60
- package/chunks/serve-JTMIGANH.js +0 -74
- package/chunks/settings-3MI4XXP6.js +0 -118
- package/chunks/shell-YJKBE67T.js +0 -68
- package/chunks/spawnChannel-UNV6W4DU.js +0 -70
- package/chunks/task-create-WCHTB435.js +0 -22
- package/chunks/theme-manager-WZ4RRMMB.js +0 -64
- package/chunks/total-session-admission-ULXJWXFV.js +0 -72
- package/chunks/trustedFolders-LAZZPZ3D.js +0 -79
- package/chunks/updateCheck-KONLM73X.js +0 -65
- package/chunks/validateNonInterActiveAuth-MPKSRCXD.js +0 -184
- package/chunks/workspace-providers-status-3W7E7DFW.js +0 -71
- package/chunks/workspace-registry-SXJZNN3O.js +0 -74
- package/chunks/workspace-service-CZRQZ4Q4.js +0 -80
- package/chunks/workspace-skills-status-K7WFREPD.js +0 -70
- package/node_modules/@qwen-code/audio-capture/dist/index.d.ts +0 -35
- package/node_modules/@qwen-code/audio-capture/dist/index.js +0 -48
- package/node_modules/@qwen-code/audio-capture/dist/index.js.map +0 -1
- package/node_modules/@qwen-code/audio-capture/dist/platform.d.ts +0 -7
- package/node_modules/@qwen-code/audio-capture/dist/platform.js +0 -18
- package/node_modules/@qwen-code/audio-capture/dist/platform.js.map +0 -1
- package/node_modules/@qwen-code/audio-capture/node_modules/node-gyp-build/LICENSE +0 -21
- package/node_modules/@qwen-code/audio-capture/node_modules/node-gyp-build/README.md +0 -58
- package/node_modules/@qwen-code/audio-capture/node_modules/node-gyp-build/SECURITY.md +0 -5
- package/node_modules/@qwen-code/audio-capture/node_modules/node-gyp-build/bin.js +0 -84
- package/node_modules/@qwen-code/audio-capture/node_modules/node-gyp-build/build-test.js +0 -19
- package/node_modules/@qwen-code/audio-capture/node_modules/node-gyp-build/index.js +0 -6
- package/node_modules/@qwen-code/audio-capture/node_modules/node-gyp-build/node-gyp-build.js +0 -207
- package/node_modules/@qwen-code/audio-capture/node_modules/node-gyp-build/optional.js +0 -7
- package/node_modules/@qwen-code/audio-capture/node_modules/node-gyp-build/package.json +0 -43
- package/node_modules/@qwen-code/audio-capture/package.json +0 -30
- package/node_modules/@qwen-code/audio-capture/prebuilds/darwin-arm64/@qwen-code+audio-capture.node +0 -0
- package/node_modules/@qwen-code/audio-capture/prebuilds/darwin-x64/@qwen-code+audio-capture.node +0 -0
- package/node_modules/@qwen-code/audio-capture/prebuilds/linux-arm64/@qwen-code+audio-capture.node +0 -0
- package/node_modules/@qwen-code/audio-capture/prebuilds/linux-x64/@qwen-code+audio-capture.node +0 -0
- package/node_modules/@qwen-code/audio-capture/prebuilds/win32-x64/@qwen-code+audio-capture.node +0 -0
- package/web-shell/assets/channel-wmPUGHtg.js +0 -1
- package/web-shell/assets/classDiagram-4FO5ZUOK-BA2ljEjW.js +0 -1
- package/web-shell/assets/classDiagram-v2-Q7XG4LA2-BA2ljEjW.js +0 -1
- package/web-shell/assets/index-CNwoO1Cn.js +0 -783
- package/web-shell/assets/index-CWQ0z6kZ.css +0 -5
- package/web-shell/assets/stateDiagram-v2-BHNVJYJU-BbSm_9d0.js +0 -1
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"use strict";
|
|
3
3
|
import {
|
|
4
4
|
init_esbuild_shims
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-5O2XNYP6.js";
|
|
6
6
|
import {
|
|
7
7
|
__name
|
|
8
8
|
} from "./chunk-J2S4EL5Y.js";
|
|
@@ -683,9 +683,51 @@ var DaemonClient = class {
|
|
|
683
683
|
if (!res.ok) throw await this.failOnError(res, label);
|
|
684
684
|
return await res.json();
|
|
685
685
|
},
|
|
686
|
+
opts.timeoutMs,
|
|
687
|
+
opts.mode
|
|
688
|
+
);
|
|
689
|
+
}
|
|
690
|
+
/** @internal */
|
|
691
|
+
async workspaceJsonRequest(workspaceSelector, path, label, opts = {}) {
|
|
692
|
+
return await this.jsonRequest(
|
|
693
|
+
`/workspaces/${workspaceSelector}${path}`,
|
|
694
|
+
label,
|
|
695
|
+
opts
|
|
696
|
+
);
|
|
697
|
+
}
|
|
698
|
+
/** @internal */
|
|
699
|
+
async workspaceNoContentRequest(workspaceSelector, path, label, opts = {}) {
|
|
700
|
+
return await this.fetchWithTimeout(
|
|
701
|
+
`${this.baseUrl}/workspaces/${workspaceSelector}${path}`,
|
|
702
|
+
{
|
|
703
|
+
...opts.method ? { method: opts.method } : {},
|
|
704
|
+
headers: this.headers({}, opts.clientId)
|
|
705
|
+
},
|
|
706
|
+
async (res) => {
|
|
707
|
+
if (res.status === 204) {
|
|
708
|
+
try {
|
|
709
|
+
await res.body?.cancel();
|
|
710
|
+
} catch {
|
|
711
|
+
}
|
|
712
|
+
return;
|
|
713
|
+
}
|
|
714
|
+
if (res.status === 404 && opts.okNotFoundCode) {
|
|
715
|
+
const err = await this.failOnError(res, label);
|
|
716
|
+
const body = err.body;
|
|
717
|
+
if (body?.code === opts.okNotFoundCode) return;
|
|
718
|
+
throw err;
|
|
719
|
+
}
|
|
720
|
+
throw await this.failOnError(res, label);
|
|
721
|
+
},
|
|
686
722
|
opts.timeoutMs
|
|
687
723
|
);
|
|
688
724
|
}
|
|
725
|
+
workspaceById(workspaceId) {
|
|
726
|
+
return new WorkspaceDaemonClient(this, urlEncode(workspaceId));
|
|
727
|
+
}
|
|
728
|
+
workspaceByCwd(workspaceCwd) {
|
|
729
|
+
return new WorkspaceDaemonClient(this, urlEncode(workspaceCwd));
|
|
730
|
+
}
|
|
689
731
|
// -- Lifecycle / discovery ---------------------------------------------
|
|
690
732
|
async health() {
|
|
691
733
|
return await this.fetchWithTimeout(
|
|
@@ -787,6 +829,33 @@ var DaemonClient = class {
|
|
|
787
829
|
}
|
|
788
830
|
);
|
|
789
831
|
}
|
|
832
|
+
async workspaceAcpPreheat(timeoutMs) {
|
|
833
|
+
const serverBudgetMs = timeoutMs ?? 5e3;
|
|
834
|
+
const suffix = timeoutMs !== void 0 ? `?timeoutMs=${encodeURIComponent(timeoutMs)}` : "";
|
|
835
|
+
return await this.fetchWithTimeout(
|
|
836
|
+
`${this.baseUrl}/workspace/acp/preheat${suffix}`,
|
|
837
|
+
{ method: "POST", headers: this.headers() },
|
|
838
|
+
async (res) => {
|
|
839
|
+
if (!res.ok) {
|
|
840
|
+
throw await this.failOnError(res, "POST /workspace/acp/preheat");
|
|
841
|
+
}
|
|
842
|
+
return await res.json();
|
|
843
|
+
},
|
|
844
|
+
serverBudgetMs + 2e3
|
|
845
|
+
);
|
|
846
|
+
}
|
|
847
|
+
async workspaceAcpStatus() {
|
|
848
|
+
return await this.fetchWithTimeout(
|
|
849
|
+
`${this.baseUrl}/workspace/acp/status`,
|
|
850
|
+
{ headers: this.headers() },
|
|
851
|
+
async (res) => {
|
|
852
|
+
if (!res.ok) {
|
|
853
|
+
throw await this.failOnError(res, "GET /workspace/acp/status");
|
|
854
|
+
}
|
|
855
|
+
return await res.json();
|
|
856
|
+
}
|
|
857
|
+
);
|
|
858
|
+
}
|
|
790
859
|
async workspaceProviders() {
|
|
791
860
|
return await this.fetchWithTimeout(
|
|
792
861
|
`${this.baseUrl}/workspace/providers`,
|
|
@@ -1279,7 +1348,8 @@ var DaemonClient = class {
|
|
|
1279
1348
|
// invalid_session_scope` surface the bug. Same shape the
|
|
1280
1349
|
// bridge's own validation uses (`httpAcpBridge.ts:
|
|
1281
1350
|
// spawnOrAttach`); SDK should be a transparent layer here.
|
|
1282
|
-
...req.sessionScope !== void 0 ? { sessionScope: req.sessionScope } : {}
|
|
1351
|
+
...req.sessionScope !== void 0 ? { sessionScope: req.sessionScope } : {},
|
|
1352
|
+
...req.approvalMode !== void 0 ? { approvalMode: req.approvalMode } : {}
|
|
1283
1353
|
})
|
|
1284
1354
|
},
|
|
1285
1355
|
async (res) => {
|
|
@@ -1320,6 +1390,9 @@ var DaemonClient = class {
|
|
|
1320
1390
|
if (options?.group !== void 0) {
|
|
1321
1391
|
query.set("group", options.group);
|
|
1322
1392
|
}
|
|
1393
|
+
if (options?.parentSessionId !== void 0) {
|
|
1394
|
+
query.set("parentSessionId", options.parentSessionId);
|
|
1395
|
+
}
|
|
1323
1396
|
return await this.jsonRequest(
|
|
1324
1397
|
`/workspace/${urlEncode(workspaceCwd)}/sessions?${query.toString()}`,
|
|
1325
1398
|
"GET /workspace/sessions"
|
|
@@ -1390,6 +1463,20 @@ var DaemonClient = class {
|
|
|
1390
1463
|
"rest"
|
|
1391
1464
|
);
|
|
1392
1465
|
}
|
|
1466
|
+
async getSessionTranscriptPage(sessionId, opts = {}) {
|
|
1467
|
+
const params = new URLSearchParams();
|
|
1468
|
+
if (opts.cursor !== void 0) params.set("cursor", opts.cursor);
|
|
1469
|
+
if (opts.limit !== void 0) params.set("limit", String(opts.limit));
|
|
1470
|
+
const query = params.toString();
|
|
1471
|
+
return await this.jsonRequest(
|
|
1472
|
+
`/session/${urlEncode(sessionId)}/transcript${query ? `?${query}` : ""}`,
|
|
1473
|
+
"GET /session/:id/transcript",
|
|
1474
|
+
{
|
|
1475
|
+
clientId: opts.clientId,
|
|
1476
|
+
mode: "rest"
|
|
1477
|
+
}
|
|
1478
|
+
);
|
|
1479
|
+
}
|
|
1393
1480
|
async resumeSession(sessionId, req = {}, clientId) {
|
|
1394
1481
|
return this.restoreSession("resume", sessionId, req, clientId);
|
|
1395
1482
|
}
|
|
@@ -1437,6 +1524,21 @@ var DaemonClient = class {
|
|
|
1437
1524
|
}
|
|
1438
1525
|
);
|
|
1439
1526
|
}
|
|
1527
|
+
/**
|
|
1528
|
+
* Read the current in-memory runtime status for one live daemon session.
|
|
1529
|
+
*/
|
|
1530
|
+
async sessionStatus(sessionId, clientId) {
|
|
1531
|
+
return await this.fetchWithTimeout(
|
|
1532
|
+
`${this.baseUrl}/session/${urlEncode(sessionId)}/status`,
|
|
1533
|
+
{ headers: this.headers({}, clientId) },
|
|
1534
|
+
async (res) => {
|
|
1535
|
+
if (!res.ok) {
|
|
1536
|
+
throw await this.failOnError(res, "GET /session/:id/status");
|
|
1537
|
+
}
|
|
1538
|
+
return await res.json();
|
|
1539
|
+
}
|
|
1540
|
+
);
|
|
1541
|
+
}
|
|
1440
1542
|
async sessionContextUsage(sessionId, opts = {}, clientId) {
|
|
1441
1543
|
const params = new URLSearchParams();
|
|
1442
1544
|
if (opts.detail === true) params.set("detail", "true");
|
|
@@ -1551,7 +1653,10 @@ var DaemonClient = class {
|
|
|
1551
1653
|
{
|
|
1552
1654
|
method: "POST",
|
|
1553
1655
|
headers: this.headers({ "Content-Type": "application/json" }, clientId),
|
|
1554
|
-
body: JSON.stringify({
|
|
1656
|
+
body: JSON.stringify({
|
|
1657
|
+
cwd: req.workspaceCwd,
|
|
1658
|
+
...req.approvalMode !== void 0 ? { approvalMode: req.approvalMode } : {}
|
|
1659
|
+
})
|
|
1555
1660
|
},
|
|
1556
1661
|
async (res) => {
|
|
1557
1662
|
if (!res.ok) {
|
|
@@ -2047,6 +2152,32 @@ var DaemonClient = class {
|
|
|
2047
2152
|
opts?.timeoutMs
|
|
2048
2153
|
);
|
|
2049
2154
|
}
|
|
2155
|
+
/**
|
|
2156
|
+
* Reload the daemon-managed channel worker: the daemon stops and relaunches
|
|
2157
|
+
* it so it re-reads settings.json (channels / proxy / per-channel model).
|
|
2158
|
+
* Requires the daemon to have been started with `--channel`; otherwise the
|
|
2159
|
+
* route responds 409. Pre-flight the `channel_reload` capability.
|
|
2160
|
+
*/
|
|
2161
|
+
async reloadChannelWorker(opts) {
|
|
2162
|
+
return await this.fetchWithTimeout(
|
|
2163
|
+
`${this.baseUrl}/workspace/channel/reload`,
|
|
2164
|
+
{
|
|
2165
|
+
method: "POST",
|
|
2166
|
+
headers: this.headers(
|
|
2167
|
+
{ "Content-Type": "application/json" },
|
|
2168
|
+
opts?.clientId
|
|
2169
|
+
),
|
|
2170
|
+
body: "{}"
|
|
2171
|
+
},
|
|
2172
|
+
async (res) => {
|
|
2173
|
+
if (!res.ok) {
|
|
2174
|
+
throw await this.failOnError(res, "POST /workspace/channel/reload");
|
|
2175
|
+
}
|
|
2176
|
+
return await res.json();
|
|
2177
|
+
},
|
|
2178
|
+
opts?.timeoutMs
|
|
2179
|
+
);
|
|
2180
|
+
}
|
|
2050
2181
|
async manageMcpServer(serverName, action, opts) {
|
|
2051
2182
|
return await this.fetchWithTimeout(
|
|
2052
2183
|
`${this.baseUrl}/workspace/mcp/${urlEncode(serverName)}/${urlEncode(action)}`,
|
|
@@ -2653,6 +2784,22 @@ var DaemonClient = class {
|
|
|
2653
2784
|
}
|
|
2654
2785
|
);
|
|
2655
2786
|
}
|
|
2787
|
+
async addWorkspace(cwd) {
|
|
2788
|
+
return await this.fetchWithTimeout(
|
|
2789
|
+
`${this.baseUrl}/workspaces`,
|
|
2790
|
+
{
|
|
2791
|
+
method: "POST",
|
|
2792
|
+
headers: this.headers({ "Content-Type": "application/json" }),
|
|
2793
|
+
body: JSON.stringify({ cwd })
|
|
2794
|
+
},
|
|
2795
|
+
async (res) => {
|
|
2796
|
+
if (!res.ok) {
|
|
2797
|
+
throw await this.failOnError(res, "POST /workspaces");
|
|
2798
|
+
}
|
|
2799
|
+
return await res.json();
|
|
2800
|
+
}
|
|
2801
|
+
);
|
|
2802
|
+
}
|
|
2656
2803
|
// -- Lifecycle / disposal ------------------------------------------------
|
|
2657
2804
|
/**
|
|
2658
2805
|
* Release transport resources (WS close, etc.). Idempotent.
|
|
@@ -2714,6 +2861,327 @@ var DaemonClient = class {
|
|
|
2714
2861
|
);
|
|
2715
2862
|
}
|
|
2716
2863
|
};
|
|
2864
|
+
var WorkspaceDaemonClient = class {
|
|
2865
|
+
constructor(client, workspaceSelector) {
|
|
2866
|
+
this.client = client;
|
|
2867
|
+
this.workspaceSelector = workspaceSelector;
|
|
2868
|
+
}
|
|
2869
|
+
static {
|
|
2870
|
+
__name(this, "WorkspaceDaemonClient");
|
|
2871
|
+
}
|
|
2872
|
+
workspaceMcp() {
|
|
2873
|
+
return this.get("/mcp", "GET /workspaces/:workspace/mcp");
|
|
2874
|
+
}
|
|
2875
|
+
workspaceSkills() {
|
|
2876
|
+
return this.get("/skills", "GET /workspaces/:workspace/skills");
|
|
2877
|
+
}
|
|
2878
|
+
workspaceProviders() {
|
|
2879
|
+
return this.get("/providers", "GET /workspaces/:workspace/providers");
|
|
2880
|
+
}
|
|
2881
|
+
workspaceHooks() {
|
|
2882
|
+
return this.get("/hooks", "GET /workspaces/:workspace/hooks");
|
|
2883
|
+
}
|
|
2884
|
+
workspaceEnv() {
|
|
2885
|
+
return this.get("/env", "GET /workspaces/:workspace/env");
|
|
2886
|
+
}
|
|
2887
|
+
workspacePreflight() {
|
|
2888
|
+
return this.get("/preflight", "GET /workspaces/:workspace/preflight");
|
|
2889
|
+
}
|
|
2890
|
+
workspaceTools() {
|
|
2891
|
+
return this.get("/tools", "GET /workspaces/:workspace/tools");
|
|
2892
|
+
}
|
|
2893
|
+
workspaceMemory() {
|
|
2894
|
+
return this.get("/memory", "GET /workspaces/:workspace/memory");
|
|
2895
|
+
}
|
|
2896
|
+
writeWorkspaceMemory(req, clientId) {
|
|
2897
|
+
return this.post(
|
|
2898
|
+
"/memory",
|
|
2899
|
+
"POST /workspaces/:workspace/memory",
|
|
2900
|
+
{ ...req, scope: "workspace" },
|
|
2901
|
+
clientId
|
|
2902
|
+
);
|
|
2903
|
+
}
|
|
2904
|
+
listWorkspaceAgents() {
|
|
2905
|
+
return this.get("/agents", "GET /workspaces/:workspace/agents");
|
|
2906
|
+
}
|
|
2907
|
+
createWorkspaceAgent(req, clientId) {
|
|
2908
|
+
return this.post(
|
|
2909
|
+
"/agents",
|
|
2910
|
+
"POST /workspaces/:workspace/agents",
|
|
2911
|
+
{ ...req, scope: req.scope ?? "workspace" },
|
|
2912
|
+
clientId
|
|
2913
|
+
);
|
|
2914
|
+
}
|
|
2915
|
+
getWorkspaceAgent(agentType) {
|
|
2916
|
+
return this.get(
|
|
2917
|
+
`/agents/${urlEncode(agentType)}`,
|
|
2918
|
+
"GET /workspaces/:workspace/agents/:agentType"
|
|
2919
|
+
);
|
|
2920
|
+
}
|
|
2921
|
+
updateWorkspaceAgent(agentType, req, opts = {}) {
|
|
2922
|
+
const query = opts.scope ? `?scope=${urlEncode(opts.scope)}` : "";
|
|
2923
|
+
return this.post(
|
|
2924
|
+
`/agents/${urlEncode(agentType)}${query}`,
|
|
2925
|
+
"POST /workspaces/:workspace/agents/:agentType",
|
|
2926
|
+
req,
|
|
2927
|
+
opts.clientId
|
|
2928
|
+
);
|
|
2929
|
+
}
|
|
2930
|
+
async deleteWorkspaceAgent(agentType, opts = {}) {
|
|
2931
|
+
const query = opts.scope ? `?scope=${urlEncode(opts.scope)}` : "";
|
|
2932
|
+
return await this.client.workspaceNoContentRequest(
|
|
2933
|
+
this.workspaceSelector,
|
|
2934
|
+
`/agents/${urlEncode(agentType)}${query}`,
|
|
2935
|
+
"DELETE /workspaces/:workspace/agents/:agentType",
|
|
2936
|
+
{
|
|
2937
|
+
method: "DELETE",
|
|
2938
|
+
clientId: opts.clientId,
|
|
2939
|
+
okNotFoundCode: "agent_not_found"
|
|
2940
|
+
}
|
|
2941
|
+
);
|
|
2942
|
+
}
|
|
2943
|
+
listWorkspaceSessionsPage(options) {
|
|
2944
|
+
const requestedPageSize = options?.pageSize ?? DEFAULT_SESSION_LIST_PAGE_SIZE;
|
|
2945
|
+
const pageSize = Math.max(
|
|
2946
|
+
1,
|
|
2947
|
+
Math.min(
|
|
2948
|
+
1e3,
|
|
2949
|
+
Math.round(
|
|
2950
|
+
Number.isFinite(requestedPageSize) ? requestedPageSize : DEFAULT_SESSION_LIST_PAGE_SIZE
|
|
2951
|
+
)
|
|
2952
|
+
)
|
|
2953
|
+
);
|
|
2954
|
+
const query = new URLSearchParams({ size: String(pageSize) });
|
|
2955
|
+
if (options?.cursor !== void 0) query.set("cursor", options.cursor);
|
|
2956
|
+
if (options?.archiveState !== void 0) {
|
|
2957
|
+
query.set("archiveState", options.archiveState);
|
|
2958
|
+
}
|
|
2959
|
+
if (options?.view !== void 0) query.set("view", options.view);
|
|
2960
|
+
if (options?.group !== void 0) query.set("group", options.group);
|
|
2961
|
+
if (options?.parentSessionId !== void 0) {
|
|
2962
|
+
query.set("parentSessionId", options.parentSessionId);
|
|
2963
|
+
}
|
|
2964
|
+
return this.get(
|
|
2965
|
+
`/sessions?${query.toString()}`,
|
|
2966
|
+
"GET /workspaces/:workspace/sessions"
|
|
2967
|
+
);
|
|
2968
|
+
}
|
|
2969
|
+
async listWorkspaceSessions(options) {
|
|
2970
|
+
const page = await this.listWorkspaceSessionsPage(options);
|
|
2971
|
+
return page.sessions;
|
|
2972
|
+
}
|
|
2973
|
+
listSessionGroups() {
|
|
2974
|
+
return this.get(
|
|
2975
|
+
"/session-groups",
|
|
2976
|
+
"GET /workspaces/:workspace/session-groups"
|
|
2977
|
+
);
|
|
2978
|
+
}
|
|
2979
|
+
async createSessionGroup(input) {
|
|
2980
|
+
const body = await this.post(
|
|
2981
|
+
"/session-groups",
|
|
2982
|
+
"POST /workspaces/:workspace/session-groups",
|
|
2983
|
+
input
|
|
2984
|
+
);
|
|
2985
|
+
return body.group;
|
|
2986
|
+
}
|
|
2987
|
+
async updateSessionGroup(groupId, update) {
|
|
2988
|
+
const body = await this.client.workspaceJsonRequest(
|
|
2989
|
+
this.workspaceSelector,
|
|
2990
|
+
`/session-groups/${urlEncode(groupId)}`,
|
|
2991
|
+
"PATCH /workspaces/:workspace/session-groups/:groupId",
|
|
2992
|
+
{ method: "PATCH", body: update }
|
|
2993
|
+
);
|
|
2994
|
+
return body.group;
|
|
2995
|
+
}
|
|
2996
|
+
deleteSessionGroup(groupId) {
|
|
2997
|
+
return this.client.workspaceJsonRequest(
|
|
2998
|
+
this.workspaceSelector,
|
|
2999
|
+
`/session-groups/${urlEncode(groupId)}`,
|
|
3000
|
+
"DELETE /workspaces/:workspace/session-groups/:groupId",
|
|
3001
|
+
{ method: "DELETE" }
|
|
3002
|
+
);
|
|
3003
|
+
}
|
|
3004
|
+
deleteSessionsData(sessionIds, clientId) {
|
|
3005
|
+
return this.post(
|
|
3006
|
+
"/sessions/delete",
|
|
3007
|
+
"POST /workspaces/:workspace/sessions/delete",
|
|
3008
|
+
{ sessionIds },
|
|
3009
|
+
clientId
|
|
3010
|
+
);
|
|
3011
|
+
}
|
|
3012
|
+
archiveSessionsData(sessionIds, clientId) {
|
|
3013
|
+
return this.post(
|
|
3014
|
+
"/sessions/archive",
|
|
3015
|
+
"POST /workspaces/:workspace/sessions/archive",
|
|
3016
|
+
{ sessionIds },
|
|
3017
|
+
clientId
|
|
3018
|
+
);
|
|
3019
|
+
}
|
|
3020
|
+
unarchiveSessionsData(sessionIds, clientId) {
|
|
3021
|
+
return this.post(
|
|
3022
|
+
"/sessions/unarchive",
|
|
3023
|
+
"POST /workspaces/:workspace/sessions/unarchive",
|
|
3024
|
+
{ sessionIds },
|
|
3025
|
+
clientId
|
|
3026
|
+
);
|
|
3027
|
+
}
|
|
3028
|
+
readWorkspaceFile(filePath, opts = {}, clientId) {
|
|
3029
|
+
const query = new URLSearchParams({ path: filePath });
|
|
3030
|
+
if (opts.maxBytes !== void 0)
|
|
3031
|
+
query.set("maxBytes", String(opts.maxBytes));
|
|
3032
|
+
if (opts.line !== void 0) query.set("line", String(opts.line));
|
|
3033
|
+
if (opts.limit !== void 0) query.set("limit", String(opts.limit));
|
|
3034
|
+
return this.get(
|
|
3035
|
+
`/file?${query.toString()}`,
|
|
3036
|
+
"GET /workspaces/:workspace/file",
|
|
3037
|
+
clientId
|
|
3038
|
+
);
|
|
3039
|
+
}
|
|
3040
|
+
readWorkspaceFileBytes(filePath, opts = {}, clientId) {
|
|
3041
|
+
const query = new URLSearchParams({ path: filePath });
|
|
3042
|
+
if (opts.offset !== void 0) query.set("offset", String(opts.offset));
|
|
3043
|
+
if (opts.maxBytes !== void 0)
|
|
3044
|
+
query.set("maxBytes", String(opts.maxBytes));
|
|
3045
|
+
return this.get(
|
|
3046
|
+
`/file/bytes?${query.toString()}`,
|
|
3047
|
+
"GET /workspaces/:workspace/file/bytes",
|
|
3048
|
+
clientId
|
|
3049
|
+
);
|
|
3050
|
+
}
|
|
3051
|
+
fileStat(filePath) {
|
|
3052
|
+
const query = new URLSearchParams({ path: filePath });
|
|
3053
|
+
return this.get(
|
|
3054
|
+
`/stat?${query.toString()}`,
|
|
3055
|
+
"GET /workspaces/:workspace/stat"
|
|
3056
|
+
);
|
|
3057
|
+
}
|
|
3058
|
+
dirList(dirPath) {
|
|
3059
|
+
const query = new URLSearchParams({ path: dirPath });
|
|
3060
|
+
return this.get(
|
|
3061
|
+
`/list?${query.toString()}`,
|
|
3062
|
+
"GET /workspaces/:workspace/list"
|
|
3063
|
+
);
|
|
3064
|
+
}
|
|
3065
|
+
glob(pattern) {
|
|
3066
|
+
const query = new URLSearchParams({ pattern });
|
|
3067
|
+
return this.get(
|
|
3068
|
+
`/glob?${query.toString()}`,
|
|
3069
|
+
"GET /workspaces/:workspace/glob"
|
|
3070
|
+
);
|
|
3071
|
+
}
|
|
3072
|
+
writeWorkspaceFile(req, clientId) {
|
|
3073
|
+
return this.post(
|
|
3074
|
+
"/file/write",
|
|
3075
|
+
"POST /workspaces/:workspace/file/write",
|
|
3076
|
+
req,
|
|
3077
|
+
clientId
|
|
3078
|
+
);
|
|
3079
|
+
}
|
|
3080
|
+
editWorkspaceFile(req, clientId) {
|
|
3081
|
+
return this.post(
|
|
3082
|
+
"/file/edit",
|
|
3083
|
+
"POST /workspaces/:workspace/file/edit",
|
|
3084
|
+
req,
|
|
3085
|
+
clientId
|
|
3086
|
+
);
|
|
3087
|
+
}
|
|
3088
|
+
workspaceSettings(opts) {
|
|
3089
|
+
return this.get(
|
|
3090
|
+
"/settings",
|
|
3091
|
+
"GET /workspaces/:workspace/settings",
|
|
3092
|
+
opts?.clientId
|
|
3093
|
+
);
|
|
3094
|
+
}
|
|
3095
|
+
setWorkspaceSetting(scope, key, value, opts) {
|
|
3096
|
+
return this.post(
|
|
3097
|
+
"/settings",
|
|
3098
|
+
"POST /workspaces/:workspace/settings",
|
|
3099
|
+
{ scope, key, value },
|
|
3100
|
+
opts?.clientId
|
|
3101
|
+
);
|
|
3102
|
+
}
|
|
3103
|
+
workspaceTrust(opts) {
|
|
3104
|
+
return this.get(
|
|
3105
|
+
"/trust",
|
|
3106
|
+
"GET /workspaces/:workspace/trust",
|
|
3107
|
+
opts?.clientId
|
|
3108
|
+
);
|
|
3109
|
+
}
|
|
3110
|
+
requestWorkspaceTrustChange(request, clientId) {
|
|
3111
|
+
return this.post(
|
|
3112
|
+
"/trust/request",
|
|
3113
|
+
"POST /workspaces/:workspace/trust/request",
|
|
3114
|
+
request,
|
|
3115
|
+
clientId
|
|
3116
|
+
);
|
|
3117
|
+
}
|
|
3118
|
+
workspacePermissions(opts) {
|
|
3119
|
+
return this.get(
|
|
3120
|
+
"/permissions",
|
|
3121
|
+
"GET /workspaces/:workspace/permissions",
|
|
3122
|
+
opts?.clientId
|
|
3123
|
+
);
|
|
3124
|
+
}
|
|
3125
|
+
setWorkspacePermissionRules(ruleType, rules, opts) {
|
|
3126
|
+
return this.post(
|
|
3127
|
+
"/permissions",
|
|
3128
|
+
"POST /workspaces/:workspace/permissions",
|
|
3129
|
+
{ scope: "workspace", ruleType, rules: [...rules] },
|
|
3130
|
+
opts?.clientId
|
|
3131
|
+
);
|
|
3132
|
+
}
|
|
3133
|
+
setWorkspaceToolEnabled(toolName, enabled, opts) {
|
|
3134
|
+
return this.post(
|
|
3135
|
+
`/tools/${urlEncode(toolName)}/enable`,
|
|
3136
|
+
"POST /workspaces/:workspace/tools/:name/enable",
|
|
3137
|
+
{ enabled },
|
|
3138
|
+
opts?.clientId
|
|
3139
|
+
);
|
|
3140
|
+
}
|
|
3141
|
+
restartMcpServer(serverName, opts) {
|
|
3142
|
+
const query = opts?.entryIndex === void 0 ? "" : `?entryIndex=${urlEncode(String(opts.entryIndex))}`;
|
|
3143
|
+
return this.post(
|
|
3144
|
+
`/mcp/${urlEncode(serverName)}/restart${query}`,
|
|
3145
|
+
"POST /workspaces/:workspace/mcp/:server/restart",
|
|
3146
|
+
{},
|
|
3147
|
+
opts?.clientId,
|
|
3148
|
+
opts?.timeoutMs ?? MCP_RESTART_DEFAULT_TIMEOUT_MS
|
|
3149
|
+
);
|
|
3150
|
+
}
|
|
3151
|
+
reload(opts) {
|
|
3152
|
+
return this.post(
|
|
3153
|
+
"/reload",
|
|
3154
|
+
"POST /workspaces/:workspace/reload",
|
|
3155
|
+
{},
|
|
3156
|
+
opts?.clientId,
|
|
3157
|
+
opts?.timeoutMs
|
|
3158
|
+
);
|
|
3159
|
+
}
|
|
3160
|
+
initWorkspace(opts) {
|
|
3161
|
+
return this.post(
|
|
3162
|
+
"/init",
|
|
3163
|
+
"POST /workspaces/:workspace/init",
|
|
3164
|
+
opts?.force === true ? { force: true } : {},
|
|
3165
|
+
opts?.clientId
|
|
3166
|
+
);
|
|
3167
|
+
}
|
|
3168
|
+
get(path, label, clientId) {
|
|
3169
|
+
return this.client.workspaceJsonRequest(
|
|
3170
|
+
this.workspaceSelector,
|
|
3171
|
+
path,
|
|
3172
|
+
label,
|
|
3173
|
+
{ clientId }
|
|
3174
|
+
);
|
|
3175
|
+
}
|
|
3176
|
+
post(path, label, body, clientId, timeoutMs) {
|
|
3177
|
+
return this.client.workspaceJsonRequest(
|
|
3178
|
+
this.workspaceSelector,
|
|
3179
|
+
path,
|
|
3180
|
+
label,
|
|
3181
|
+
{ method: "POST", body, clientId, timeoutMs }
|
|
3182
|
+
);
|
|
3183
|
+
}
|
|
3184
|
+
};
|
|
2717
3185
|
function composeAbortSignals2(signals) {
|
|
2718
3186
|
const anyFn = AbortSignal.any;
|
|
2719
3187
|
if (typeof anyFn === "function") return anyFn.call(AbortSignal, signals);
|
|
@@ -2807,7 +3275,7 @@ var DaemonSessionClient = class _DaemonSessionClient {
|
|
|
2807
3275
|
*/
|
|
2808
3276
|
static async createOrAttach(client, req = {}, clientId) {
|
|
2809
3277
|
const session = await client.createOrAttachSession(req, clientId);
|
|
2810
|
-
const lastEventId = !session.attached || req.modelServiceId ? 0 : void 0;
|
|
3278
|
+
const lastEventId = !session.attached || req.modelServiceId || req.approvalMode ? 0 : void 0;
|
|
2811
3279
|
return new _DaemonSessionClient({
|
|
2812
3280
|
client,
|
|
2813
3281
|
session,
|
|
@@ -3110,6 +3578,9 @@ var DaemonSessionClient = class _DaemonSessionClient {
|
|
|
3110
3578
|
async context() {
|
|
3111
3579
|
return await this.client.sessionContext(this.sessionId, this.clientId);
|
|
3112
3580
|
}
|
|
3581
|
+
async status() {
|
|
3582
|
+
return await this.client.sessionStatus(this.sessionId, this.clientId);
|
|
3583
|
+
}
|
|
3113
3584
|
async contextUsage(opts = {}) {
|
|
3114
3585
|
return await this.client.sessionContextUsage(
|
|
3115
3586
|
this.sessionId,
|
|
@@ -4153,7 +4624,7 @@ function isStateResyncRequiredData(value) {
|
|
|
4153
4624
|
}
|
|
4154
4625
|
__name(isStateResyncRequiredData, "isStateResyncRequiredData");
|
|
4155
4626
|
function isHistoryTruncatedData(value) {
|
|
4156
|
-
if (!isRecord(value) || value["reason"] !== "replay_window_exceeded" || !isFiniteNumber(value["truncatedEvents"]) || !isFiniteNumber(value["retainedEvents"]) || !isFiniteNumber(value["maxBytes"]) || value["fullTranscriptAvailable"] !==
|
|
4627
|
+
if (!isRecord(value) || value["reason"] !== "replay_window_exceeded" || !isFiniteNumber(value["truncatedEvents"]) || !isFiniteNumber(value["retainedEvents"]) || !isFiniteNumber(value["maxBytes"]) || typeof value["fullTranscriptAvailable"] !== "boolean") {
|
|
4157
4628
|
return false;
|
|
4158
4629
|
}
|
|
4159
4630
|
const truncatedTurns = value["truncatedTurns"];
|
|
@@ -4940,7 +5411,7 @@ function normalizeHistoryTruncated(event, base) {
|
|
|
4940
5411
|
const truncatedEvents = numberField(event.data, "truncatedEvents");
|
|
4941
5412
|
const retainedEvents = numberField(event.data, "retainedEvents");
|
|
4942
5413
|
const maxBytes = numberField(event.data, "maxBytes");
|
|
4943
|
-
if (reason !== "replay_window_exceeded" || truncatedEvents === void 0 || retainedEvents === void 0 || maxBytes === void 0 || isRecord2(event.data)
|
|
5414
|
+
if (reason !== "replay_window_exceeded" || truncatedEvents === void 0 || retainedEvents === void 0 || maxBytes === void 0 || !isRecord2(event.data) || typeof event.data["fullTranscriptAvailable"] !== "boolean") {
|
|
4944
5415
|
return fallbackDebug(event, base, "malformed history_truncated payload");
|
|
4945
5416
|
}
|
|
4946
5417
|
return [
|
|
@@ -8691,6 +9162,7 @@ export {
|
|
|
8691
9162
|
PENDING_PROMPT_COMPLETED_EVENT,
|
|
8692
9163
|
PENDING_PROMPT_STARTED_EVENT,
|
|
8693
9164
|
SseFramingError,
|
|
9165
|
+
WorkspaceDaemonClient,
|
|
8694
9166
|
appendLocalUserTranscriptMessage,
|
|
8695
9167
|
asKnownDaemonEvent,
|
|
8696
9168
|
createDaemonAuthState,
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
// Force strict mode and setup for ESM
|
|
2
|
+
"use strict";
|
|
3
|
+
import {
|
|
4
|
+
createDaemonStatusProvider
|
|
5
|
+
} from "./chunk-7PU4FYLG.js";
|
|
6
|
+
import "./chunk-W3JHSWRP.js";
|
|
7
|
+
import "./chunk-E5Z2AVNV.js";
|
|
8
|
+
import "./chunk-WQUQVGTF.js";
|
|
9
|
+
import "./chunk-OCPBI7J5.js";
|
|
10
|
+
import "./chunk-IAVB3HM3.js";
|
|
11
|
+
import "./chunk-PZL23GTM.js";
|
|
12
|
+
import "./chunk-W7FJ3N32.js";
|
|
13
|
+
import "./chunk-6RLROE6G.js";
|
|
14
|
+
import "./chunk-COH43MRJ.js";
|
|
15
|
+
import "./chunk-CLFKOZEK.js";
|
|
16
|
+
import "./chunk-TEGEBB2I.js";
|
|
17
|
+
import "./chunk-XLA62MYB.js";
|
|
18
|
+
import "./chunk-VWPVHAMO.js";
|
|
19
|
+
import "./chunk-M5GB774H.js";
|
|
20
|
+
import "./chunk-UDXSXLER.js";
|
|
21
|
+
import "./chunk-3AHXV67U.js";
|
|
22
|
+
import "./chunk-VJNBRRZG.js";
|
|
23
|
+
import "./chunk-NVYTCB5Z.js";
|
|
24
|
+
import "./chunk-CU3L64TP.js";
|
|
25
|
+
import "./chunk-ZJE7NSL3.js";
|
|
26
|
+
import "./chunk-H6XPXXMH.js";
|
|
27
|
+
import "./chunk-MC23XKFE.js";
|
|
28
|
+
import "./chunk-LUODI7WD.js";
|
|
29
|
+
import "./chunk-ORBGV7NJ.js";
|
|
30
|
+
import "./chunk-KKNMOEZH.js";
|
|
31
|
+
import "./chunk-W2UIXQDL.js";
|
|
32
|
+
import "./chunk-XU457J4V.js";
|
|
33
|
+
import "./chunk-VDDGDZMA.js";
|
|
34
|
+
import "./chunk-CEA3E3JB.js";
|
|
35
|
+
import "./chunk-SZRN75WQ.js";
|
|
36
|
+
import "./chunk-HTO4JFDZ.js";
|
|
37
|
+
import "./chunk-CPBF7KYF.js";
|
|
38
|
+
import "./chunk-4GORAUCN.js";
|
|
39
|
+
import "./chunk-6AM5D4ME.js";
|
|
40
|
+
import "./chunk-7R3CZA3Q.js";
|
|
41
|
+
import "./chunk-GWHYEOV2.js";
|
|
42
|
+
import "./chunk-4QLQE5WJ.js";
|
|
43
|
+
import "./chunk-5XUCZNSY.js";
|
|
44
|
+
import "./chunk-3VAGG5T5.js";
|
|
45
|
+
import "./chunk-4WKAA4KS.js";
|
|
46
|
+
import "./chunk-CR3C7WXL.js";
|
|
47
|
+
import "./chunk-CARU2RR2.js";
|
|
48
|
+
import "./chunk-VGC4I5JJ.js";
|
|
49
|
+
import "./chunk-YLV3XXFB.js";
|
|
50
|
+
import "./chunk-TDEXZKMT.js";
|
|
51
|
+
import "./chunk-J3JA76CF.js";
|
|
52
|
+
import "./chunk-B5ORX3FG.js";
|
|
53
|
+
import "./chunk-BZIFY5TF.js";
|
|
54
|
+
import "./chunk-UOZWKTQG.js";
|
|
55
|
+
import "./chunk-JESCGQM3.js";
|
|
56
|
+
import "./chunk-ZLXQN2QS.js";
|
|
57
|
+
import "./chunk-XVNQMZ2I.js";
|
|
58
|
+
import "./chunk-524RQP4Q.js";
|
|
59
|
+
import "./chunk-JSG7ZSBC.js";
|
|
60
|
+
import "./chunk-A4UCTEB5.js";
|
|
61
|
+
import "./chunk-XWRJCPHC.js";
|
|
62
|
+
import "./chunk-4LD5APFL.js";
|
|
63
|
+
import "./chunk-TYAMGABM.js";
|
|
64
|
+
import "./chunk-FCMNKVXT.js";
|
|
65
|
+
import "./chunk-DJ2GSRLV.js";
|
|
66
|
+
import "./chunk-4ZVWQHEQ.js";
|
|
67
|
+
import "./chunk-J4TSQ5EQ.js";
|
|
68
|
+
import "./chunk-75DOP5OR.js";
|
|
69
|
+
import "./chunk-DMTGGOSA.js";
|
|
70
|
+
import "./chunk-YQ3U5MUC.js";
|
|
71
|
+
import "./chunk-TB6UDU4T.js";
|
|
72
|
+
import "./chunk-5O2XNYP6.js";
|
|
73
|
+
import "./chunk-J2S4EL5Y.js";
|
|
74
|
+
export {
|
|
75
|
+
createDaemonStatusProvider
|
|
76
|
+
};
|