@qwen-code/qwen-code 0.19.7 → 0.19.8-nightly.20260710.205430235
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 +43 -36
- package/bundled/qc-helper/docs/features/_meta.ts +1 -0
- package/bundled/qc-helper/docs/features/channels/overview.md +20 -12
- package/bundled/qc-helper/docs/features/channels/plugins.md +1 -0
- package/bundled/qc-helper/docs/features/code-review.md +2 -1
- 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/hooks.md +36 -34
- package/bundled/qc-helper/docs/features/memory.md +1 -1
- package/bundled/qc-helper/docs/features/tool-use-summaries.md +19 -23
- package/bundled/qc-helper/docs/qwen-serve.md +22 -12
- package/bundled/qc-helper/docs/reference/keyboard-shortcuts.md +1 -1
- package/bundled/review/DESIGN.md +14 -13
- package/bundled/review/SKILL.md +38 -61
- package/chunks/{MaxSizedBox-XY5LIO5O.js → MaxSizedBox-LOFYQFYJ.js} +13 -14
- package/chunks/{StandaloneSessionPicker-APISIRJZ.js → StandaloneSessionPicker-U5OQBGEB.js} +31 -29
- package/chunks/{acpAgent-MMOSC2YA.js → acpAgent-SDIFRIED.js} +637 -131
- package/chunks/{agent-TKIBLLQT.js → agent-JIBBVHNQ.js} +10 -10
- package/chunks/{agent-headless-VLX4C7KX.js → agent-headless-6LGZYJYU.js} +10 -10
- package/chunks/{anthropicContentGenerator-AKYPSZIV.js → anthropicContentGenerator-55REPTTF.js} +30 -3
- package/chunks/{artifact-tool-D233YJFH.js → artifact-tool-EIN46DPM.js} +1 -1
- package/chunks/{askUserQuestion-MKL5ZTMC.js → askUserQuestion-6YX6ZRX7.js} +1 -1
- package/chunks/{bridge-BCU73DZO.js → bridge-HVPFYNM4.js} +17 -16
- package/chunks/{ca-HCMB2I54.js → ca-MULEGDVS.js} +89 -5
- package/chunks/{channel-worker-supervisor-CRCVYQIE.js → channel-worker-supervisor-OPXXT4JK.js} +20 -3
- package/chunks/{chunk-DGHJTO2K.js → chunk-2AF26HVM.js} +31 -2
- package/chunks/{chunk-3B26UVCX.js → chunk-2GUVUHJY.js} +6 -4
- package/chunks/{chunk-FV7425LN.js → chunk-2SZOMGOR.js} +4 -1
- package/chunks/{chunk-CNSF3WO5.js → chunk-32KS5XSX.js} +3 -3
- package/chunks/{chunk-4UCTWSTP.js → chunk-34UUM3IN.js} +1 -1
- package/chunks/{chunk-G7ZG7CA6.js → chunk-3UP777ZS.js} +8 -7
- package/chunks/{chunk-MIG5SQNL.js → chunk-4CSVIZLT.js} +4 -4
- package/chunks/{chunk-GD236YPV.js → chunk-4ONWIT5C.js} +1 -1
- package/chunks/{chunk-4ZJIPVPB.js → chunk-4XK7TNBP.js} +8 -8
- package/chunks/{chunk-I4A4K72C.js → chunk-5F2H3PXG.js} +446 -232
- package/chunks/chunk-5HOF2K5U.js +19 -0
- package/chunks/{chunk-GMOWQOQQ.js → chunk-5ZVIYNLN.js} +228 -36
- package/chunks/chunk-6O6Z2I5Q.js +292 -0
- package/chunks/{chunk-RYFZCUJO.js → chunk-6QKT5VNZ.js} +14 -6
- package/chunks/{chunk-SD4N3QJ2.js → chunk-6ZPSVWLF.js} +61 -17
- package/chunks/{chunk-X265R5C6.js → chunk-7YGSDQ5J.js} +2 -2
- package/chunks/{chunk-PRDFOIZF.js → chunk-A6KEUFJO.js} +32 -5
- package/chunks/{chunk-OWVIH4HY.js → chunk-B5OAMPJ5.js} +389 -87
- package/chunks/{chunk-ME3YSROJ.js → chunk-CV2AT2WJ.js} +22 -10
- package/chunks/{chunk-U4FRHCLA.js → chunk-DDKUYKHA.js} +1912 -201
- package/chunks/{chunk-YDSYD7UI.js → chunk-E3SA2LY4.js} +2 -2
- package/chunks/{chunk-6IAWPIQ6.js → chunk-EDM5O3SX.js} +2 -2
- package/chunks/{chunk-CISB3IQF.js → chunk-FONJQQWI.js} +65 -6
- package/chunks/{chunk-FRFFNYUY.js → chunk-G3WIMNL4.js} +3 -3
- package/chunks/{chunk-B34OV7K2.js → chunk-GGQQA4JW.js} +13 -0
- package/chunks/chunk-GLE2YUPU.js +34 -0
- package/chunks/{chunk-MJI36HER.js → chunk-GOTMC3BX.js} +1 -1
- package/chunks/{chunk-RFIL6REB.js → chunk-GRB4QSBD.js} +168 -31
- package/chunks/chunk-GVVY7GSP.js +38 -0
- package/chunks/{chunk-7JGISHHZ.js → chunk-HDEUQRAR.js} +14 -156
- package/chunks/{chunk-NZEGNV4V.js → chunk-HPRI22FZ.js} +6 -6
- package/chunks/{chunk-STAZRKOT.js → chunk-I34IHZFJ.js} +117 -459
- package/chunks/{chunk-JF7DFPQ5.js → chunk-I3MBKL6Z.js} +12 -2
- package/chunks/{chunk-DNV4FSN5.js → chunk-I5XN6KDI.js} +21 -4
- package/chunks/{chunk-VZ7HY3YU.js → chunk-IAMRWMFU.js} +1 -1
- package/chunks/{chunk-44NROQYV.js → chunk-JOQMY62N.js} +1 -1
- package/chunks/{chunk-VQWAZSXN.js → chunk-JW4IKIZ2.js} +57 -35
- package/chunks/{chunk-SAIILPQ3.js → chunk-KJMYXFUR.js} +3 -1
- package/chunks/{chunk-AFOLR6YL.js → chunk-KQ6MKCFE.js} +102 -16
- package/chunks/{chunk-X3YGAX7V.js → chunk-KS2FRTYI.js} +2 -0
- package/chunks/{chunk-IUE7YWC3.js → chunk-LE7EF36E.js} +7 -7
- package/chunks/{chunk-B4U2M63D.js → chunk-LRY7HD3Q.js} +2101 -11
- package/chunks/{chunk-PUQLHSQ2.js → chunk-ME7E6WZB.js} +6 -8
- package/chunks/{chunk-LEIJKM7Q.js → chunk-MEK7ZRJ3.js} +1 -1
- package/chunks/{chunk-AJBEAUIS.js → chunk-MG2TNCRX.js} +4 -3
- package/chunks/{chunk-GL5TV7B5.js → chunk-MSMQURDV.js} +21 -5
- package/chunks/{chunk-6BN7NZ5Z.js → chunk-NXDJLKKX.js} +4 -6
- package/chunks/{chunk-FEJ2FZ3U.js → chunk-NY2ZOFMM.js} +1 -1
- package/chunks/{chunk-QZF5U5KA.js → chunk-NY5BE643.js} +8 -8
- package/chunks/{chunk-4RQIB5UZ.js → chunk-O2YT7VB4.js} +0 -34
- package/chunks/{chunk-4KJ2BPIT.js → chunk-OACJLMLD.js} +2 -38
- package/chunks/chunk-PCWSPWXZ.js +168 -0
- package/chunks/{chunk-XPJH4PKR.js → chunk-PJ74K3DH.js} +1 -1
- package/chunks/{chunk-FTFXDZYI.js → chunk-PW7VWRLX.js} +45 -29
- package/chunks/chunk-R3SLDK6Y.js +468 -0
- package/chunks/{chunk-4O344UEE.js → chunk-SDJOZOYY.js} +38 -18
- package/chunks/{chunk-ALZ75L2X.js → chunk-SMYIBRAA.js} +412 -376
- package/chunks/{chunk-CCGOFQV3.js → chunk-SS5P6JM6.js} +6 -5
- package/chunks/{chunk-AIY5UTFI.js → chunk-T3XHYGMG.js} +925 -2872
- package/chunks/{chunk-Q6OEPOOC.js → chunk-TB6GWNV4.js} +1 -1
- package/chunks/{chunk-24XYI5EI.js → chunk-TERKDCOZ.js} +3 -3
- package/chunks/chunk-TVO5C767.js +159 -0
- package/chunks/{chunk-TBAZMRW3.js → chunk-TVW53EK7.js} +1 -1
- package/chunks/chunk-TX5QZYK6.js +296 -0
- package/chunks/{chunk-JD33UY7E.js → chunk-TZRVTPJ6.js} +15 -9
- package/chunks/{chunk-65CFHNSE.js → chunk-UAFB2DNB.js} +59 -59
- package/chunks/{chunk-QAKFYMJI.js → chunk-UOXLB2LY.js} +152 -17
- package/chunks/chunk-V35MD7KN.js +13 -0
- package/chunks/{chunk-XSAFNANZ.js → chunk-VWDJHVXM.js} +12 -12
- package/chunks/{chunk-XISQIIT7.js → chunk-W77ZLCSX.js} +1 -1
- package/chunks/{chunk-BWVQN2HV.js → chunk-WTEIUA2V.js} +4 -4
- package/chunks/{chunk-TDGF35EN.js → chunk-XOHNA2S6.js} +1 -1
- package/chunks/{chunk-HJ3GX3Y3.js → chunk-XZVUZSDG.js} +25 -11
- package/chunks/{chunk-ADZG46HR.js → chunk-YHGCTQG3.js} +1 -1
- package/chunks/{chunk-2NPS2UDH.js → chunk-YUNPEB3Q.js} +478 -43
- package/chunks/chunk-Z3I3QJK3.js +47 -0
- package/chunks/{chunk-P7I3D7FM.js → chunk-Z466FBSA.js} +1 -1
- package/chunks/{chunk-YEGT55NW.js → chunk-ZDAZSR2O.js} +3009 -1220
- package/chunks/{chunk-VEB3NYSO.js → chunk-ZJQBTFJ6.js} +6 -1
- package/chunks/chunk-ZL5HN75Q.js +61 -0
- package/chunks/{computer-use-X4KUU3NM.js → computer-use-IW5XBECT.js} +10 -10
- package/chunks/{contextCommand-LAYJZF7H.js → contextCommand-4QPLK2SH.js} +14 -14
- package/chunks/create-sub-session-7JK3EYWA.js +212 -0
- package/chunks/create-sub-session-EVYZYAE3.js +364 -0
- package/chunks/{cron-create-JSXEIPVS.js → cron-create-2CCO2PW6.js} +2 -2
- package/chunks/{cron-delete-OIFVEPGU.js → cron-delete-ETVTP5IV.js} +2 -2
- package/chunks/{cron-list-D4ZX4IOE.js → cron-list-FS3KWOY5.js} +2 -2
- package/chunks/{daemon-F3I2RXP6.js → daemon-NNUYIBWA.js} +461 -0
- package/chunks/{daemon-status-provider-XSAFKVDS.js → daemon-status-provider-3EPG6BXX.js} +21 -19
- package/chunks/{de-PLLFDERI.js → de-QRG6J2CM.js} +89 -5
- package/chunks/{dist-YTRKAVUB.js → dist-3EIIFOJV.js} +1 -1
- package/chunks/{dist-PKFTNUHO.js → dist-7F5GWZDZ.js} +2 -1
- package/chunks/{dist-FQ5WRJPL.js → dist-CBJ7OJ5R.js} +2 -2
- package/chunks/{dist-OT7G2WNM.js → dist-LIFJ2YAI.js} +1 -1
- package/chunks/{dist-573HNSVO.js → dist-OKXOQ63L.js} +2 -1
- package/chunks/{dist-IMFFBMAT.js → dist-SU5LY5R4.js} +3 -1
- package/chunks/{earlyInputCapture-AERYYGXE.js → earlyInputCapture-HP5XAS7A.js} +10 -10
- package/chunks/{edit-WZTZDGCI.js → edit-MDICC6KH.js} +11 -11
- package/chunks/{en-GA2RMXY5.js → en-HF3KFWZG.js} +91 -5
- package/chunks/{enter-worktree-DEPXBJEL.js → enter-worktree-JWTRNEN4.js} +10 -10
- package/chunks/{enterPlanMode-JFGXZHHJ.js → enterPlanMode-GMRZMTBQ.js} +10 -10
- package/chunks/environment-2CJAFOFN.js +88 -0
- package/chunks/{errors-GMZL4QV7.js → errors-UZOVFD2U.js} +13 -13
- package/chunks/{exit-worktree-Y7XBK3VV.js → exit-worktree-QQGEG343.js} +10 -10
- package/chunks/{exitPlanMode-WQQER65F.js → exitPlanMode-YK2JVAAB.js} +10 -10
- package/chunks/{fast-path-W2U6XDNO.js → fast-path-6SD4JNQW.js} +12 -3
- package/chunks/{fast-path-settings-RCRXH2JG.js → fast-path-settings-RAQGCIT7.js} +3 -2
- package/chunks/{fr-GWNQG4XH.js → fr-RSCO6HHD.js} +89 -5
- package/chunks/{gemini-T4WX6SRW.js → gemini-TFQXPUZB.js} +436 -140
- package/chunks/{geminiContentGenerator-MKQACXEJ.js → geminiContentGenerator-LJ2BNXHX.js} +1 -1
- package/chunks/{glob-4KKSHZDF.js → glob-3IJ6JR5W.js} +10 -10
- package/chunks/{grep-GHRYXSLZ.js → grep-UFZ2RFQZ.js} +10 -10
- package/chunks/{handleAutoUpdate-HN7ZOSXY.js → handleAutoUpdate-TEZC5ZIR.js} +17 -13
- package/chunks/i18n-5QEODTJV.js +84 -0
- package/chunks/{initializer-SRN3IM42.js → initializer-222MPCLQ.js} +18 -16
- package/chunks/installationInfo-OZ62OHZ2.js +65 -0
- package/chunks/{ja-2HOTA47X.js → ja-RRFGG2DC.js} +89 -5
- package/chunks/{list-INTVXUPA.js → list-BN5VBIIE.js} +20 -18
- package/chunks/{loadedSettingsAdapter-QVHHQPGM.js → loadedSettingsAdapter-EHTUJRFB.js} +18 -16
- package/chunks/{loop-wakeup-OHWEMFP5.js → loop-wakeup-SR2KWT4B.js} +3 -3
- package/chunks/{ls-L654WOAT.js → ls-RUBQK5Q2.js} +2 -2
- package/chunks/{lsp-M35KE54Y.js → lsp-DUTVY2ZA.js} +3 -5
- package/chunks/{mcp-7V4T46RG.js → mcp-OPGHD26Y.js} +18 -16
- package/chunks/{monitor-464OY2UE.js → monitor-WXBDVYYV.js} +10 -10
- package/chunks/{nonInteractiveCli-LJEEODU2.js → nonInteractiveCli-CWIBGJ4U.js} +54 -49
- package/chunks/{notebook-edit-BLJYCNDO.js → notebook-edit-T7P7M73F.js} +11 -11
- package/chunks/{openaiContentGenerator-PFF6HYB2.js → openaiContentGenerator-OES264C3.js} +7 -7
- package/chunks/{pidfile-LIBUENIV.js → pidfile-LJ3NLS2P.js} +10 -10
- package/chunks/{pt-2THT3YHA.js → pt-D4CG46JM.js} +89 -5
- package/chunks/{qwenContentGenerator-SUUHZ6CR.js → qwenContentGenerator-QJ67LAJ5.js} +12 -12
- package/chunks/{read-file-L7TBQVX7.js → read-file-KZD7TLU7.js} +5 -5
- package/chunks/{read-mcp-resource-CNQHBSJM.js → read-mcp-resource-Q56IMYOH.js} +1 -1
- package/chunks/{record-artifact-PP3LKHTS.js → record-artifact-GZ5D5HZX.js} +4 -4
- package/chunks/{ripGrep-CKKX3GRB.js → ripGrep-KUJLX75U.js} +10 -10
- package/chunks/{ru-Z67YJHBG.js → ru-O2QUEL22.js} +89 -5
- package/chunks/{run-qwen-serve-5OKADVLE.js → run-qwen-serve-M52KVRGI.js} +664 -153
- package/chunks/{scheduler-ZRW3AIDU.js → scheduler-FFATTAYZ.js} +10 -10
- package/chunks/{send-message-OA6MV4EU.js → send-message-HAGK3VTV.js} +2 -2
- package/chunks/{serve-36WS32W6.js → serve-B5S32524.js} +21 -18
- package/chunks/{server-M372UENX.js → server-6HK5FJMR.js} +3301 -665
- package/chunks/{session-F5KSNP2N.js → session-3WB76VTQ.js} +55 -50
- package/chunks/{settings-WFLNS3WT.js → settings-W3IX7NHK.js} +27 -23
- package/chunks/{shell-DEDSWN56.js → shell-HZIU2ZG7.js} +10 -10
- package/chunks/{skill-A2TL2NPC.js → skill-34OUFB65.js} +5 -5
- package/chunks/{spawnChannel-RQHUWTCL.js → spawnChannel-FTZJ3I5O.js} +12 -12
- package/chunks/{src-XKZMNHXS.js → src-NELBIIGI.js} +48 -10
- package/chunks/standalone-update-LICI2VSK.js +79 -0
- package/chunks/{startInteractiveUI-REKSTOHU.js → startInteractiveUI-LZEV5YI2.js} +2203 -1764
- package/chunks/stdioHelpers-CA7MG65Z.js +14 -0
- package/chunks/{syntheticOutput-F7LSDCAR.js → syntheticOutput-XFFJVCGV.js} +2 -2
- package/chunks/{task-create-RPFZNB4B.js → task-create-VINUSVBF.js} +3 -3
- package/chunks/{task-list-TGGJX7EA.js → task-list-YZ2AWQEG.js} +1 -1
- package/chunks/{task-stop-W7NGTMYQ.js → task-stop-PEXPKUW3.js} +1 -1
- package/chunks/{task-update-5WUG5MVQ.js → task-update-BHIX57YH.js} +3 -3
- package/chunks/{team-create-TBQVWAG7.js → team-create-2JS2OYSF.js} +10 -10
- package/chunks/{team-delete-UHQQ2QQX.js → team-delete-2OHXSBVS.js} +1 -1
- package/chunks/{team-plan-approval-FZPGUSHJ.js → team-plan-approval-PHLGYUY7.js} +10 -10
- package/chunks/{theme-manager-DQZVNSOC.js → theme-manager-UYXLX37P.js} +10 -10
- package/chunks/{todoWrite-C4ZAMSR3.js → todoWrite-7Q4ELT4F.js} +1 -1
- package/chunks/{tool-search-FDQ3SLNJ.js → tool-search-2MWA3GWE.js} +6 -6
- package/chunks/total-session-admission-PRZK35X4.js +72 -0
- package/chunks/{trustedFolders-Z475EIHL.js → trustedFolders-IT4JBNPG.js} +12 -12
- package/chunks/{updateCheck-E2ZX7RL7.js → updateCheck-X3ZWDO3Z.js} +17 -13
- package/chunks/updateEventEmitter-NXWTRHXY.js +10 -0
- package/chunks/{validateNonInterActiveAuth-O4ECBHQL.js → validateNonInterActiveAuth-IAOL7CM3.js} +51 -45
- package/chunks/{version-CEDD6ZZR.js → version-25QF6A5H.js} +1 -1
- package/chunks/{web-fetch-UYGMOHW4.js → web-fetch-I7FOWHGA.js} +2 -2
- package/chunks/{workflow-CQQ4J4I6.js → workflow-LZZ5U3IT.js} +11 -11
- package/chunks/{workspace-providers-status-MVYXMYDG.js → workspace-providers-status-7DTOAWEL.js} +21 -18
- package/chunks/workspace-registry-BBIPESIZ.js +76 -0
- package/chunks/{workspace-service-OMBR6ZLG.js → workspace-service-SY3P3FUY.js} +25 -23
- package/chunks/{workspace-skills-status-IMMQ7CAY.js → workspace-skills-status-GTT2A4WN.js} +20 -18
- package/chunks/{write-file-VWGY7AJP.js → write-file-M6IHNW3V.js} +11 -11
- package/chunks/{zh-7XVVRTDH.js → zh-K2EH6BDD.js} +91 -5
- package/chunks/{zh-TW-DPH554OG.js → zh-TW-4GPXJ7ZY.js} +91 -5
- package/cli.js +13 -12
- package/locales/ca.js +115 -7
- package/locales/de.js +114 -7
- package/locales/en.js +118 -7
- package/locales/fr.js +115 -7
- package/locales/ja.js +116 -6
- package/locales/pt.js +114 -7
- package/locales/ru.js +114 -7
- package/locales/zh-TW.js +114 -6
- package/locales/zh.js +114 -6
- package/package.json +3 -6
- package/web-shell/assets/{arc-C7hjaa7g.js → arc-G3HZaqaL.js} +1 -1
- package/web-shell/assets/{architectureDiagram-3BPJPVTR-pm9KtMZY.js → architectureDiagram-3BPJPVTR-DhBrwwch.js} +1 -1
- package/web-shell/assets/{blockDiagram-GPEHLZMM-CApElKsU.js → blockDiagram-GPEHLZMM-16JbbF0N.js} +1 -1
- package/web-shell/assets/{c4Diagram-AAUBKEIU-BeDe0-9N.js → c4Diagram-AAUBKEIU-DQ3-pKgc.js} +1 -1
- package/web-shell/assets/channel-CX7ZHuuL.js +1 -0
- package/web-shell/assets/{chunk-2J33WTMH-DJEkmLdl.js → chunk-2J33WTMH-ERCn30sp.js} +1 -1
- package/web-shell/assets/{chunk-4BX2VUAB-DXX8gdpe.js → chunk-4BX2VUAB-DTysfbFi.js} +1 -1
- package/web-shell/assets/{chunk-55IACEB6-DORmk1kQ.js → chunk-55IACEB6-BFGrbTBi.js} +1 -1
- package/web-shell/assets/{chunk-727SXJPM-DWmO4mCZ.js → chunk-727SXJPM-DCX4Oar-.js} +1 -1
- package/web-shell/assets/{chunk-AQP2D5EJ-C7LRaYw2.js → chunk-AQP2D5EJ-CgT6sBr3.js} +1 -1
- package/web-shell/assets/{chunk-FMBD7UC4-CCdXgyC5.js → chunk-FMBD7UC4-C1Uuk1KV.js} +1 -1
- package/web-shell/assets/{chunk-ND2GUHAM-SyL_xvWc.js → chunk-ND2GUHAM-DajgESiu.js} +1 -1
- package/web-shell/assets/{chunk-QZHKN3VN-BzOuCKxa.js → chunk-QZHKN3VN-DLJSvy9X.js} +1 -1
- package/web-shell/assets/classDiagram-4FO5ZUOK-B-oT3UI8.js +1 -0
- package/web-shell/assets/classDiagram-v2-Q7XG4LA2-B-oT3UI8.js +1 -0
- package/web-shell/assets/{cose-bilkent-S5V4N54A-BMPWyDKc.js → cose-bilkent-S5V4N54A-CH3w3qs7.js} +1 -1
- package/web-shell/assets/{dagre-BM42HDAG-B_GnPWik.js → dagre-BM42HDAG-BloXan9B.js} +1 -1
- package/web-shell/assets/{diagram-2AECGRRQ-fJqMc3S_.js → diagram-2AECGRRQ-BbZiGcmK.js} +1 -1
- package/web-shell/assets/{diagram-5GNKFQAL-ximV3O9D.js → diagram-5GNKFQAL-GQlYvLJv.js} +1 -1
- package/web-shell/assets/{diagram-KO2AKTUF-2vVyjzqw.js → diagram-KO2AKTUF-CtIBvVq3.js} +1 -1
- package/web-shell/assets/{diagram-LMA3HP47-Dckcx1sT.js → diagram-LMA3HP47-D5TBo9a2.js} +1 -1
- package/web-shell/assets/{diagram-OG6HWLK6-BAVv47ga.js → diagram-OG6HWLK6-N0gQhw6R.js} +1 -1
- package/web-shell/assets/{erDiagram-TEJ5UH35-Bn3nf5J0.js → erDiagram-TEJ5UH35-zab9vDj3.js} +1 -1
- package/web-shell/assets/{flowDiagram-I6XJVG4X-BIbGF9JT.js → flowDiagram-I6XJVG4X-BnnjtWJa.js} +1 -1
- package/web-shell/assets/{ganttDiagram-6RSMTGT7-CDbhb3AH.js → ganttDiagram-6RSMTGT7-2T0SQU4f.js} +1 -1
- package/web-shell/assets/{gitGraphDiagram-PVQCEYII-CbKG1a_w.js → gitGraphDiagram-PVQCEYII-DAD6_que.js} +1 -1
- package/web-shell/assets/index-XLkWfLja.css +5 -0
- package/web-shell/assets/index-srlTR1Jg.js +786 -0
- package/web-shell/assets/{infoDiagram-5YYISTIA-DUFxTy8m.js → infoDiagram-5YYISTIA-C-j8d0xO.js} +1 -1
- package/web-shell/assets/{ishikawaDiagram-YF4QCWOH-D69hrBG8.js → ishikawaDiagram-YF4QCWOH-D97bAKoT.js} +1 -1
- package/web-shell/assets/{journeyDiagram-JHISSGLW-DsvEw51Y.js → journeyDiagram-JHISSGLW-BJAHfJmm.js} +1 -1
- package/web-shell/assets/{kanban-definition-UN3LZRKU-lFFjZEYd.js → kanban-definition-UN3LZRKU-CZgR5aac.js} +1 -1
- package/web-shell/assets/{linear-Bo5bWzvo.js → linear-DOd4kYhA.js} +1 -1
- package/web-shell/assets/{mermaid.core-C_HKMJx5.js → mermaid.core-BBaplnXA.js} +5 -5
- package/web-shell/assets/{mindmap-definition-RKZ34NQL-DlV-NUTs.js → mindmap-definition-RKZ34NQL-IhBF_BR5.js} +1 -1
- package/web-shell/assets/{pieDiagram-4H26LBE5-B2e6FH2a.js → pieDiagram-4H26LBE5-B4R4sYyH.js} +1 -1
- package/web-shell/assets/{quadrantDiagram-W4KKPZXB-D75kSk-b.js → quadrantDiagram-W4KKPZXB-DKd1SJ61.js} +1 -1
- package/web-shell/assets/{requirementDiagram-4Y6WPE33-CQ6xakhM.js → requirementDiagram-4Y6WPE33-Cw96V0Xb.js} +1 -1
- package/web-shell/assets/{sankeyDiagram-5OEKKPKP-J_XTKrcY.js → sankeyDiagram-5OEKKPKP-C6ne_yWi.js} +1 -1
- package/web-shell/assets/{sequenceDiagram-3UESZ5HK-D7jTcBtf.js → sequenceDiagram-3UESZ5HK-CCyp4PDp.js} +1 -1
- package/web-shell/assets/{stateDiagram-AJRCARHV-CrlM_OT3.js → stateDiagram-AJRCARHV-DHvIqTmx.js} +1 -1
- package/web-shell/assets/stateDiagram-v2-BHNVJYJU-DvFhmpwA.js +1 -0
- package/web-shell/assets/{timeline-definition-PNZ67QCA-5oZi76Ef.js → timeline-definition-PNZ67QCA-amb3n9zH.js} +1 -1
- package/web-shell/assets/{vennDiagram-CIIHVFJN-DO5YptPK.js → vennDiagram-CIIHVFJN-Abf2qRFJ.js} +1 -1
- package/web-shell/assets/{wardley-L42UT6IY-4t1eJDvM.js → wardley-L42UT6IY-BBlOp1av.js} +1 -1
- package/web-shell/assets/{wardleyDiagram-YWT4CUSO-DKZc661S.js → wardleyDiagram-YWT4CUSO-gE_sZ0Ak.js} +1 -1
- package/web-shell/assets/{xychartDiagram-2RQKCTM6-su9hp08G.js → xychartDiagram-2RQKCTM6-BwOni53i.js} +1 -1
- package/web-shell/index.html +16 -4
- package/chunks/chunk-6SHO7WFF.js +0 -79
- package/chunks/chunk-IFEWJXFS.js +0 -37
- 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-BNf1dW-j.js +0 -1
- package/web-shell/assets/classDiagram-4FO5ZUOK-uOIGlzgi.js +0 -1
- package/web-shell/assets/classDiagram-v2-Q7XG4LA2-uOIGlzgi.js +0 -1
- package/web-shell/assets/index-CnE2ur2L.js +0 -779
- package/web-shell/assets/index-hSKXrlSE.css +0 -5
- package/web-shell/assets/stateDiagram-v2-BHNVJYJU-Bs4TK_84.js +0 -1
- /package/chunks/{chunk-Y6Z2O3WR.js → chunk-JM7BYJO5.js} +0 -0
|
@@ -686,6 +686,47 @@ var DaemonClient = class {
|
|
|
686
686
|
opts.timeoutMs
|
|
687
687
|
);
|
|
688
688
|
}
|
|
689
|
+
/** @internal */
|
|
690
|
+
async workspaceJsonRequest(workspaceSelector, path, label, opts = {}) {
|
|
691
|
+
return await this.jsonRequest(
|
|
692
|
+
`/workspaces/${workspaceSelector}${path}`,
|
|
693
|
+
label,
|
|
694
|
+
opts
|
|
695
|
+
);
|
|
696
|
+
}
|
|
697
|
+
/** @internal */
|
|
698
|
+
async workspaceNoContentRequest(workspaceSelector, path, label, opts = {}) {
|
|
699
|
+
return await this.fetchWithTimeout(
|
|
700
|
+
`${this.baseUrl}/workspaces/${workspaceSelector}${path}`,
|
|
701
|
+
{
|
|
702
|
+
...opts.method ? { method: opts.method } : {},
|
|
703
|
+
headers: this.headers({}, opts.clientId)
|
|
704
|
+
},
|
|
705
|
+
async (res) => {
|
|
706
|
+
if (res.status === 204) {
|
|
707
|
+
try {
|
|
708
|
+
await res.body?.cancel();
|
|
709
|
+
} catch {
|
|
710
|
+
}
|
|
711
|
+
return;
|
|
712
|
+
}
|
|
713
|
+
if (res.status === 404 && opts.okNotFoundCode) {
|
|
714
|
+
const err = await this.failOnError(res, label);
|
|
715
|
+
const body = err.body;
|
|
716
|
+
if (body?.code === opts.okNotFoundCode) return;
|
|
717
|
+
throw err;
|
|
718
|
+
}
|
|
719
|
+
throw await this.failOnError(res, label);
|
|
720
|
+
},
|
|
721
|
+
opts.timeoutMs
|
|
722
|
+
);
|
|
723
|
+
}
|
|
724
|
+
workspaceById(workspaceId) {
|
|
725
|
+
return new WorkspaceDaemonClient(this, urlEncode(workspaceId));
|
|
726
|
+
}
|
|
727
|
+
workspaceByCwd(workspaceCwd) {
|
|
728
|
+
return new WorkspaceDaemonClient(this, urlEncode(workspaceCwd));
|
|
729
|
+
}
|
|
689
730
|
// -- Lifecycle / discovery ---------------------------------------------
|
|
690
731
|
async health() {
|
|
691
732
|
return await this.fetchWithTimeout(
|
|
@@ -787,6 +828,33 @@ var DaemonClient = class {
|
|
|
787
828
|
}
|
|
788
829
|
);
|
|
789
830
|
}
|
|
831
|
+
async workspaceAcpPreheat(timeoutMs) {
|
|
832
|
+
const serverBudgetMs = timeoutMs ?? 5e3;
|
|
833
|
+
const suffix = timeoutMs !== void 0 ? `?timeoutMs=${encodeURIComponent(timeoutMs)}` : "";
|
|
834
|
+
return await this.fetchWithTimeout(
|
|
835
|
+
`${this.baseUrl}/workspace/acp/preheat${suffix}`,
|
|
836
|
+
{ method: "POST", headers: this.headers() },
|
|
837
|
+
async (res) => {
|
|
838
|
+
if (!res.ok) {
|
|
839
|
+
throw await this.failOnError(res, "POST /workspace/acp/preheat");
|
|
840
|
+
}
|
|
841
|
+
return await res.json();
|
|
842
|
+
},
|
|
843
|
+
serverBudgetMs + 2e3
|
|
844
|
+
);
|
|
845
|
+
}
|
|
846
|
+
async workspaceAcpStatus() {
|
|
847
|
+
return await this.fetchWithTimeout(
|
|
848
|
+
`${this.baseUrl}/workspace/acp/status`,
|
|
849
|
+
{ headers: this.headers() },
|
|
850
|
+
async (res) => {
|
|
851
|
+
if (!res.ok) {
|
|
852
|
+
throw await this.failOnError(res, "GET /workspace/acp/status");
|
|
853
|
+
}
|
|
854
|
+
return await res.json();
|
|
855
|
+
}
|
|
856
|
+
);
|
|
857
|
+
}
|
|
790
858
|
async workspaceProviders() {
|
|
791
859
|
return await this.fetchWithTimeout(
|
|
792
860
|
`${this.baseUrl}/workspace/providers`,
|
|
@@ -2047,6 +2115,32 @@ var DaemonClient = class {
|
|
|
2047
2115
|
opts?.timeoutMs
|
|
2048
2116
|
);
|
|
2049
2117
|
}
|
|
2118
|
+
/**
|
|
2119
|
+
* Reload the daemon-managed channel worker: the daemon stops and relaunches
|
|
2120
|
+
* it so it re-reads settings.json (channels / proxy / per-channel model).
|
|
2121
|
+
* Requires the daemon to have been started with `--channel`; otherwise the
|
|
2122
|
+
* route responds 409. Pre-flight the `channel_reload` capability.
|
|
2123
|
+
*/
|
|
2124
|
+
async reloadChannelWorker(opts) {
|
|
2125
|
+
return await this.fetchWithTimeout(
|
|
2126
|
+
`${this.baseUrl}/workspace/channel/reload`,
|
|
2127
|
+
{
|
|
2128
|
+
method: "POST",
|
|
2129
|
+
headers: this.headers(
|
|
2130
|
+
{ "Content-Type": "application/json" },
|
|
2131
|
+
opts?.clientId
|
|
2132
|
+
),
|
|
2133
|
+
body: "{}"
|
|
2134
|
+
},
|
|
2135
|
+
async (res) => {
|
|
2136
|
+
if (!res.ok) {
|
|
2137
|
+
throw await this.failOnError(res, "POST /workspace/channel/reload");
|
|
2138
|
+
}
|
|
2139
|
+
return await res.json();
|
|
2140
|
+
},
|
|
2141
|
+
opts?.timeoutMs
|
|
2142
|
+
);
|
|
2143
|
+
}
|
|
2050
2144
|
async manageMcpServer(serverName, action, opts) {
|
|
2051
2145
|
return await this.fetchWithTimeout(
|
|
2052
2146
|
`${this.baseUrl}/workspace/mcp/${urlEncode(serverName)}/${urlEncode(action)}`,
|
|
@@ -2714,6 +2808,324 @@ var DaemonClient = class {
|
|
|
2714
2808
|
);
|
|
2715
2809
|
}
|
|
2716
2810
|
};
|
|
2811
|
+
var WorkspaceDaemonClient = class {
|
|
2812
|
+
constructor(client, workspaceSelector) {
|
|
2813
|
+
this.client = client;
|
|
2814
|
+
this.workspaceSelector = workspaceSelector;
|
|
2815
|
+
}
|
|
2816
|
+
static {
|
|
2817
|
+
__name(this, "WorkspaceDaemonClient");
|
|
2818
|
+
}
|
|
2819
|
+
workspaceMcp() {
|
|
2820
|
+
return this.get("/mcp", "GET /workspaces/:workspace/mcp");
|
|
2821
|
+
}
|
|
2822
|
+
workspaceSkills() {
|
|
2823
|
+
return this.get("/skills", "GET /workspaces/:workspace/skills");
|
|
2824
|
+
}
|
|
2825
|
+
workspaceProviders() {
|
|
2826
|
+
return this.get("/providers", "GET /workspaces/:workspace/providers");
|
|
2827
|
+
}
|
|
2828
|
+
workspaceHooks() {
|
|
2829
|
+
return this.get("/hooks", "GET /workspaces/:workspace/hooks");
|
|
2830
|
+
}
|
|
2831
|
+
workspaceEnv() {
|
|
2832
|
+
return this.get("/env", "GET /workspaces/:workspace/env");
|
|
2833
|
+
}
|
|
2834
|
+
workspacePreflight() {
|
|
2835
|
+
return this.get("/preflight", "GET /workspaces/:workspace/preflight");
|
|
2836
|
+
}
|
|
2837
|
+
workspaceTools() {
|
|
2838
|
+
return this.get("/tools", "GET /workspaces/:workspace/tools");
|
|
2839
|
+
}
|
|
2840
|
+
workspaceMemory() {
|
|
2841
|
+
return this.get("/memory", "GET /workspaces/:workspace/memory");
|
|
2842
|
+
}
|
|
2843
|
+
writeWorkspaceMemory(req, clientId) {
|
|
2844
|
+
return this.post(
|
|
2845
|
+
"/memory",
|
|
2846
|
+
"POST /workspaces/:workspace/memory",
|
|
2847
|
+
{ ...req, scope: "workspace" },
|
|
2848
|
+
clientId
|
|
2849
|
+
);
|
|
2850
|
+
}
|
|
2851
|
+
listWorkspaceAgents() {
|
|
2852
|
+
return this.get("/agents", "GET /workspaces/:workspace/agents");
|
|
2853
|
+
}
|
|
2854
|
+
createWorkspaceAgent(req, clientId) {
|
|
2855
|
+
return this.post(
|
|
2856
|
+
"/agents",
|
|
2857
|
+
"POST /workspaces/:workspace/agents",
|
|
2858
|
+
{ ...req, scope: req.scope ?? "workspace" },
|
|
2859
|
+
clientId
|
|
2860
|
+
);
|
|
2861
|
+
}
|
|
2862
|
+
getWorkspaceAgent(agentType) {
|
|
2863
|
+
return this.get(
|
|
2864
|
+
`/agents/${urlEncode(agentType)}`,
|
|
2865
|
+
"GET /workspaces/:workspace/agents/:agentType"
|
|
2866
|
+
);
|
|
2867
|
+
}
|
|
2868
|
+
updateWorkspaceAgent(agentType, req, opts = {}) {
|
|
2869
|
+
const query = opts.scope ? `?scope=${urlEncode(opts.scope)}` : "";
|
|
2870
|
+
return this.post(
|
|
2871
|
+
`/agents/${urlEncode(agentType)}${query}`,
|
|
2872
|
+
"POST /workspaces/:workspace/agents/:agentType",
|
|
2873
|
+
req,
|
|
2874
|
+
opts.clientId
|
|
2875
|
+
);
|
|
2876
|
+
}
|
|
2877
|
+
async deleteWorkspaceAgent(agentType, opts = {}) {
|
|
2878
|
+
const query = opts.scope ? `?scope=${urlEncode(opts.scope)}` : "";
|
|
2879
|
+
return await this.client.workspaceNoContentRequest(
|
|
2880
|
+
this.workspaceSelector,
|
|
2881
|
+
`/agents/${urlEncode(agentType)}${query}`,
|
|
2882
|
+
"DELETE /workspaces/:workspace/agents/:agentType",
|
|
2883
|
+
{
|
|
2884
|
+
method: "DELETE",
|
|
2885
|
+
clientId: opts.clientId,
|
|
2886
|
+
okNotFoundCode: "agent_not_found"
|
|
2887
|
+
}
|
|
2888
|
+
);
|
|
2889
|
+
}
|
|
2890
|
+
listWorkspaceSessionsPage(options) {
|
|
2891
|
+
const requestedPageSize = options?.pageSize ?? DEFAULT_SESSION_LIST_PAGE_SIZE;
|
|
2892
|
+
const pageSize = Math.max(
|
|
2893
|
+
1,
|
|
2894
|
+
Math.min(
|
|
2895
|
+
1e3,
|
|
2896
|
+
Math.round(
|
|
2897
|
+
Number.isFinite(requestedPageSize) ? requestedPageSize : DEFAULT_SESSION_LIST_PAGE_SIZE
|
|
2898
|
+
)
|
|
2899
|
+
)
|
|
2900
|
+
);
|
|
2901
|
+
const query = new URLSearchParams({ size: String(pageSize) });
|
|
2902
|
+
if (options?.cursor !== void 0) query.set("cursor", options.cursor);
|
|
2903
|
+
if (options?.archiveState !== void 0) {
|
|
2904
|
+
query.set("archiveState", options.archiveState);
|
|
2905
|
+
}
|
|
2906
|
+
if (options?.view !== void 0) query.set("view", options.view);
|
|
2907
|
+
if (options?.group !== void 0) query.set("group", options.group);
|
|
2908
|
+
return this.get(
|
|
2909
|
+
`/sessions?${query.toString()}`,
|
|
2910
|
+
"GET /workspaces/:workspace/sessions"
|
|
2911
|
+
);
|
|
2912
|
+
}
|
|
2913
|
+
async listWorkspaceSessions(options) {
|
|
2914
|
+
const page = await this.listWorkspaceSessionsPage(options);
|
|
2915
|
+
return page.sessions;
|
|
2916
|
+
}
|
|
2917
|
+
listSessionGroups() {
|
|
2918
|
+
return this.get(
|
|
2919
|
+
"/session-groups",
|
|
2920
|
+
"GET /workspaces/:workspace/session-groups"
|
|
2921
|
+
);
|
|
2922
|
+
}
|
|
2923
|
+
async createSessionGroup(input) {
|
|
2924
|
+
const body = await this.post(
|
|
2925
|
+
"/session-groups",
|
|
2926
|
+
"POST /workspaces/:workspace/session-groups",
|
|
2927
|
+
input
|
|
2928
|
+
);
|
|
2929
|
+
return body.group;
|
|
2930
|
+
}
|
|
2931
|
+
async updateSessionGroup(groupId, update) {
|
|
2932
|
+
const body = await this.client.workspaceJsonRequest(
|
|
2933
|
+
this.workspaceSelector,
|
|
2934
|
+
`/session-groups/${urlEncode(groupId)}`,
|
|
2935
|
+
"PATCH /workspaces/:workspace/session-groups/:groupId",
|
|
2936
|
+
{ method: "PATCH", body: update }
|
|
2937
|
+
);
|
|
2938
|
+
return body.group;
|
|
2939
|
+
}
|
|
2940
|
+
deleteSessionGroup(groupId) {
|
|
2941
|
+
return this.client.workspaceJsonRequest(
|
|
2942
|
+
this.workspaceSelector,
|
|
2943
|
+
`/session-groups/${urlEncode(groupId)}`,
|
|
2944
|
+
"DELETE /workspaces/:workspace/session-groups/:groupId",
|
|
2945
|
+
{ method: "DELETE" }
|
|
2946
|
+
);
|
|
2947
|
+
}
|
|
2948
|
+
deleteSessionsData(sessionIds, clientId) {
|
|
2949
|
+
return this.post(
|
|
2950
|
+
"/sessions/delete",
|
|
2951
|
+
"POST /workspaces/:workspace/sessions/delete",
|
|
2952
|
+
{ sessionIds },
|
|
2953
|
+
clientId
|
|
2954
|
+
);
|
|
2955
|
+
}
|
|
2956
|
+
archiveSessionsData(sessionIds, clientId) {
|
|
2957
|
+
return this.post(
|
|
2958
|
+
"/sessions/archive",
|
|
2959
|
+
"POST /workspaces/:workspace/sessions/archive",
|
|
2960
|
+
{ sessionIds },
|
|
2961
|
+
clientId
|
|
2962
|
+
);
|
|
2963
|
+
}
|
|
2964
|
+
unarchiveSessionsData(sessionIds, clientId) {
|
|
2965
|
+
return this.post(
|
|
2966
|
+
"/sessions/unarchive",
|
|
2967
|
+
"POST /workspaces/:workspace/sessions/unarchive",
|
|
2968
|
+
{ sessionIds },
|
|
2969
|
+
clientId
|
|
2970
|
+
);
|
|
2971
|
+
}
|
|
2972
|
+
readWorkspaceFile(filePath, opts = {}, clientId) {
|
|
2973
|
+
const query = new URLSearchParams({ path: filePath });
|
|
2974
|
+
if (opts.maxBytes !== void 0)
|
|
2975
|
+
query.set("maxBytes", String(opts.maxBytes));
|
|
2976
|
+
if (opts.line !== void 0) query.set("line", String(opts.line));
|
|
2977
|
+
if (opts.limit !== void 0) query.set("limit", String(opts.limit));
|
|
2978
|
+
return this.get(
|
|
2979
|
+
`/file?${query.toString()}`,
|
|
2980
|
+
"GET /workspaces/:workspace/file",
|
|
2981
|
+
clientId
|
|
2982
|
+
);
|
|
2983
|
+
}
|
|
2984
|
+
readWorkspaceFileBytes(filePath, opts = {}, clientId) {
|
|
2985
|
+
const query = new URLSearchParams({ path: filePath });
|
|
2986
|
+
if (opts.offset !== void 0) query.set("offset", String(opts.offset));
|
|
2987
|
+
if (opts.maxBytes !== void 0)
|
|
2988
|
+
query.set("maxBytes", String(opts.maxBytes));
|
|
2989
|
+
return this.get(
|
|
2990
|
+
`/file/bytes?${query.toString()}`,
|
|
2991
|
+
"GET /workspaces/:workspace/file/bytes",
|
|
2992
|
+
clientId
|
|
2993
|
+
);
|
|
2994
|
+
}
|
|
2995
|
+
fileStat(filePath) {
|
|
2996
|
+
const query = new URLSearchParams({ path: filePath });
|
|
2997
|
+
return this.get(
|
|
2998
|
+
`/stat?${query.toString()}`,
|
|
2999
|
+
"GET /workspaces/:workspace/stat"
|
|
3000
|
+
);
|
|
3001
|
+
}
|
|
3002
|
+
dirList(dirPath) {
|
|
3003
|
+
const query = new URLSearchParams({ path: dirPath });
|
|
3004
|
+
return this.get(
|
|
3005
|
+
`/list?${query.toString()}`,
|
|
3006
|
+
"GET /workspaces/:workspace/list"
|
|
3007
|
+
);
|
|
3008
|
+
}
|
|
3009
|
+
glob(pattern) {
|
|
3010
|
+
const query = new URLSearchParams({ pattern });
|
|
3011
|
+
return this.get(
|
|
3012
|
+
`/glob?${query.toString()}`,
|
|
3013
|
+
"GET /workspaces/:workspace/glob"
|
|
3014
|
+
);
|
|
3015
|
+
}
|
|
3016
|
+
writeWorkspaceFile(req, clientId) {
|
|
3017
|
+
return this.post(
|
|
3018
|
+
"/file/write",
|
|
3019
|
+
"POST /workspaces/:workspace/file/write",
|
|
3020
|
+
req,
|
|
3021
|
+
clientId
|
|
3022
|
+
);
|
|
3023
|
+
}
|
|
3024
|
+
editWorkspaceFile(req, clientId) {
|
|
3025
|
+
return this.post(
|
|
3026
|
+
"/file/edit",
|
|
3027
|
+
"POST /workspaces/:workspace/file/edit",
|
|
3028
|
+
req,
|
|
3029
|
+
clientId
|
|
3030
|
+
);
|
|
3031
|
+
}
|
|
3032
|
+
workspaceSettings(opts) {
|
|
3033
|
+
return this.get(
|
|
3034
|
+
"/settings",
|
|
3035
|
+
"GET /workspaces/:workspace/settings",
|
|
3036
|
+
opts?.clientId
|
|
3037
|
+
);
|
|
3038
|
+
}
|
|
3039
|
+
setWorkspaceSetting(scope, key, value, opts) {
|
|
3040
|
+
return this.post(
|
|
3041
|
+
"/settings",
|
|
3042
|
+
"POST /workspaces/:workspace/settings",
|
|
3043
|
+
{ scope, key, value },
|
|
3044
|
+
opts?.clientId
|
|
3045
|
+
);
|
|
3046
|
+
}
|
|
3047
|
+
workspaceTrust(opts) {
|
|
3048
|
+
return this.get(
|
|
3049
|
+
"/trust",
|
|
3050
|
+
"GET /workspaces/:workspace/trust",
|
|
3051
|
+
opts?.clientId
|
|
3052
|
+
);
|
|
3053
|
+
}
|
|
3054
|
+
requestWorkspaceTrustChange(request, clientId) {
|
|
3055
|
+
return this.post(
|
|
3056
|
+
"/trust/request",
|
|
3057
|
+
"POST /workspaces/:workspace/trust/request",
|
|
3058
|
+
request,
|
|
3059
|
+
clientId
|
|
3060
|
+
);
|
|
3061
|
+
}
|
|
3062
|
+
workspacePermissions(opts) {
|
|
3063
|
+
return this.get(
|
|
3064
|
+
"/permissions",
|
|
3065
|
+
"GET /workspaces/:workspace/permissions",
|
|
3066
|
+
opts?.clientId
|
|
3067
|
+
);
|
|
3068
|
+
}
|
|
3069
|
+
setWorkspacePermissionRules(ruleType, rules, opts) {
|
|
3070
|
+
return this.post(
|
|
3071
|
+
"/permissions",
|
|
3072
|
+
"POST /workspaces/:workspace/permissions",
|
|
3073
|
+
{ scope: "workspace", ruleType, rules: [...rules] },
|
|
3074
|
+
opts?.clientId
|
|
3075
|
+
);
|
|
3076
|
+
}
|
|
3077
|
+
setWorkspaceToolEnabled(toolName, enabled, opts) {
|
|
3078
|
+
return this.post(
|
|
3079
|
+
`/tools/${urlEncode(toolName)}/enable`,
|
|
3080
|
+
"POST /workspaces/:workspace/tools/:name/enable",
|
|
3081
|
+
{ enabled },
|
|
3082
|
+
opts?.clientId
|
|
3083
|
+
);
|
|
3084
|
+
}
|
|
3085
|
+
restartMcpServer(serverName, opts) {
|
|
3086
|
+
const query = opts?.entryIndex === void 0 ? "" : `?entryIndex=${urlEncode(String(opts.entryIndex))}`;
|
|
3087
|
+
return this.post(
|
|
3088
|
+
`/mcp/${urlEncode(serverName)}/restart${query}`,
|
|
3089
|
+
"POST /workspaces/:workspace/mcp/:server/restart",
|
|
3090
|
+
{},
|
|
3091
|
+
opts?.clientId,
|
|
3092
|
+
opts?.timeoutMs ?? MCP_RESTART_DEFAULT_TIMEOUT_MS
|
|
3093
|
+
);
|
|
3094
|
+
}
|
|
3095
|
+
reload(opts) {
|
|
3096
|
+
return this.post(
|
|
3097
|
+
"/reload",
|
|
3098
|
+
"POST /workspaces/:workspace/reload",
|
|
3099
|
+
{},
|
|
3100
|
+
opts?.clientId,
|
|
3101
|
+
opts?.timeoutMs
|
|
3102
|
+
);
|
|
3103
|
+
}
|
|
3104
|
+
initWorkspace(opts) {
|
|
3105
|
+
return this.post(
|
|
3106
|
+
"/init",
|
|
3107
|
+
"POST /workspaces/:workspace/init",
|
|
3108
|
+
opts?.force === true ? { force: true } : {},
|
|
3109
|
+
opts?.clientId
|
|
3110
|
+
);
|
|
3111
|
+
}
|
|
3112
|
+
get(path, label, clientId) {
|
|
3113
|
+
return this.client.workspaceJsonRequest(
|
|
3114
|
+
this.workspaceSelector,
|
|
3115
|
+
path,
|
|
3116
|
+
label,
|
|
3117
|
+
{ clientId }
|
|
3118
|
+
);
|
|
3119
|
+
}
|
|
3120
|
+
post(path, label, body, clientId, timeoutMs) {
|
|
3121
|
+
return this.client.workspaceJsonRequest(
|
|
3122
|
+
this.workspaceSelector,
|
|
3123
|
+
path,
|
|
3124
|
+
label,
|
|
3125
|
+
{ method: "POST", body, clientId, timeoutMs }
|
|
3126
|
+
);
|
|
3127
|
+
}
|
|
3128
|
+
};
|
|
2717
3129
|
function composeAbortSignals2(signals) {
|
|
2718
3130
|
const anyFn = AbortSignal.any;
|
|
2719
3131
|
if (typeof anyFn === "function") return anyFn.call(AbortSignal, signals);
|
|
@@ -3322,6 +3734,11 @@ var DAEMON_KNOWN_EVENT_TYPE_VALUES = [
|
|
|
3322
3734
|
// reseeds state. Synthetic (no `id`) so it doesn't burn a slot
|
|
3323
3735
|
// in the per-session monotonic sequence.
|
|
3324
3736
|
"state_resync_required",
|
|
3737
|
+
// Synthetic marker prepended to a bounded `/session/:id/load` replay
|
|
3738
|
+
// snapshot when older replay history was dropped from the daemon's
|
|
3739
|
+
// in-memory window. This is NOT a resync request: consumers should render
|
|
3740
|
+
// it as transcript status and continue applying the retained snapshot.
|
|
3741
|
+
"history_truncated",
|
|
3325
3742
|
// MCP guardrail push events. See `mcp_guardrail_events` capability
|
|
3326
3743
|
// tag. Both fire on the per-session SSE bus; consumers should
|
|
3327
3744
|
// pre-flight `caps.features.includes('mcp_guardrail_events')`
|
|
@@ -3418,6 +3835,7 @@ var MAX_PENDING_PER_SESSION = 64;
|
|
|
3418
3835
|
var MAX_FORBIDDEN_VOTES_PER_SESSION = 32;
|
|
3419
3836
|
var RESYNC_PASSTHROUGH_TYPES = /* @__PURE__ */ new Set([
|
|
3420
3837
|
"state_resync_required",
|
|
3838
|
+
"history_truncated",
|
|
3421
3839
|
"session_died",
|
|
3422
3840
|
"session_closed",
|
|
3423
3841
|
"client_evicted",
|
|
@@ -3475,6 +3893,8 @@ function createDaemonSessionViewState(seed = {}) {
|
|
|
3475
3893
|
awaitingResync: seed.awaitingResync ?? false,
|
|
3476
3894
|
resyncRequiredCount: seed.resyncRequiredCount ?? 0,
|
|
3477
3895
|
lastResyncRequired: seed.lastResyncRequired,
|
|
3896
|
+
historyTruncatedCount: seed.historyTruncatedCount ?? 0,
|
|
3897
|
+
lastHistoryTruncated: seed.lastHistoryTruncated,
|
|
3478
3898
|
lastFollowupSuggestion: seed.lastFollowupSuggestion,
|
|
3479
3899
|
rewindCount: seed.rewindCount ?? 0,
|
|
3480
3900
|
lastRewind: seed.lastRewind,
|
|
@@ -3537,6 +3957,8 @@ function asKnownDaemonEvent(event) {
|
|
|
3537
3957
|
return isStreamErrorData(event.data) ? event : void 0;
|
|
3538
3958
|
case "state_resync_required":
|
|
3539
3959
|
return isStateResyncRequiredData(event.data) ? event : void 0;
|
|
3960
|
+
case "history_truncated":
|
|
3961
|
+
return isHistoryTruncatedData(event.data) ? event : void 0;
|
|
3540
3962
|
case "mcp_budget_warning":
|
|
3541
3963
|
return isMcpBudgetWarningData(event.data) ? event : void 0;
|
|
3542
3964
|
case "mcp_child_refused_batch":
|
|
@@ -3773,6 +4195,12 @@ function reduceDaemonSessionEvent(state, rawEvent) {
|
|
|
3773
4195
|
resyncRequiredCount: base.resyncRequiredCount + 1,
|
|
3774
4196
|
lastResyncRequired: event.data
|
|
3775
4197
|
};
|
|
4198
|
+
case "history_truncated":
|
|
4199
|
+
return {
|
|
4200
|
+
...base,
|
|
4201
|
+
historyTruncatedCount: base.historyTruncatedCount + 1,
|
|
4202
|
+
lastHistoryTruncated: event.data
|
|
4203
|
+
};
|
|
3776
4204
|
case "mcp_budget_warning":
|
|
3777
4205
|
return {
|
|
3778
4206
|
...base,
|
|
@@ -4136,6 +4564,14 @@ function isStateResyncRequiredData(value) {
|
|
|
4136
4564
|
return isRecord(value) && isNonEmptyString(value["reason"]) && isFiniteNumber(value["lastDeliveredId"]) && isFiniteNumber(value["earliestAvailableId"]);
|
|
4137
4565
|
}
|
|
4138
4566
|
__name(isStateResyncRequiredData, "isStateResyncRequiredData");
|
|
4567
|
+
function isHistoryTruncatedData(value) {
|
|
4568
|
+
if (!isRecord(value) || value["reason"] !== "replay_window_exceeded" || !isFiniteNumber(value["truncatedEvents"]) || !isFiniteNumber(value["retainedEvents"]) || !isFiniteNumber(value["maxBytes"]) || value["fullTranscriptAvailable"] !== false) {
|
|
4569
|
+
return false;
|
|
4570
|
+
}
|
|
4571
|
+
const truncatedTurns = value["truncatedTurns"];
|
|
4572
|
+
return isNonNegativeInteger(value["truncatedEvents"]) && isNonNegativeInteger(value["retainedEvents"]) && isNonNegativeInteger(value["maxBytes"]) && (truncatedTurns === void 0 || isNonNegativeInteger(truncatedTurns));
|
|
4573
|
+
}
|
|
4574
|
+
__name(isHistoryTruncatedData, "isHistoryTruncatedData");
|
|
4139
4575
|
function isSlowClientWarningData(value) {
|
|
4140
4576
|
if (!isRecord(value)) return false;
|
|
4141
4577
|
const threshold = value["threshold"];
|
|
@@ -4372,6 +4808,10 @@ function isOptionalNumberOrNull(value) {
|
|
|
4372
4808
|
return value === void 0 || value === null || isFiniteNumber(value);
|
|
4373
4809
|
}
|
|
4374
4810
|
__name(isOptionalNumberOrNull, "isOptionalNumberOrNull");
|
|
4811
|
+
function isNonNegativeInteger(value) {
|
|
4812
|
+
return isFiniteNumber(value) && Number.isInteger(value) && value >= 0;
|
|
4813
|
+
}
|
|
4814
|
+
__name(isNonNegativeInteger, "isNonNegativeInteger");
|
|
4375
4815
|
function isOptionalStringOrNull(value) {
|
|
4376
4816
|
return value === void 0 || value === null || typeof value === "string";
|
|
4377
4817
|
}
|
|
@@ -4780,6 +5220,8 @@ function normalizeDaemonEvent(event, opts = {}) {
|
|
|
4780
5220
|
}
|
|
4781
5221
|
case "state_resync_required":
|
|
4782
5222
|
return normalizeStateResyncRequired(event, base);
|
|
5223
|
+
case "history_truncated":
|
|
5224
|
+
return normalizeHistoryTruncated(event, base);
|
|
4783
5225
|
case "session_rewound":
|
|
4784
5226
|
return normalizeSessionRewound(event, base);
|
|
4785
5227
|
case "session_branched":
|
|
@@ -4905,6 +5347,24 @@ function normalizeStateResyncRequired(event, base) {
|
|
|
4905
5347
|
];
|
|
4906
5348
|
}
|
|
4907
5349
|
__name(normalizeStateResyncRequired, "normalizeStateResyncRequired");
|
|
5350
|
+
function normalizeHistoryTruncated(event, base) {
|
|
5351
|
+
const reason = getString2(event.data, "reason");
|
|
5352
|
+
const truncatedEvents = numberField(event.data, "truncatedEvents");
|
|
5353
|
+
const retainedEvents = numberField(event.data, "retainedEvents");
|
|
5354
|
+
const maxBytes = numberField(event.data, "maxBytes");
|
|
5355
|
+
if (reason !== "replay_window_exceeded" || truncatedEvents === void 0 || retainedEvents === void 0 || maxBytes === void 0 || isRecord2(event.data) && event.data["fullTranscriptAvailable"] !== false) {
|
|
5356
|
+
return fallbackDebug(event, base, "malformed history_truncated payload");
|
|
5357
|
+
}
|
|
5358
|
+
return [
|
|
5359
|
+
{
|
|
5360
|
+
...base,
|
|
5361
|
+
type: "status",
|
|
5362
|
+
text: `History truncated: retained ${retainedEvents}, dropped ${truncatedEvents} (window ${maxBytes} bytes).`,
|
|
5363
|
+
source: "history_truncated"
|
|
5364
|
+
}
|
|
5365
|
+
];
|
|
5366
|
+
}
|
|
5367
|
+
__name(normalizeHistoryTruncated, "normalizeHistoryTruncated");
|
|
4908
5368
|
function normalizeSessionRewound(event, base) {
|
|
4909
5369
|
const promptId = getString2(event.data, "promptId");
|
|
4910
5370
|
const targetTurnIndex = numberField(event.data, "targetTurnIndex");
|
|
@@ -8643,6 +9103,7 @@ export {
|
|
|
8643
9103
|
PENDING_PROMPT_COMPLETED_EVENT,
|
|
8644
9104
|
PENDING_PROMPT_STARTED_EVENT,
|
|
8645
9105
|
SseFramingError,
|
|
9106
|
+
WorkspaceDaemonClient,
|
|
8646
9107
|
appendLocalUserTranscriptMessage,
|
|
8647
9108
|
asKnownDaemonEvent,
|
|
8648
9109
|
createDaemonAuthState,
|
|
@@ -2,59 +2,61 @@
|
|
|
2
2
|
"use strict";
|
|
3
3
|
import {
|
|
4
4
|
createDaemonStatusProvider
|
|
5
|
-
} from "./chunk-
|
|
6
|
-
import "./chunk-
|
|
5
|
+
} from "./chunk-HDEUQRAR.js";
|
|
6
|
+
import "./chunk-TERKDCOZ.js";
|
|
7
7
|
import "./chunk-KHDZHZMH.js";
|
|
8
|
-
import "./chunk-
|
|
8
|
+
import "./chunk-DDKUYKHA.js";
|
|
9
9
|
import "./chunk-P7M4GA57.js";
|
|
10
|
-
import "./chunk-
|
|
10
|
+
import "./chunk-GGQQA4JW.js";
|
|
11
11
|
import "./chunk-AGHU5VRK.js";
|
|
12
12
|
import "./chunk-ER3BKOLB.js";
|
|
13
|
-
import "./chunk-
|
|
14
|
-
import "./chunk-
|
|
15
|
-
import "./chunk-
|
|
13
|
+
import "./chunk-3UP777ZS.js";
|
|
14
|
+
import "./chunk-GLE2YUPU.js";
|
|
15
|
+
import "./chunk-MG2TNCRX.js";
|
|
16
16
|
import "./chunk-EXPMGZZV.js";
|
|
17
|
-
import "./chunk-
|
|
17
|
+
import "./chunk-PCWSPWXZ.js";
|
|
18
|
+
import "./chunk-I3MBKL6Z.js";
|
|
19
|
+
import "./chunk-VRDMOSQS.js";
|
|
18
20
|
import "./chunk-HLKG6CZN.js";
|
|
19
|
-
import "./chunk-
|
|
21
|
+
import "./chunk-4ONWIT5C.js";
|
|
20
22
|
import "./chunk-43W4YSO6.js";
|
|
21
|
-
import "./chunk-
|
|
23
|
+
import "./chunk-ZDAZSR2O.js";
|
|
22
24
|
import "./chunk-5P5XGNYH.js";
|
|
23
25
|
import "./chunk-SKAZWEV5.js";
|
|
24
26
|
import "./chunk-K5PGHDBN.js";
|
|
25
|
-
import "./chunk-
|
|
27
|
+
import "./chunk-2GUVUHJY.js";
|
|
26
28
|
import "./chunk-W7EEOR7D.js";
|
|
27
29
|
import "./chunk-42XGFRJS.js";
|
|
28
30
|
import "./chunk-X2XNQQJI.js";
|
|
29
|
-
import "./chunk-
|
|
31
|
+
import "./chunk-IAMRWMFU.js";
|
|
30
32
|
import "./chunk-2MPVVENX.js";
|
|
31
33
|
import "./chunk-ZTQ26VBE.js";
|
|
32
|
-
import "./chunk-
|
|
34
|
+
import "./chunk-2SZOMGOR.js";
|
|
33
35
|
import "./chunk-MLZQVCF3.js";
|
|
34
36
|
import "./chunk-LQ7TMOCE.js";
|
|
35
37
|
import "./chunk-E5A7LHNN.js";
|
|
36
|
-
import "./chunk-
|
|
38
|
+
import "./chunk-ZJQBTFJ6.js";
|
|
37
39
|
import "./chunk-GO6LNQXT.js";
|
|
38
40
|
import "./chunk-NQKLOAVJ.js";
|
|
39
41
|
import "./chunk-WMPVYQ4P.js";
|
|
40
42
|
import "./chunk-TLWA7TPR.js";
|
|
41
43
|
import "./chunk-QYNNN7BK.js";
|
|
42
|
-
import "./chunk-
|
|
44
|
+
import "./chunk-5ZVIYNLN.js";
|
|
43
45
|
import "./chunk-E6US47KI.js";
|
|
44
46
|
import "./chunk-UWCTAVOD.js";
|
|
45
47
|
import "./chunk-OFEVLU4C.js";
|
|
46
48
|
import "./chunk-OMX7CUOE.js";
|
|
47
|
-
import "./chunk-
|
|
49
|
+
import "./chunk-OACJLMLD.js";
|
|
48
50
|
import "./chunk-SUAKHHK7.js";
|
|
49
|
-
import "./chunk-
|
|
50
|
-
import "./chunk-
|
|
51
|
+
import "./chunk-NY2ZOFMM.js";
|
|
52
|
+
import "./chunk-KS2FRTYI.js";
|
|
51
53
|
import "./chunk-IJRL2S3D.js";
|
|
52
54
|
import "./chunk-AHNJGLFV.js";
|
|
53
55
|
import "./chunk-22IFUCVR.js";
|
|
54
56
|
import "./chunk-7LTB54MK.js";
|
|
55
57
|
import "./chunk-SIUQ3YYX.js";
|
|
56
58
|
import "./chunk-HW4N45EE.js";
|
|
57
|
-
import "./chunk-
|
|
59
|
+
import "./chunk-SS5P6JM6.js";
|
|
58
60
|
import "./chunk-IRJWHZWU.js";
|
|
59
61
|
import "./chunk-SYCJMSIJ.js";
|
|
60
62
|
import "./chunk-55ZMG67I.js";
|