@qwen-code/qwen-code 0.21.10 → 0.21.11-nightly.20260815.c396fe3d12
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/coordinate/SKILL.md +52 -0
- package/bundled/qc-helper/docs/configuration/model-providers.md +10 -8
- package/bundled/qc-helper/docs/configuration/settings.md +10 -0
- package/bundled/qc-helper/docs/extension/_meta.ts +1 -0
- package/bundled/qc-helper/docs/extension/agent-plugins.md +50 -0
- package/bundled/qc-helper/docs/extension/extension-releasing.md +3 -3
- package/bundled/qc-helper/docs/extension/introduction.md +17 -3
- package/bundled/qc-helper/docs/features/_meta.ts +1 -0
- package/bundled/qc-helper/docs/features/arena.md +4 -3
- package/bundled/qc-helper/docs/features/channels/overview.md +1 -1
- package/bundled/qc-helper/docs/features/channels/plugins.md +11 -11
- package/bundled/qc-helper/docs/features/code-review.md +1 -1
- package/bundled/qc-helper/docs/features/commands.md +7 -6
- package/bundled/qc-helper/docs/features/dual-output.md +5 -0
- package/bundled/qc-helper/docs/features/headless.md +8 -0
- package/bundled/qc-helper/docs/features/multi-agent-coordination.md +30 -0
- package/bundled/qc-helper/docs/qwen-serve.md +105 -40
- package/bundled/review/SKILL.md +72 -43
- package/chunks/{MaxSizedBox-FKXYULMW.js → MaxSizedBox-RRYY7LE5.js} +45 -44
- package/chunks/{StandaloneSessionPicker-OQS3M7AY.js → StandaloneSessionPicker-CK3O3N7F.js} +68 -67
- package/chunks/{acp-startup-profiler-VNTFWYAC.js → acp-startup-profiler-SVPUHLXV.js} +2 -2
- package/chunks/{acpAgent-AGS6HLQQ.js → acpAgent-DXUWYWDM.js} +1889 -640
- package/chunks/{agent-4NCVO27U.js → agent-DEPG4BP7.js} +42 -41
- package/chunks/agent-headless-VLBUWGPP.js +87 -0
- package/chunks/{anthropicContentGenerator-D3Y4RFT4.js → anthropicContentGenerator-YDT4EOKO.js} +8 -8
- package/chunks/{artifact-tool-N652YE4L.js → artifact-tool-4GCQQDZI.js} +2 -2
- package/chunks/{askUserQuestion-ONW74PKJ.js → askUserQuestion-HZJJLR3Z.js} +2 -2
- package/chunks/bridge-U7LETTTF.js +104 -0
- package/chunks/{ca-ZLKAB4K3.js → ca-4CQ6MYNQ.js} +2 -1
- package/chunks/{channel-management-service-PHELKOW2.js → channel-management-service-OADNGQM3.js} +6 -6
- package/chunks/channel-settings-store-B2GRIZ2D.js +102 -0
- package/chunks/{channel-worker-group-WQP4RCDO.js → channel-worker-group-IHBIHQ45.js} +9 -8
- package/chunks/{channel-worker-manager-MRDFAKIM.js → channel-worker-manager-GEHYJ5AE.js} +9 -8
- package/chunks/{channel-worker-supervisor-IVSDIMI4.js → channel-worker-supervisor-ZJIIWM4I.js} +7 -6
- package/chunks/{chunk-26CXSA6V.js → chunk-25VWCPYE.js} +2 -2
- package/chunks/{chunk-DP3IHZGG.js → chunk-2AUM35J5.js} +59 -7
- package/chunks/{chunk-URKIBIFC.js → chunk-2QHWLRQ2.js} +3 -3
- package/chunks/{chunk-4PYCZH2V.js → chunk-2ZWH53I4.js} +3 -3
- package/chunks/{chunk-UVX4Y6IN.js → chunk-3AEKDXKT.js} +1 -1
- package/chunks/{chunk-ABVRJU3D.js → chunk-3ER3FWZM.js} +9 -9
- package/chunks/{chunk-DZUO626D.js → chunk-3GM5DLBI.js} +3 -3
- package/chunks/{chunk-VSFKIRRW.js → chunk-3NBTNFNC.js} +4 -4
- package/chunks/{chunk-NEOXOWYH.js → chunk-3QZY3JSR.js} +7 -7
- package/chunks/{chunk-BKHCW2BI.js → chunk-3VUENPWF.js} +10 -0
- package/chunks/{chunk-67EWJE77.js → chunk-45NQKMYB.js} +1 -1
- package/chunks/{chunk-KKBPOU75.js → chunk-4AOVQPJU.js} +1 -1
- package/chunks/{chunk-OONWZLFK.js → chunk-4EB5GRRC.js} +4 -4
- package/chunks/{chunk-YGT2AUJ7.js → chunk-4KM2SYK5.js} +39 -19
- package/chunks/{chunk-Y3OVRWRY.js → chunk-4N4JVRZA.js} +1 -1
- package/chunks/{chunk-VNNWAZSI.js → chunk-56HVDG3M.js} +6 -6
- package/chunks/{chunk-TRRF5BSP.js → chunk-5C42HXEX.js} +1 -1
- package/chunks/{chunk-J6SZID63.js → chunk-5RUCD4ED.js} +2 -2
- package/chunks/{chunk-WAUGQKUU.js → chunk-63FNZTWG.js} +9 -5
- package/chunks/{chunk-F6WDTQ3M.js → chunk-655DWW7X.js} +5 -5
- package/chunks/{chunk-AAE6SR4Q.js → chunk-7P5NK5EI.js} +1 -1
- package/chunks/{chunk-MZSJ43WV.js → chunk-7U5G6JXI.js} +24 -2
- package/chunks/{chunk-GWVUR3QZ.js → chunk-7WROZ3E6.js} +3 -3
- package/chunks/{chunk-PBRVUF5B.js → chunk-A6NRNRKE.js} +1 -1
- package/chunks/{chunk-IBUGFUXC.js → chunk-A6TJ7QUA.js} +13 -13
- package/chunks/{chunk-DCZEPFB4.js → chunk-ADM4C4TX.js} +3 -3
- package/chunks/{chunk-UBX6NL47.js → chunk-AGWK35OJ.js} +47 -3
- package/chunks/{chunk-4MKXUHXY.js → chunk-AGWZRQJJ.js} +5 -5
- package/chunks/{chunk-GNPNYXJB.js → chunk-AKBFSOC5.js} +2 -2
- package/chunks/{chunk-YWPSGJFI.js → chunk-ARSQPRYL.js} +2 -2
- package/chunks/{chunk-IWTMYQ32.js → chunk-AVKPDOQZ.js} +12 -11
- package/chunks/{chunk-DX3RGJMS.js → chunk-AW27A43Y.js} +76 -19
- package/chunks/{chunk-MIKXJYZB.js → chunk-AZPFLLFR.js} +315 -299
- package/chunks/{chunk-2PLNY5TN.js → chunk-BBCGHZ4S.js} +4 -4
- package/chunks/{chunk-KID7K6H2.js → chunk-BP5VZBVK.js} +6 -6
- package/chunks/{chunk-LLCWZQCU.js → chunk-BRQR2FJ5.js} +3 -3
- package/chunks/{chunk-LHEC5V6G.js → chunk-BSR5AXZR.js} +4 -3
- package/chunks/{chunk-ONSZH6VM.js → chunk-CGM3E75C.js} +2 -2
- package/chunks/{chunk-SEZ556DZ.js → chunk-CPFFU46D.js} +1 -1
- package/chunks/{chunk-H6XPXXMH.js → chunk-CQ35AJ4Z.js} +252 -254
- package/chunks/{chunk-7MH4J33A.js → chunk-D2RNVVH6.js} +2 -2
- package/chunks/{chunk-M6HMMKVG.js → chunk-D7QGE3RT.js} +1 -1
- package/chunks/{chunk-UMD7WQTR.js → chunk-D7VALEOK.js} +13 -9
- package/chunks/chunk-DAV4QFD5.js +1280 -0
- package/chunks/{chunk-B2GJNDTV.js → chunk-DD6O3ZRD.js} +1 -1
- package/chunks/{chunk-HUWENAHO.js → chunk-DEDESZDL.js} +1 -1
- package/chunks/{chunk-3P2LV43B.js → chunk-DG4IQ6JG.js} +3 -3
- package/chunks/{chunk-QUI267ZP.js → chunk-DPTMKFIH.js} +492 -63
- package/chunks/{chunk-Q3JQ7OSU.js → chunk-EJOGLSNJ.js} +1 -1
- package/chunks/{chunk-NRLFZWCT.js → chunk-EQHCHTHC.js} +48 -5
- package/chunks/{chunk-P3BJLFSZ.js → chunk-EQR7YDXY.js} +3 -3
- package/chunks/{chunk-4WL6SY4F.js → chunk-EQUXHAFW.js} +1 -1
- package/chunks/{chunk-Q3AL4JQ3.js → chunk-F5BD3RNA.js} +2 -2
- package/chunks/{chunk-A7XMDZRI.js → chunk-FJYUSD2N.js} +5 -5
- package/chunks/{chunk-JT7XS4YW.js → chunk-FMIH5KMQ.js} +1 -1
- package/chunks/{chunk-ZBVS26BY.js → chunk-FPGTNKCP.js} +7 -5
- package/chunks/{chunk-W5UC37EE.js → chunk-FQDCO3CJ.js} +12 -1
- package/chunks/{chunk-EQL65XGA.js → chunk-FRHQQC2Z.js} +47 -21
- package/chunks/{chunk-FVKHVJZQ.js → chunk-G6MUFRNI.js} +1 -1
- package/chunks/{chunk-D27I6YJT.js → chunk-GB245X4Z.js} +129 -26
- package/chunks/{chunk-WCG5O7IP.js → chunk-GZDWTBT3.js} +2 -2
- package/chunks/{chunk-AOHJKPKL.js → chunk-H7TMVHKE.js} +1 -1
- package/chunks/{chunk-ZJ4W6SUY.js → chunk-HDRTQ5DH.js} +3 -3
- package/chunks/{chunk-ZZCWJWTF.js → chunk-HG3UBTJ4.js} +31 -11
- package/chunks/chunk-HHJLM3WQ.js +41 -0
- package/chunks/{chunk-6LP743KE.js → chunk-HHZU6ZZM.js} +79 -113
- package/chunks/{chunk-OIVKILPI.js → chunk-HOSVOUDK.js} +74 -0
- package/chunks/{chunk-DA4HRSBW.js → chunk-HTYND72J.js} +1 -1
- package/chunks/{chunk-ZRBMO3C7.js → chunk-IKFHTAQW.js} +1 -1
- package/chunks/{chunk-KZ22NXBY.js → chunk-IVROQYG5.js} +4 -4
- package/chunks/{chunk-UDXSXLER.js → chunk-IW6RQPQB.js} +14 -4
- package/chunks/{chunk-F24A2JBM.js → chunk-J6JVP7ZZ.js} +1180 -254
- package/chunks/{chunk-ECWR5LQR.js → chunk-JB6IM2TJ.js} +3 -3
- package/chunks/{chunk-MVUQRLOH.js → chunk-JRIVMPD2.js} +3 -3
- package/chunks/{chunk-Q7YDKOGY.js → chunk-JVEGA3MM.js} +1 -1
- package/chunks/{chunk-4TRQPFDP.js → chunk-K34GJQOZ.js} +140 -20
- package/chunks/{chunk-W4RQUHY3.js → chunk-K5IDV3PC.js} +184 -22
- package/chunks/{chunk-NDU63YLI.js → chunk-KD6FGI2Q.js} +4 -4
- package/chunks/{chunk-HV76SFIA.js → chunk-KEC5FHLM.js} +3 -3
- package/chunks/{chunk-IIJEYBNH.js → chunk-KLOMACIR.js} +197 -60
- package/chunks/{chunk-Z4JX4NSH.js → chunk-KSPRBJJ3.js} +50 -50
- package/chunks/{chunk-KONVMRK7.js → chunk-KX5TNFCJ.js} +1 -1
- package/chunks/{chunk-QGNOFE5E.js → chunk-KX7PC5QG.js} +1 -1
- package/chunks/{chunk-OJUQF2PL.js → chunk-LEKKQEQW.js} +5 -5
- package/chunks/{chunk-COBO5EBO.js → chunk-LSRI3ND3.js} +1 -1
- package/chunks/{chunk-BSI645OU.js → chunk-LUISTZXI.js} +3 -3
- package/chunks/{chunk-YTFDX4PR.js → chunk-M6NDLY2T.js} +1 -1
- package/chunks/{chunk-EBZ6BJTF.js → chunk-MNUKNVYQ.js} +1 -1
- package/chunks/{chunk-VFMASYQA.js → chunk-MS7GNABG.js} +3 -0
- package/chunks/{chunk-EI3NWELG.js → chunk-MSSNVG2G.js} +6430 -4463
- package/chunks/{chunk-L2AFWWJE.js → chunk-N4SVADAV.js} +351 -144
- package/chunks/{chunk-URK542T4.js → chunk-NF5J2WFA.js} +15 -2
- package/chunks/{chunk-EI3HZX6C.js → chunk-NLFLYSS4.js} +1 -1
- package/chunks/{chunk-NV3F44FL.js → chunk-NW2GIPG3.js} +2 -2
- package/chunks/{chunk-OQTXYMKW.js → chunk-NX4A23LY.js} +3 -3
- package/chunks/{chunk-E2FPSSKP.js → chunk-OK47XBYH.js} +97 -10
- package/chunks/{chunk-EKPKKXY2.js → chunk-OWGRUU7F.js} +1 -1
- package/chunks/{chunk-CTJLZLB5.js → chunk-OYWVIXHT.js} +1 -1
- package/chunks/{chunk-47PEPJO7.js → chunk-P7PSGVWP.js} +3 -3
- package/chunks/{chunk-6Q5ABMTU.js → chunk-PTSEETCO.js} +23 -19
- package/chunks/{chunk-6ZRFAKXK.js → chunk-PVXEJB66.js} +1 -1
- package/chunks/{chunk-EUNWC2VS.js → chunk-PZW46OTB.js} +2 -2
- package/chunks/{chunk-QSWDGAIC.js → chunk-QILD6R27.js} +1 -1
- package/chunks/{chunk-CKASRHZI.js → chunk-QLTATTPS.js} +1 -1
- package/chunks/{chunk-2UUMVNYT.js → chunk-QPBFRWCP.js} +3 -3
- package/chunks/{chunk-QJMOAMXT.js → chunk-QQSXM3FE.js} +8 -8
- package/chunks/{chunk-AEL7KN2O.js → chunk-RN7GFREP.js} +2 -2
- package/chunks/{chunk-AQAJJMRR.js → chunk-RYSBWLLV.js} +1 -1
- package/chunks/{chunk-MFDYOYZZ.js → chunk-SYHXR6WM.js} +26 -3
- package/chunks/{chunk-SR7RZ4MS.js → chunk-TB4YFWXG.js} +2 -2
- package/chunks/{chunk-IRZ2ZH72.js → chunk-TCMU4ZUE.js} +4 -4
- package/chunks/{chunk-OWMAZHIX.js → chunk-TMFWI4RC.js} +1 -1
- package/chunks/{chunk-TZEZYNYD.js → chunk-TQDFSQQF.js} +1 -1
- package/chunks/{chunk-IA7TGCN2.js → chunk-TTRH3RTQ.js} +4 -4
- package/chunks/{chunk-PJRW65JO.js → chunk-TXP5NGG3.js} +1 -1
- package/chunks/{chunk-VWKER4ZH.js → chunk-ULJGMSG5.js} +3 -3
- package/chunks/{chunk-2FRY5CRX.js → chunk-ULNWG62W.js} +3 -3
- package/chunks/{chunk-XVHYA33G.js → chunk-URYJYT5W.js} +4 -4
- package/chunks/{chunk-7GTMV7UE.js → chunk-US7J7LJT.js} +10786 -4462
- package/chunks/{chunk-HGCQ5SE7.js → chunk-UXEO7E3V.js} +21 -0
- package/chunks/{chunk-NV65ZUVM.js → chunk-VKT2R3NB.js} +1 -1
- package/chunks/{chunk-CPG6P4GG.js → chunk-VPV7WBVT.js} +1 -1
- package/chunks/{chunk-QG3FFJYU.js → chunk-VXSD4AGT.js} +1 -1
- package/chunks/{chunk-XCGIMOLN.js → chunk-WCCLLK7X.js} +14 -1
- package/chunks/{chunk-VJNBRRZG.js → chunk-WZMH7II3.js} +1 -1
- package/chunks/{chunk-5MZCSWI4.js → chunk-WZRLXVLJ.js} +1185 -1451
- package/chunks/{chunk-YF5MALI4.js → chunk-X5QJFMLY.js} +21 -17
- package/chunks/{chunk-DREZZAZM.js → chunk-XDRXOSAD.js} +13 -5
- package/chunks/{chunk-FOGU3LJX.js → chunk-YBHUXEC6.js} +1 -1
- package/chunks/{chunk-GM463R2B.js → chunk-YBVVOSOH.js} +1 -1
- package/chunks/{chunk-PYQADEFD.js → chunk-YIGGWOJE.js} +1 -1
- package/chunks/{chunk-XCWO3SMQ.js → chunk-YILJKX2T.js} +3 -3
- package/chunks/{chunk-Y4R47ZUH.js → chunk-YM3I6VW5.js} +7 -7
- package/chunks/{chunk-OCSFNUU4.js → chunk-YMALTWIZ.js} +13 -11
- package/chunks/{chunk-WOJZWRAZ.js → chunk-YRLW2MSX.js} +1 -1
- package/chunks/{chunk-UEOKWYGY.js → chunk-YYIOFWVH.js} +11 -11
- package/chunks/chunk-Z7B6SRPM.js +32 -0
- package/chunks/{chunk-S6HYI3MF.js → chunk-ZBB5EZZV.js} +2 -2
- package/chunks/{chunk-VKJ4KTPJ.js → chunk-ZLCT4C5A.js} +1 -1
- package/chunks/{chunk-O3EU6GMH.js → chunk-ZO37CAQH.js} +27 -4
- package/chunks/{computer-use-WQFK33Z3.js → computer-use-TMDO6TEC.js} +42 -41
- package/chunks/{config-utils-ULCSRMWD.js → config-utils-Z3OW3IQG.js} +6 -6
- package/chunks/{contextCommand-7EOZND7C.js → contextCommand-IUQ6G5ES.js} +44 -43
- package/chunks/{core-runtime-FGMQRM6E.js → core-runtime-HAZLPQXI.js} +42 -41
- package/chunks/{create-sub-session-QM2K5HLZ.js → create-sub-session-GREIOIZU.js} +42 -41
- package/chunks/{create-sub-session-QIDZUOPU.js → create-sub-session-XT6DLYOE.js} +2 -2
- package/chunks/{cron-create-VONA5JYY.js → cron-create-2JZ2TWTF.js} +4 -4
- package/chunks/{cron-delete-5JXSP2MI.js → cron-delete-CTPD2P26.js} +4 -4
- package/chunks/{cron-list-KE4F2CIR.js → cron-list-V44KHAF6.js} +4 -4
- package/chunks/{daemon-GWD7BT6E.js → daemon-GED37WOX.js} +216 -9
- package/chunks/daemon-git-worktree-guard-BSKVBYPM.js +2062 -0
- package/chunks/daemon-status-provider-7UK2DVVN.js +102 -0
- package/chunks/daemon-trust-policy-BZEALQSM.js +99 -0
- package/chunks/{daemon-trust-policy-monitor-6UKEABN5.js → daemon-trust-policy-monitor-P7OM342T.js} +49 -48
- package/chunks/{de-LIW4XVLN.js → de-UBEBKG6V.js} +2 -1
- package/chunks/{deferred-core-runtime-67GJXHXS.js → deferred-core-runtime-MTDXZT6B.js} +42 -41
- package/chunks/{display-image-NQRSIBXM.js → display-image-M2ELAVN4.js} +4 -4
- package/chunks/{dist-OTUO3AS2.js → dist-4ZPG4BY6.js} +13 -5
- package/chunks/{dist-B2CGTW6T.js → dist-BROOP2EG.js} +3 -3
- package/chunks/{dist-EZE3V3Q7.js → dist-IYYN3RUT.js} +3 -3
- package/chunks/{dist-3NTTUAHT.js → dist-JWMKPWT5.js} +5 -3
- package/chunks/{dist-Z3CS4OVP.js → dist-K7IQB53U.js} +11 -5
- package/chunks/{dist-J47AXBZC.js → dist-MAQXAQ2Y.js} +3 -3
- package/chunks/{dist-6BMOAE3Z.js → dist-WJ4BHIEW.js} +4 -4
- package/chunks/{dist-EWW3J4HQ.js → dist-YEPL4RAW.js} +3 -3
- package/chunks/{earlyInputCapture-IWMYR6OB.js → earlyInputCapture-BGZYFN2F.js} +43 -42
- package/chunks/{edit-ZFGROCAF.js → edit-ASQVJARF.js} +45 -43
- package/chunks/{en-SY5GTIGX.js → en-X6YV7GME.js} +2 -1
- package/chunks/{enter-worktree-TZZZCDM5.js → enter-worktree-WIUNMC64.js} +42 -41
- package/chunks/{enterPlanMode-U77BI3R6.js → enterPlanMode-TUBB2L7O.js} +42 -41
- package/chunks/{environment-HC37DS2I.js → environment-RWSNEY4T.js} +45 -44
- package/chunks/{errors-6AG54JPD.js → errors-44QVVNGT.js} +44 -43
- package/chunks/{exit-worktree-UYYWFPNK.js → exit-worktree-WPBRPIRR.js} +42 -41
- package/chunks/exitPlanMode-AP7J626M.js +85 -0
- package/chunks/{external-tool-guard-provider-5HTGOPGU.js → external-tool-guard-provider-TE4DRY36.js} +1 -1
- package/chunks/{fast-path-F5FSZ3O7.js → fast-path-XG5KXXLS.js} +6 -6
- package/chunks/{fast-path-settings-RPAVBD7P.js → fast-path-settings-LNOFM2YP.js} +2 -2
- package/chunks/{fr-RQFO7U4P.js → fr-VENTC2BS.js} +2 -1
- package/chunks/{gemini-NKQHYM36.js → gemini-PGXORAFF.js} +112 -103
- package/chunks/{geminiContentGenerator-HCWZOUX3.js → geminiContentGenerator-ZQVVD4J4.js} +6 -6
- package/chunks/{glob-3PDXKBAO.js → glob-Q6LWKMBU.js} +42 -41
- package/chunks/{goal-tools-SWNB6GP4.js → goal-tools-M4UDAZXP.js} +4 -4
- package/chunks/{grep-5HZKZYVD.js → grep-C67Z35I4.js} +42 -41
- package/chunks/handleAutoUpdate-75L74MB4.js +94 -0
- package/chunks/{i18n-Q27KKNDL.js → i18n-GYUC23UJ.js} +43 -42
- package/chunks/{image-gen-2Z2RJ6W7.js → image-gen-XE56S4MG.js} +10 -10
- package/chunks/initializer-V7XZVY35.js +100 -0
- package/chunks/{installationInfo-XXB75T7O.js → installationInfo-S5PPSD7T.js} +43 -42
- package/chunks/{ja-KOZKHJHZ.js → ja-QHT4EQTO.js} +2 -1
- package/chunks/{keychain-token-storage-TVAMTNP7.js → keychain-token-storage-NKKCUHI2.js} +2 -2
- package/chunks/list-JJ2FB7SP.js +103 -0
- package/chunks/{list-agents-Z4WABFDZ.js → list-agents-O6WSY4CT.js} +2 -2
- package/chunks/loadedSettingsAdapter-LNUDRGW5.js +97 -0
- package/chunks/{loggingContentGenerator-6NTFBM7Q.js → loggingContentGenerator-HCJ2DX2S.js} +162 -112
- package/chunks/{loop-wakeup-UZ5RL5Y2.js → loop-wakeup-GVQRMUKS.js} +5 -5
- package/chunks/{ls-TVHDGIES.js → ls-6W2D7TKU.js} +4 -4
- package/chunks/{lsp-CVN6OQPI.js → lsp-NJ4KFBI2.js} +2 -2
- package/chunks/{managed-npm-update-SPHYQUWZ.js → managed-npm-update-MDF2JDTH.js} +45 -44
- package/chunks/mcp-M5OML5FI.js +97 -0
- package/chunks/{monitor-ZBBPAA54.js → monitor-U5NM5ONC.js} +42 -41
- package/chunks/nonInteractiveCli-TX3QP7JT.js +163 -0
- package/chunks/{notebook-edit-5W3FW7Z2.js → notebook-edit-Q7SUR44R.js} +42 -41
- package/chunks/{openaiContentGenerator-TQANPEVZ.js → openaiContentGenerator-2H5CYLXP.js} +29 -29
- package/chunks/{pidfile-EQOBLH4E.js → pidfile-SHSMSAZR.js} +43 -42
- package/chunks/{processUtils-7XQG7EHS.js → processUtils-GZAP6EYW.js} +2 -2
- package/chunks/{pt-U6AOCTMF.js → pt-VL3I5RNY.js} +2 -1
- package/chunks/{qwenContentGenerator-BKCPHHXU.js → qwenContentGenerator-2624VVZH.js} +48 -48
- package/chunks/{qwenOAuth2-BJ6PQKE6.js → qwenOAuth2-AAWH3C7N.js} +9 -9
- package/chunks/read-file-ZWGQE2TE.js +32 -0
- package/chunks/{read-mcp-resource-PZ4ZF6YL.js → read-mcp-resource-GWCP23WG.js} +2 -2
- package/chunks/{read-package-up-TCM6I7S2.js → read-package-up-K6RKTL5D.js} +1 -1
- package/chunks/{record-artifact-P4HFMS7X.js → record-artifact-IYQDEYMV.js} +3 -3
- package/chunks/{resumeHistoryUtils-6N6XGJJW.js → resumeHistoryUtils-7N2H4QCU.js} +50 -49
- package/chunks/ripGrep-6JGJDWYB.js +85 -0
- package/chunks/{ru-CMX4UMYP.js → ru-4RCKL4PY.js} +2 -1
- package/chunks/{run-qwen-serve-BCKBCAMX.js → run-qwen-serve-2A6RHHI7.js} +197 -90
- package/chunks/{runtime-E2437YKL.js → runtime-NPYVZVRI.js} +55 -54
- package/chunks/{scheduler-K3D5Z655.js → scheduler-UMKTEQAM.js} +44 -43
- package/chunks/{sdk-exporters-http-XVTZQRCE.js → sdk-exporters-http-NHBYB5FZ.js} +11 -7
- package/chunks/{sdk-impl-7W7AKCS4.js → sdk-impl-SK4P5WON.js} +13 -10
- package/chunks/{send-message-CAMSLG2L.js → send-message-O7FO63UK.js} +6 -6
- package/chunks/serve-LYADPWRV.js +107 -0
- package/chunks/{server-UD6INW7J.js → server-WMVPH4G4.js} +1137 -382
- package/chunks/{session-GR4ZEVW4.js → session-LE6O62ZE.js} +122 -102
- package/chunks/{settings-5O24D3OJ.js → settings-2IPZYYGS.js} +48 -47
- package/chunks/{shell-UTLWLG5G.js → shell-VOBAZFFI.js} +42 -41
- package/chunks/{skill-QQAZL4VO.js → skill-6LKOWJV4.js} +19 -19
- package/chunks/{skill-settings-P3YHJVBZ.js → skill-settings-J5IHQA7L.js} +48 -47
- package/chunks/spawnChannel-TLW7N3SM.js +98 -0
- package/chunks/{standalone-update-QP742MGP.js → standalone-update-6OFPUBEM.js} +44 -43
- package/chunks/{startInteractiveUI-YCS6AEPN.js → startInteractiveUI-KVHNCR2L.js} +836 -444
- package/chunks/{syntheticOutput-PEBJQYJV.js → syntheticOutput-DVHJMUGV.js} +3 -3
- package/chunks/{task-create-5NWCQSJF.js → task-create-4NC7PDI4.js} +10 -10
- package/chunks/{task-list-53265TRZ.js → task-list-LBSRMOC7.js} +5 -5
- package/chunks/{task-stop-FPCOIRYX.js → task-stop-YFNATTIM.js} +2 -2
- package/chunks/{task-update-5HN577LS.js → task-update-BPLM52GD.js} +10 -10
- package/chunks/{team-create-WFH7OCDQ.js → team-create-INCC7G74.js} +44 -43
- package/chunks/{team-delete-MMQB4OSC.js → team-delete-MKYMYBFM.js} +5 -5
- package/chunks/{team-plan-approval-EGTT53MV.js → team-plan-approval-6DCWGZQ4.js} +42 -41
- package/chunks/{terminal-image-renderer-BWRESAQ7.js → terminal-image-renderer-O5EDW64G.js} +44 -43
- package/chunks/theme-manager-NZZO4SWE.js +89 -0
- package/chunks/{todoWrite-JGV6VLOX.js → todoWrite-K5K7NRE5.js} +4 -4
- package/chunks/{tool-search-TI5PTIBF.js → tool-search-JB2PXD5P.js} +19 -19
- package/chunks/total-session-admission-NWNMU6AW.js +99 -0
- package/chunks/{trustedFolders-4KYHA4IG.js → trustedFolders-A5ZWRRSP.js} +43 -42
- package/chunks/{update-relaunch-WB6LGIF2.js → update-relaunch-GG7EDBEA.js} +5 -5
- package/chunks/{updateCheck-LOS5GYFC.js → updateCheck-P6JJ4MBU.js} +48 -47
- package/chunks/{useAutoAcceptIndicator-MHAPY52L.js → useAutoAcceptIndicator-KV2AANVG.js} +53 -52
- package/chunks/{validateNonInterActiveAuth-QV22HNQU.js → validateNonInterActiveAuth-HXRCYXY7.js} +89 -88
- package/chunks/{version-DALWZHKQ.js → version-HH5V762G.js} +2 -2
- package/chunks/{web-fetch-JMJVMYFE.js → web-fetch-LVXPFB5O.js} +19 -19
- package/chunks/{web-search-DNDUIPU5.js → web-search-4E234FSM.js} +11 -11
- package/chunks/{workflow-JGNN64PM.js → workflow-GUE6WIMP.js} +117 -50
- package/chunks/workspace-providers-status-TUWLGJOF.js +100 -0
- package/chunks/{workspace-registration-store-LRJG7QA4.js → workspace-registration-store-22XXHPKR.js} +1 -1
- package/chunks/{workspace-registry-KVXIFM36.js → workspace-registry-HUFJF5W5.js} +50 -49
- package/chunks/{workspace-service-PO4AAKKT.js → workspace-service-NAGTBJXJ.js} +54 -53
- package/chunks/workspace-skills-status-LWDBXAQI.js +100 -0
- package/chunks/{workspace-trust-reconciler-DOZPCVHG.js → workspace-trust-reconciler-DLWV2ZO6.js} +57 -56
- package/chunks/write-file-QVHVOKKR.js +87 -0
- package/chunks/{zh-AGL2FVBI.js → zh-LMSTK4WD.js} +2 -1
- package/chunks/{zh-TW-KI66MHQY.js → zh-TW-SQ4HTSCW.js} +2 -1
- package/chunks/{zoom-image-CNC77ZMA.js → zoom-image-CJDXYWJH.js} +15 -15
- package/cli.js +18 -17
- package/locales/ca.js +1 -0
- package/locales/de.js +1 -0
- package/locales/en.js +1 -0
- package/locales/fr.js +1 -0
- package/locales/ja.js +1 -0
- package/locales/pt.js +1 -0
- package/locales/ru.js +1 -0
- package/locales/zh-TW.js +1 -0
- package/locales/zh.js +1 -0
- package/package.json +4 -4
- package/web-shell/assets/{arc-CDk0d60K.js → arc-DagtOPoO.js} +1 -1
- package/web-shell/assets/{architectureDiagram-3BPJPVTR-h-W3I2lP.js → architectureDiagram-3BPJPVTR-Dc3kGCBm.js} +1 -1
- package/web-shell/assets/{blockDiagram-GPEHLZMM-D1pvSmZg.js → blockDiagram-GPEHLZMM-BUZvQLL_.js} +1 -1
- package/web-shell/assets/{c4Diagram-AAUBKEIU-ByAm5ZNf.js → c4Diagram-AAUBKEIU-BbBgCu9K.js} +1 -1
- package/web-shell/assets/channel-aMHKHCQ2.js +1 -0
- package/web-shell/assets/{chunk-2J33WTMH-VrGPPOGV.js → chunk-2J33WTMH-CZ4miMNB.js} +1 -1
- package/web-shell/assets/{chunk-4BX2VUAB-B7hTowgG.js → chunk-4BX2VUAB-B2_qQSGx.js} +1 -1
- package/web-shell/assets/{chunk-55IACEB6-j1Fq8DpE.js → chunk-55IACEB6-EdmTwZW7.js} +1 -1
- package/web-shell/assets/{chunk-727SXJPM-UjABYpF2.js → chunk-727SXJPM-l2EpyrLV.js} +1 -1
- package/web-shell/assets/{chunk-AQP2D5EJ-D4uBItrs.js → chunk-AQP2D5EJ-0q9sx5lV.js} +1 -1
- package/web-shell/assets/{chunk-FMBD7UC4-DeFbKlb8.js → chunk-FMBD7UC4-CbGnA4Dp.js} +1 -1
- package/web-shell/assets/{chunk-ND2GUHAM-rQJ8TIgT.js → chunk-ND2GUHAM-D8JBELgZ.js} +1 -1
- package/web-shell/assets/{chunk-QZHKN3VN-DAGcRxvq.js → chunk-QZHKN3VN-DQMpGGOO.js} +1 -1
- package/web-shell/assets/classDiagram-4FO5ZUOK-zASpLzDx.js +1 -0
- package/web-shell/assets/classDiagram-v2-Q7XG4LA2-zASpLzDx.js +1 -0
- package/web-shell/assets/{cose-bilkent-S5V4N54A-MaE7MJSt.js → cose-bilkent-S5V4N54A-DzM-ZRsM.js} +1 -1
- package/web-shell/assets/{dagre-BM42HDAG-DzijYGSb.js → dagre-BM42HDAG-uxLS-TtN.js} +1 -1
- package/web-shell/assets/{diagram-2AECGRRQ-WdbG7WnX.js → diagram-2AECGRRQ-DH7Gnqzr.js} +1 -1
- package/web-shell/assets/{diagram-5GNKFQAL-NYutsBnw.js → diagram-5GNKFQAL-B2TngKRK.js} +1 -1
- package/web-shell/assets/{diagram-KO2AKTUF-Dqg0eBY0.js → diagram-KO2AKTUF-DQ61-HiV.js} +1 -1
- package/web-shell/assets/{diagram-LMA3HP47-C7vRP2Lb.js → diagram-LMA3HP47-By6qvgAT.js} +1 -1
- package/web-shell/assets/{diagram-OG6HWLK6-B2sEPpPt.js → diagram-OG6HWLK6-ClVSEz-3.js} +1 -1
- package/web-shell/assets/{erDiagram-TEJ5UH35-a4zIbzm8.js → erDiagram-TEJ5UH35-C9gFc5Fg.js} +1 -1
- package/web-shell/assets/{flowDiagram-I6XJVG4X-BK9y89ya.js → flowDiagram-I6XJVG4X-BWPLLJ5-.js} +1 -1
- package/web-shell/assets/{ganttDiagram-6RSMTGT7-wUQTSNvV.js → ganttDiagram-6RSMTGT7-C6RMacQQ.js} +1 -1
- package/web-shell/assets/{gitGraphDiagram-PVQCEYII-Dnzt4SAi.js → gitGraphDiagram-PVQCEYII-LnqiWuka.js} +1 -1
- package/web-shell/assets/index---fOcMdS.js +1789 -0
- package/web-shell/assets/{index-BA3wUcKL.js → index-B9iqcrv0.js} +1 -1
- package/web-shell/assets/index-BIGQygTL.css +5 -0
- package/web-shell/assets/{infoDiagram-5YYISTIA-DcaoToij.js → infoDiagram-5YYISTIA-Bc4iS8YB.js} +1 -1
- package/web-shell/assets/{ishikawaDiagram-YF4QCWOH-DzduqhP2.js → ishikawaDiagram-YF4QCWOH-9pH4Dpnd.js} +1 -1
- package/web-shell/assets/{journeyDiagram-JHISSGLW-BvviZR_O.js → journeyDiagram-JHISSGLW-C-YMnw2W.js} +1 -1
- package/web-shell/assets/{kanban-definition-UN3LZRKU-Efm2JxY3.js → kanban-definition-UN3LZRKU-D-PaAIp-.js} +1 -1
- package/web-shell/assets/{linear-DtY3IbOs.js → linear-DpLgI2kt.js} +1 -1
- package/web-shell/assets/{mermaid.core-PzpFqoMe.js → mermaid.core-nZbOHGxx.js} +5 -5
- package/web-shell/assets/{mindmap-definition-RKZ34NQL-BLlTkHS0.js → mindmap-definition-RKZ34NQL-Dq0xxnET.js} +1 -1
- package/web-shell/assets/{pieDiagram-4H26LBE5-D-mKF-jE.js → pieDiagram-4H26LBE5-ctqG2eeF.js} +1 -1
- package/web-shell/assets/{quadrantDiagram-W4KKPZXB-DYCzslGm.js → quadrantDiagram-W4KKPZXB-MivToddn.js} +1 -1
- package/web-shell/assets/{requirementDiagram-4Y6WPE33-Dfpxlk7R.js → requirementDiagram-4Y6WPE33-DrLLnkpQ.js} +1 -1
- package/web-shell/assets/{sankeyDiagram-5OEKKPKP-D5cRaaxh.js → sankeyDiagram-5OEKKPKP-sYdYhdpV.js} +1 -1
- package/web-shell/assets/{sequenceDiagram-3UESZ5HK-s04DReiS.js → sequenceDiagram-3UESZ5HK-CuvhxDOs.js} +1 -1
- package/web-shell/assets/{stateDiagram-AJRCARHV-01UNFgnb.js → stateDiagram-AJRCARHV-BLZgbV7Q.js} +1 -1
- package/web-shell/assets/stateDiagram-v2-BHNVJYJU-DR_gXrIC.js +1 -0
- package/web-shell/assets/{timeline-definition-PNZ67QCA-DX8_wZBC.js → timeline-definition-PNZ67QCA-lNr2Uz_Q.js} +1 -1
- package/web-shell/assets/{vennDiagram-CIIHVFJN-BK0FlBme.js → vennDiagram-CIIHVFJN-CoaexGVO.js} +1 -1
- package/web-shell/assets/{wardley-L42UT6IY-DkPc9UlD.js → wardley-L42UT6IY-DG1vhGKA.js} +1 -1
- package/web-shell/assets/{wardleyDiagram-YWT4CUSO-DNKkpDAo.js → wardleyDiagram-YWT4CUSO-CqNjF5xC.js} +1 -1
- package/web-shell/assets/{xychartDiagram-2RQKCTM6-CiPwg8QG.js → xychartDiagram-2RQKCTM6-BXg1gx3C.js} +1 -1
- package/web-shell/index.html +2 -2
- package/chunks/agent-headless-HYEHZFH6.js +0 -86
- package/chunks/bridge-FHINXZMN.js +0 -103
- package/chunks/channel-settings-store-OXYG5S5X.js +0 -101
- package/chunks/chunk-I5VM3SKY.js +0 -451
- package/chunks/chunk-PDPFQ2FO.js +0 -156
- package/chunks/daemon-status-provider-L3J6GKCT.js +0 -102
- package/chunks/daemon-trust-policy-4PHPY23S.js +0 -98
- package/chunks/exitPlanMode-RWJR2KGB.js +0 -84
- package/chunks/handleAutoUpdate-NHFSGYTF.js +0 -93
- package/chunks/initializer-Y5DJLT43.js +0 -99
- package/chunks/list-YHNQ32CS.js +0 -102
- package/chunks/loadedSettingsAdapter-GHUQK7H4.js +0 -96
- package/chunks/mcp-EA3KO6FS.js +0 -96
- package/chunks/nonInteractiveCli-NNOR56HU.js +0 -162
- package/chunks/read-file-KKTXGIZD.js +0 -32
- package/chunks/ripGrep-SJVAAYDV.js +0 -84
- package/chunks/serve-IH4XR5IL.js +0 -106
- package/chunks/spawnChannel-UAQMH6Y6.js +0 -94
- package/chunks/theme-manager-ZNDGAHJN.js +0 -88
- package/chunks/total-session-admission-66UDSOHO.js +0 -98
- package/chunks/workspace-providers-status-K22B3Z6B.js +0 -99
- package/chunks/workspace-skills-status-DDYCBVSH.js +0 -99
- package/chunks/write-file-TT6MWIKC.js +0 -86
- package/web-shell/assets/channel-DPFUV4oi.js +0 -1
- package/web-shell/assets/classDiagram-4FO5ZUOK-CLm0hVvw.js +0 -1
- package/web-shell/assets/classDiagram-v2-Q7XG4LA2-CLm0hVvw.js +0 -1
- package/web-shell/assets/index-BjC3yjjL.css +0 -5
- package/web-shell/assets/index-QzFq6w7o.js +0 -1775
- package/web-shell/assets/stateDiagram-v2-BHNVJYJU-DXb5olqv.js +0 -1
|
@@ -3,16 +3,16 @@
|
|
|
3
3
|
import {
|
|
4
4
|
settleChatRecording,
|
|
5
5
|
subscribeToHeadlessChatRecordingFailures
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-25VWCPYE.js";
|
|
7
|
+
import {
|
|
8
|
+
handleAtCommand
|
|
9
|
+
} from "./chunk-KD6FGI2Q.js";
|
|
7
10
|
import {
|
|
8
11
|
JsonOutputAdapter
|
|
9
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-VKT2R3NB.js";
|
|
10
13
|
import {
|
|
11
14
|
StreamJsonOutputAdapter
|
|
12
|
-
} from "./chunk-
|
|
13
|
-
import {
|
|
14
|
-
handleAtCommand
|
|
15
|
-
} from "./chunk-NDU63YLI.js";
|
|
15
|
+
} from "./chunk-ZO37CAQH.js";
|
|
16
16
|
import {
|
|
17
17
|
buildInitialSystemReminders,
|
|
18
18
|
buildSystemMessage,
|
|
@@ -24,11 +24,11 @@ import {
|
|
|
24
24
|
insertAfterFunctionResponses,
|
|
25
25
|
isSlashCommand,
|
|
26
26
|
normalizePartList
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-AZPFLLFR.js";
|
|
28
28
|
import {
|
|
29
29
|
RunBudgetEnforcer,
|
|
30
30
|
cleanupReviewWorktreeLeases
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-US7J7LJT.js";
|
|
32
32
|
import {
|
|
33
33
|
AlreadyReportedError,
|
|
34
34
|
handleBudgetExceededError,
|
|
@@ -36,10 +36,10 @@ import {
|
|
|
36
36
|
handleError,
|
|
37
37
|
handleMaxTurnsExceededError,
|
|
38
38
|
handleToolError
|
|
39
|
-
} from "./chunk-
|
|
39
|
+
} from "./chunk-ADM4C4TX.js";
|
|
40
40
|
import {
|
|
41
41
|
isInlineModelOverrideAllowed
|
|
42
|
-
} from "./chunk-
|
|
42
|
+
} from "./chunk-BBCGHZ4S.js";
|
|
43
43
|
import {
|
|
44
44
|
PLAN_MODE_ENTRY_SIBLING_SKIP_MESSAGE,
|
|
45
45
|
buildSessionRecoveryPlanFromApiHistory,
|
|
@@ -56,7 +56,7 @@ import {
|
|
|
56
56
|
parseAndFormatApiError,
|
|
57
57
|
partitionByConcurrencySafety,
|
|
58
58
|
restoreWorktreeContext
|
|
59
|
-
} from "./chunk-
|
|
59
|
+
} from "./chunk-MSSNVG2G.js";
|
|
60
60
|
import {
|
|
61
61
|
parsePositiveIntegerEnv
|
|
62
62
|
} from "./chunk-6PVPNMXU.js";
|
|
@@ -65,10 +65,13 @@ import {
|
|
|
65
65
|
} from "./chunk-O6GEWCJA.js";
|
|
66
66
|
import {
|
|
67
67
|
GoalPersistenceUnavailableError
|
|
68
|
-
} from "./chunk-
|
|
68
|
+
} from "./chunk-DPTMKFIH.js";
|
|
69
|
+
import {
|
|
70
|
+
addAgentOutputMessageAttributes
|
|
71
|
+
} from "./chunk-K34GJQOZ.js";
|
|
69
72
|
import {
|
|
70
73
|
isSystemReminderContent
|
|
71
|
-
} from "./chunk-
|
|
74
|
+
} from "./chunk-TTRH3RTQ.js";
|
|
72
75
|
import {
|
|
73
76
|
formatFullTurnVisionNotice,
|
|
74
77
|
formatVisionBridgeNotice,
|
|
@@ -78,22 +81,25 @@ import {
|
|
|
78
81
|
shouldRunVisionBridge,
|
|
79
82
|
splitImageParts,
|
|
80
83
|
uiTelemetryService
|
|
81
|
-
} from "./chunk-
|
|
84
|
+
} from "./chunk-4KM2SYK5.js";
|
|
82
85
|
import {
|
|
83
86
|
ToolNames,
|
|
84
87
|
canonicalToolName
|
|
85
|
-
} from "./chunk-
|
|
88
|
+
} from "./chunk-YIGGWOJE.js";
|
|
86
89
|
import {
|
|
90
|
+
endInteractionSpan,
|
|
91
|
+
getActiveInteractionSpan,
|
|
87
92
|
isTelemetrySdkInitialized,
|
|
88
93
|
shutdownTelemetry
|
|
89
|
-
} from "./chunk-
|
|
94
|
+
} from "./chunk-N4SVADAV.js";
|
|
90
95
|
import {
|
|
91
96
|
FatalInputError,
|
|
92
|
-
createDebugLogger
|
|
93
|
-
|
|
97
|
+
createDebugLogger,
|
|
98
|
+
getErrorType
|
|
99
|
+
} from "./chunk-HOSVOUDK.js";
|
|
94
100
|
import {
|
|
95
101
|
registerCleanup
|
|
96
|
-
} from "./chunk-
|
|
102
|
+
} from "./chunk-7P5NK5EI.js";
|
|
97
103
|
import {
|
|
98
104
|
init_esbuild_shims
|
|
99
105
|
} from "./chunk-5O2XNYP6.js";
|
|
@@ -329,6 +335,30 @@ async function runNonInteractive(config, settings, input, prompt_id, options = {
|
|
|
329
335
|
let limitedTurnCount = 0;
|
|
330
336
|
let totalApiDurationMs = 0;
|
|
331
337
|
const startTime = Date.now();
|
|
338
|
+
let activeInteractionPromptId = prompt_id;
|
|
339
|
+
let activeInteractionOwner;
|
|
340
|
+
const selectActiveInteraction = /* @__PURE__ */ __name((promptId, startsInteraction = false) => {
|
|
341
|
+
if (startsInteraction || activeInteractionPromptId !== promptId) {
|
|
342
|
+
activeInteractionOwner = void 0;
|
|
343
|
+
}
|
|
344
|
+
activeInteractionPromptId = promptId;
|
|
345
|
+
}, "selectActiveInteraction");
|
|
346
|
+
const captureActiveInteractionOwner = /* @__PURE__ */ __name(() => {
|
|
347
|
+
activeInteractionOwner ??= getActiveInteractionSpan(
|
|
348
|
+
activeInteractionPromptId
|
|
349
|
+
);
|
|
350
|
+
return activeInteractionOwner;
|
|
351
|
+
}, "captureActiveInteractionOwner");
|
|
352
|
+
const endActiveInteraction = /* @__PURE__ */ __name((status, metadata = {}) => {
|
|
353
|
+
const owner = captureActiveInteractionOwner();
|
|
354
|
+
if (!owner || getActiveInteractionSpan(activeInteractionPromptId) !== owner) {
|
|
355
|
+
return;
|
|
356
|
+
}
|
|
357
|
+
endInteractionSpan(status, {
|
|
358
|
+
promptId: activeInteractionPromptId,
|
|
359
|
+
...metadata
|
|
360
|
+
});
|
|
361
|
+
}, "endActiveInteraction");
|
|
332
362
|
const geminiClient = config.getGeminiClient();
|
|
333
363
|
const abortController = options.abortController ?? new AbortController();
|
|
334
364
|
const queuedGoalTurns = [];
|
|
@@ -475,6 +505,12 @@ async function runNonInteractive(config, settings, input, prompt_id, options = {
|
|
|
475
505
|
budgetEnforcer.start();
|
|
476
506
|
const routeAbort = /* @__PURE__ */ __name(async () => {
|
|
477
507
|
const exceeded = budgetEnforcer.getExceeded();
|
|
508
|
+
endActiveInteraction(exceeded ? "error" : "cancelled", {
|
|
509
|
+
...exceeded ? {
|
|
510
|
+
errorMessage: exceeded.message,
|
|
511
|
+
errorType: "run_budget_exceeded"
|
|
512
|
+
} : {}
|
|
513
|
+
});
|
|
478
514
|
await failClosedActiveGoalTurn(
|
|
479
515
|
exceeded?.message ?? "Headless Goal execution was cancelled"
|
|
480
516
|
);
|
|
@@ -628,6 +664,8 @@ ${reason}
|
|
|
628
664
|
let initialPartList = extractPartsFromUserMessage(
|
|
629
665
|
options.userMessage
|
|
630
666
|
);
|
|
667
|
+
const userMessageContent = options.userMessage?.message.content;
|
|
668
|
+
const submittedPrompt = typeof userMessageContent === "string" ? userMessageContent : Array.isArray(userMessageContent) ? userMessageContent.filter((block) => block.type === "text").map((block) => block.type === "text" ? block.text : "").join(" ") : input;
|
|
631
669
|
let inlineModelOverride;
|
|
632
670
|
if (options.continueInterrupted) {
|
|
633
671
|
const recoveryPlan = buildSessionRecoveryPlanFromApiHistory({
|
|
@@ -699,13 +737,22 @@ ${reason}
|
|
|
699
737
|
break;
|
|
700
738
|
case "goal_control": {
|
|
701
739
|
const { snapshot } = slashCommandResult.response;
|
|
702
|
-
|
|
740
|
+
const shouldRunGoalWorker = snapshot.goal?.status === "active" && (slashCommandResult.operation.kind === "set" || slashCommandResult.operation.kind === "edit" || slashCommandResult.operation.kind === "resume");
|
|
741
|
+
try {
|
|
742
|
+
observeGoalRuntime(await config.getGoalRuntimeReady());
|
|
743
|
+
} catch (error) {
|
|
744
|
+
if (shouldRunGoalWorker || !(error instanceof GoalPersistenceUnavailableError)) {
|
|
745
|
+
throw error;
|
|
746
|
+
}
|
|
747
|
+
debugLogger.debug(
|
|
748
|
+
"[runNonInteractive] canonical Goal runtime unavailable; answering goal_control from the degraded snapshot"
|
|
749
|
+
);
|
|
750
|
+
}
|
|
703
751
|
emitGoalSnapshot(snapshot);
|
|
704
752
|
const message = formatGoalState(
|
|
705
753
|
snapshot,
|
|
706
754
|
slashCommandResult.operation.kind
|
|
707
755
|
);
|
|
708
|
-
const shouldRunGoalWorker = snapshot.goal?.status === "active" && (slashCommandResult.operation.kind === "set" || slashCommandResult.operation.kind === "edit" || slashCommandResult.operation.kind === "resume");
|
|
709
756
|
if (!shouldRunGoalWorker) {
|
|
710
757
|
await emitNonInteractiveFinalMessage({
|
|
711
758
|
message,
|
|
@@ -1001,6 +1048,24 @@ ${text}
|
|
|
1001
1048
|
let loopDetected = false;
|
|
1002
1049
|
let loopDetectedMessage = formatLoopDetectedMessage(void 0);
|
|
1003
1050
|
const emitStructuredSuccess = /* @__PURE__ */ __name(async () => {
|
|
1051
|
+
const owner = captureActiveInteractionOwner();
|
|
1052
|
+
if (owner && getActiveInteractionSpan(activeInteractionPromptId) === owner) {
|
|
1053
|
+
let responseText;
|
|
1054
|
+
try {
|
|
1055
|
+
responseText = JSON.stringify(structuredSubmission);
|
|
1056
|
+
} catch {
|
|
1057
|
+
responseText = void 0;
|
|
1058
|
+
}
|
|
1059
|
+
if (responseText !== void 0) {
|
|
1060
|
+
addAgentOutputMessageAttributes(
|
|
1061
|
+
config,
|
|
1062
|
+
owner,
|
|
1063
|
+
responseText,
|
|
1064
|
+
"tool_call"
|
|
1065
|
+
);
|
|
1066
|
+
}
|
|
1067
|
+
endActiveInteraction("ok");
|
|
1068
|
+
}
|
|
1004
1069
|
await failClosedActiveGoalTurn(
|
|
1005
1070
|
"Headless Goal ended with structured output"
|
|
1006
1071
|
);
|
|
@@ -1026,6 +1091,10 @@ ${text}
|
|
|
1026
1091
|
return 0;
|
|
1027
1092
|
}, "emitStructuredSuccess");
|
|
1028
1093
|
const emitLoopDetectedResult = /* @__PURE__ */ __name(async () => {
|
|
1094
|
+
endActiveInteraction("error", {
|
|
1095
|
+
errorMessage: "loop detected",
|
|
1096
|
+
errorType: "loop_detected"
|
|
1097
|
+
});
|
|
1029
1098
|
await failClosedActiveGoalTurn(
|
|
1030
1099
|
"Headless Goal stopped after loop detection"
|
|
1031
1100
|
);
|
|
@@ -1398,18 +1467,26 @@ ${text}
|
|
|
1398
1467
|
const goalTurn = activeGoalTurn;
|
|
1399
1468
|
await enforceSessionTurnLimit(goalTurn?.origin === "runtime");
|
|
1400
1469
|
let sendType;
|
|
1401
|
-
if (goalTurn) {
|
|
1402
|
-
sendType =
|
|
1403
|
-
} else if (isFirstTurn) {
|
|
1404
|
-
sendType = continueSendType ?? options.sendMessageType ?? "userQuery" /* UserQuery */;
|
|
1470
|
+
if (goalTurn && isFirstGoalSegment) {
|
|
1471
|
+
sendType = goalTurn.origin === "runtime" ? "goal" /* Goal */ : "userQuery" /* UserQuery */;
|
|
1405
1472
|
} else if (isTeammateTurn) {
|
|
1406
1473
|
sendType = "teammate" /* Teammate */;
|
|
1474
|
+
} else if (goalTurn) {
|
|
1475
|
+
sendType = "toolResult" /* ToolResult */;
|
|
1476
|
+
} else if (isFirstTurn) {
|
|
1477
|
+
sendType = continueSendType ?? options.sendMessageType ?? "userQuery" /* UserQuery */;
|
|
1407
1478
|
} else {
|
|
1408
1479
|
sendType = "toolResult" /* ToolResult */;
|
|
1409
1480
|
}
|
|
1410
1481
|
if (isTeammateTurn) {
|
|
1482
|
+
selectActiveInteraction(currentPromptId);
|
|
1483
|
+
endActiveInteraction("ok");
|
|
1411
1484
|
currentPromptId = `${prompt_id}/teammate/${turnCount}`;
|
|
1412
1485
|
}
|
|
1486
|
+
selectActiveInteraction(
|
|
1487
|
+
currentPromptId,
|
|
1488
|
+
sendType !== "toolResult" /* ToolResult */
|
|
1489
|
+
);
|
|
1413
1490
|
const toolCallRequests = [];
|
|
1414
1491
|
const apiStartTime = Date.now();
|
|
1415
1492
|
const responseStream = geminiClient.sendMessageStream(
|
|
@@ -1419,6 +1496,7 @@ ${text}
|
|
|
1419
1496
|
{
|
|
1420
1497
|
type: sendType,
|
|
1421
1498
|
modelOverride,
|
|
1499
|
+
...isFirstTurn && sendType === "userQuery" /* UserQuery */ && !options.continueInterrupted && submittedPrompt.trim().length > 0 && { submittedPrompt },
|
|
1422
1500
|
...isFirstTurn && options.notificationDisplayText && {
|
|
1423
1501
|
notificationDisplayText: options.notificationDisplayText
|
|
1424
1502
|
},
|
|
@@ -1434,6 +1512,7 @@ ${text}
|
|
|
1434
1512
|
isFirstGoalSegment = false;
|
|
1435
1513
|
adapter.startAssistantMessage();
|
|
1436
1514
|
for await (const event of responseStream) {
|
|
1515
|
+
captureActiveInteractionOwner();
|
|
1437
1516
|
if (abortController.signal.aborted) {
|
|
1438
1517
|
adapter.finalizeAssistantMessage();
|
|
1439
1518
|
await routeAbort();
|
|
@@ -1468,6 +1547,7 @@ ${text}
|
|
|
1468
1547
|
throw new AlreadyReportedError(errorText);
|
|
1469
1548
|
}
|
|
1470
1549
|
}
|
|
1550
|
+
captureActiveInteractionOwner();
|
|
1471
1551
|
adapter.finalizeAssistantMessage();
|
|
1472
1552
|
totalApiDurationMs += Date.now() - apiStartTime;
|
|
1473
1553
|
if (loopDetected) {
|
|
@@ -1512,6 +1592,8 @@ ${text}
|
|
|
1512
1592
|
await config.getChatRecordingService?.()?.flush();
|
|
1513
1593
|
await finishGoalTurn(activeGoalTurn);
|
|
1514
1594
|
activeGoalTurn = void 0;
|
|
1595
|
+
selectActiveInteraction(currentPromptId);
|
|
1596
|
+
endActiveInteraction("ok");
|
|
1515
1597
|
const nextGoalTurn = queuedGoalTurns.shift();
|
|
1516
1598
|
if (nextGoalTurn) {
|
|
1517
1599
|
activeGoalTurn = nextGoalTurn;
|
|
@@ -1540,6 +1622,8 @@ ${text}
|
|
|
1540
1622
|
if (activeGoalTurn === completedGoalTurn) {
|
|
1541
1623
|
activeGoalTurn = void 0;
|
|
1542
1624
|
}
|
|
1625
|
+
selectActiveInteraction(currentPromptId);
|
|
1626
|
+
endActiveInteraction("ok");
|
|
1543
1627
|
const nextGoalTurn = queuedGoalTurns.shift();
|
|
1544
1628
|
if (nextGoalTurn) {
|
|
1545
1629
|
activeGoalTurn = nextGoalTurn;
|
|
@@ -1626,6 +1710,7 @@ ${text}
|
|
|
1626
1710
|
while (true) {
|
|
1627
1711
|
const itemToolCallRequests = [];
|
|
1628
1712
|
const itemApiStartTime = Date.now();
|
|
1713
|
+
selectActiveInteraction(itemPromptId, itemIsFirstTurn);
|
|
1629
1714
|
const itemStream = geminiClient.sendMessageStream(
|
|
1630
1715
|
itemMessages[0]?.parts || [],
|
|
1631
1716
|
abortController.signal,
|
|
@@ -1642,6 +1727,7 @@ ${text}
|
|
|
1642
1727
|
itemIsFirstTurn = false;
|
|
1643
1728
|
adapter.startAssistantMessage();
|
|
1644
1729
|
for await (const event of itemStream) {
|
|
1730
|
+
captureActiveInteractionOwner();
|
|
1645
1731
|
if (abortController.signal.aborted) {
|
|
1646
1732
|
adapter.finalizeAssistantMessage();
|
|
1647
1733
|
flushQueuedNotificationsToSdk(localQueue);
|
|
@@ -1671,6 +1757,7 @@ ${text}
|
|
|
1671
1757
|
throw new AlreadyReportedError(errorText);
|
|
1672
1758
|
}
|
|
1673
1759
|
}
|
|
1760
|
+
captureActiveInteractionOwner();
|
|
1674
1761
|
adapter.finalizeAssistantMessage();
|
|
1675
1762
|
totalApiDurationMs += Date.now() - itemApiStartTime;
|
|
1676
1763
|
if (loopDetected) {
|
|
@@ -1816,6 +1903,10 @@ ${text}
|
|
|
1816
1903
|
const previewSnippet = plainTextPreview.trim();
|
|
1817
1904
|
const previewSuffix = previewSnippet ? ` Output preview (${plainTextPreview.length}${plainTextPreview.length >= PLAIN_TEXT_PREVIEW_LIMIT ? "+" : ""} chars): ${JSON.stringify(previewSnippet)}.` : "";
|
|
1818
1905
|
const errorMessage = `Model produced plain text instead of calling the structured_output tool as required by --json-schema after ${turnCount} turn(s).` + previewSuffix;
|
|
1906
|
+
endActiveInteraction("error", {
|
|
1907
|
+
errorMessage: "model did not produce structured output",
|
|
1908
|
+
errorType: "structured_output_missing"
|
|
1909
|
+
});
|
|
1819
1910
|
await emitResult({
|
|
1820
1911
|
isError: true,
|
|
1821
1912
|
durationMs: Date.now() - startTime,
|
|
@@ -1839,6 +1930,19 @@ ${text}
|
|
|
1839
1930
|
}
|
|
1840
1931
|
}
|
|
1841
1932
|
} catch (error) {
|
|
1933
|
+
const budgetExceeded = budgetEnforcer.getExceeded();
|
|
1934
|
+
endActiveInteraction(
|
|
1935
|
+
budgetExceeded || !abortController.signal.aborted ? "error" : "cancelled",
|
|
1936
|
+
{
|
|
1937
|
+
...budgetExceeded ? {
|
|
1938
|
+
errorMessage: budgetExceeded.message,
|
|
1939
|
+
errorType: "run_budget_exceeded"
|
|
1940
|
+
} : abortController.signal.aborted ? {} : {
|
|
1941
|
+
errorMessage: "headless invocation failed",
|
|
1942
|
+
errorType: getErrorType(error)
|
|
1943
|
+
}
|
|
1944
|
+
}
|
|
1945
|
+
);
|
|
1842
1946
|
await failClosedActiveGoalTurn(
|
|
1843
1947
|
error instanceof Error ? error.message : "Headless Goal execution failed"
|
|
1844
1948
|
);
|
|
@@ -1848,7 +1952,6 @@ ${text}
|
|
|
1848
1952
|
}
|
|
1849
1953
|
flushQueuedNotificationsToSdk(localQueue);
|
|
1850
1954
|
finalizeOneShotMonitors();
|
|
1851
|
-
const budgetExceeded = budgetEnforcer.getExceeded();
|
|
1852
1955
|
const recoverableCancellation = !budgetExceeded && options.recoverableCancellation === true && abortController.signal.reason instanceof TurnInterruptedError;
|
|
1853
1956
|
const message = budgetExceeded ? budgetExceeded.message : recoverableCancellation ? abortController.signal.reason.message : error instanceof Error ? error.message : String(error);
|
|
1854
1957
|
const metrics = uiTelemetryService.getMetrics();
|
|
@@ -6,10 +6,10 @@ import {
|
|
|
6
6
|
extractGeminiContent,
|
|
7
7
|
extractOpenAiContent,
|
|
8
8
|
stringifyGenAiJson
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-NLFLYSS4.js";
|
|
10
10
|
import {
|
|
11
11
|
createDebugLogger
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-HOSVOUDK.js";
|
|
13
13
|
import {
|
|
14
14
|
ROOT_CONTEXT,
|
|
15
15
|
context,
|
|
@@ -9,10 +9,10 @@ import {
|
|
|
9
9
|
publishPendingCompileCache,
|
|
10
10
|
reportRejectedLoaderKeys,
|
|
11
11
|
resetLoaderKeyRejectionReportingForTesting
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-MS7GNABG.js";
|
|
13
13
|
import {
|
|
14
14
|
isWorkspaceTrusted
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-7WROZ3E6.js";
|
|
16
16
|
import {
|
|
17
17
|
require_main
|
|
18
18
|
} from "./chunk-5M6IDOMF.js";
|
|
@@ -20,7 +20,7 @@ import {
|
|
|
20
20
|
QWEN_DIR,
|
|
21
21
|
Storage,
|
|
22
22
|
getErrorMessage
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-HOSVOUDK.js";
|
|
24
24
|
import {
|
|
25
25
|
init_esbuild_shims
|
|
26
26
|
} from "./chunk-5O2XNYP6.js";
|
|
@@ -11,10 +11,10 @@ import {
|
|
|
11
11
|
MAX_CHILD_HEAP_MB,
|
|
12
12
|
MIN_CHILD_HEAP_MB,
|
|
13
13
|
recommendedChildShareMb
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-UXEO7E3V.js";
|
|
15
15
|
import {
|
|
16
16
|
CLIENT_MCP_OVER_WS_CONFIG_FLAG
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-FQDCO3CJ.js";
|
|
18
18
|
import {
|
|
19
19
|
MAX_WORKSPACE_PATH_LENGTH,
|
|
20
20
|
translateAndCheckAbsoluteWorkspacePath
|
|
@@ -22,6 +22,11 @@ import {
|
|
|
22
22
|
import {
|
|
23
23
|
writeStderrLine
|
|
24
24
|
} from "./chunk-KGJGEEVR.js";
|
|
25
|
+
import {
|
|
26
|
+
ROOT_CONTEXT,
|
|
27
|
+
context,
|
|
28
|
+
init_esm
|
|
29
|
+
} from "./chunk-QUGAUQGJ.js";
|
|
25
30
|
import {
|
|
26
31
|
init_esbuild_shims
|
|
27
32
|
} from "./chunk-5O2XNYP6.js";
|
|
@@ -1156,14 +1161,14 @@ var ClientMcpSenderRegistry = class {
|
|
|
1156
1161
|
const entry = this.senders.get(serverName);
|
|
1157
1162
|
const sessionEntries = this.sessionSenders.get(serverName);
|
|
1158
1163
|
if (!entry && !sessionEntries) return void 0;
|
|
1159
|
-
return (payload,
|
|
1160
|
-
if (
|
|
1161
|
-
const sessionEntry = sessionEntries?.get(
|
|
1164
|
+
return (payload, context2) => {
|
|
1165
|
+
if (context2?.sessionId) {
|
|
1166
|
+
const sessionEntry = sessionEntries?.get(context2.sessionId);
|
|
1162
1167
|
if (sessionEntry) return sessionEntry.sender(payload);
|
|
1163
1168
|
if (this.sessionScopedServerNames.has(serverName)) {
|
|
1164
1169
|
return Promise.reject(
|
|
1165
1170
|
new Error(
|
|
1166
|
-
`No session-scoped MCP sender for '${serverName}' in session '${
|
|
1171
|
+
`No session-scoped MCP sender for '${serverName}' in session '${context2.sessionId}'.`
|
|
1167
1172
|
)
|
|
1168
1173
|
);
|
|
1169
1174
|
}
|
|
@@ -1372,6 +1377,12 @@ var SERVE_CAPABILITY_REGISTRY = {
|
|
|
1372
1377
|
// gate. Clients should still pre-flight `require_auth` separately for
|
|
1373
1378
|
// deployment posture; this tag only means the route contract exists.
|
|
1374
1379
|
workspace_file_write: { since: "v1" },
|
|
1380
|
+
// Daemon hosts binary file upload (`POST /file/upload`) behind the strict
|
|
1381
|
+
// mutation gate. Uploads never overwrite; occupied names auto-number. New
|
|
1382
|
+
// route contract = new tag (same split as `workspace_file_bytes` from
|
|
1383
|
+
// `workspace_file_read`). The advertised upload byte cap is surfaced via
|
|
1384
|
+
// `limits.maxWorkspaceFileUploadBytes`.
|
|
1385
|
+
workspace_file_upload: { since: "v1" },
|
|
1375
1386
|
// Daemon hosts the session-level approval-mode
|
|
1376
1387
|
// control route `POST /session/:id/approval-mode` (gated by the
|
|
1377
1388
|
// mutation gate, strict). The route accepts `{mode, persist?}` —
|
|
@@ -1555,8 +1566,8 @@ var SERVE_CAPABILITY_REGISTRY = {
|
|
|
1555
1566
|
scratch_workspace_registration: { since: "v1" },
|
|
1556
1567
|
workspace_runtime_removal: { since: "v1" },
|
|
1557
1568
|
// Workspace-qualified core REST routes under `/workspaces/:workspace/...`.
|
|
1558
|
-
// Covers core file/status/permissions/trust/lifecycle/MCP/tool,
|
|
1559
|
-
// workspace agent CRUD, and persisted session organization surfaces.
|
|
1569
|
+
// Covers core file read/write/upload, status/permissions/trust/lifecycle/MCP/tool,
|
|
1570
|
+
// memory, workspace agent CRUD, and persisted session organization surfaces.
|
|
1560
1571
|
// Workspace-qualified settings also require the existing
|
|
1561
1572
|
// `workspace_settings` tag because that surface depends on settings
|
|
1562
1573
|
// persistence. ACP/WebSocket and auth stay outside this core tag;
|
|
@@ -2396,10 +2407,11 @@ __name(usableNumerator, "usableNumerator");
|
|
|
2396
2407
|
var DEFAULT_LISTENER_MAX_CONNECTIONS = 256;
|
|
2397
2408
|
var SECTION_TIMEOUT_MS = 1e3;
|
|
2398
2409
|
var CAPACITY_WARNING_RATIO = 0.8;
|
|
2399
|
-
function toDaemonStatusMemoryLimits(budget, childHeap) {
|
|
2410
|
+
function toDaemonStatusMemoryLimits(budget, childHeap, journalGrowth) {
|
|
2400
2411
|
if (!budget) return null;
|
|
2401
2412
|
return {
|
|
2402
2413
|
enforced: false,
|
|
2414
|
+
journalGrowth: journalGrowth ?? null,
|
|
2403
2415
|
childHeap: childHeap ? {
|
|
2404
2416
|
mode: childHeap.mode,
|
|
2405
2417
|
maxConcurrentChildren: childHeap.maxConcurrentChildren,
|
|
@@ -2658,7 +2670,12 @@ async function buildDaemonStatusResponse(detail, input) {
|
|
|
2658
2670
|
acpConnectionCap: acpSnapshot?.connectionCap ?? null,
|
|
2659
2671
|
memory: toDaemonStatusMemoryLimits(
|
|
2660
2672
|
memoryBudget,
|
|
2661
|
-
input.getChildHeapPolicySnapshot?.()
|
|
2673
|
+
input.getChildHeapPolicySnapshot?.(),
|
|
2674
|
+
bridgeSnapshot.limits.journalGrowth ? {
|
|
2675
|
+
...bridgeSnapshot.limits.journalGrowth,
|
|
2676
|
+
baselineMaxEvents: bridgeSnapshot.limits.maxJournalEvents,
|
|
2677
|
+
baselineMaxBytes: bridgeSnapshot.limits.maxJournalBytes
|
|
2678
|
+
} : null
|
|
2662
2679
|
)
|
|
2663
2680
|
},
|
|
2664
2681
|
...workspaceRuntimes && workspaceRuntimes.length > 1 ? {
|
|
@@ -3331,6 +3348,7 @@ var WorkspaceVoiceCoordinator = class {
|
|
|
3331
3348
|
|
|
3332
3349
|
// packages/cli/src/serve/server/access-log.ts
|
|
3333
3350
|
init_esbuild_shims();
|
|
3351
|
+
init_esm();
|
|
3334
3352
|
import { performance } from "node:perf_hooks";
|
|
3335
3353
|
var SESSION_ID_RE = /\/session\/([^/]+)/;
|
|
3336
3354
|
var ACCESS_LOG_BURST = 60;
|
|
@@ -3392,7 +3410,9 @@ function installAccessLogMiddleware(app, daemonLog, monotonicNow = () => perform
|
|
|
3392
3410
|
}, "refill");
|
|
3393
3411
|
const flushSuppressed = /* @__PURE__ */ __name(() => {
|
|
3394
3412
|
if (!daemonLog || suppressed.suppressed === 0) return false;
|
|
3395
|
-
|
|
3413
|
+
context.with(ROOT_CONTEXT, () => {
|
|
3414
|
+
daemonLog.warn("access logs suppressed", suppressed);
|
|
3415
|
+
});
|
|
3396
3416
|
suppressed = emptySuppressedCounts();
|
|
3397
3417
|
return true;
|
|
3398
3418
|
}, "flushSuppressed");
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
// Force strict mode and setup for ESM
|
|
2
|
+
"use strict";
|
|
3
|
+
import {
|
|
4
|
+
init_esbuild_shims
|
|
5
|
+
} from "./chunk-5O2XNYP6.js";
|
|
6
|
+
import {
|
|
7
|
+
__name
|
|
8
|
+
} from "./chunk-J2S4EL5Y.js";
|
|
9
|
+
|
|
10
|
+
// packages/core/src/utils/safeJsonStringify.ts
|
|
11
|
+
init_esbuild_shims();
|
|
12
|
+
function safeJsonStringify(obj, space) {
|
|
13
|
+
const ancestors = [];
|
|
14
|
+
return JSON.stringify(
|
|
15
|
+
obj,
|
|
16
|
+
function(_key, value) {
|
|
17
|
+
if (typeof value !== "object" || value === null) {
|
|
18
|
+
return value;
|
|
19
|
+
}
|
|
20
|
+
while (ancestors.length > 0 && ancestors[ancestors.length - 1] !== this) {
|
|
21
|
+
ancestors.pop();
|
|
22
|
+
}
|
|
23
|
+
if (ancestors.includes(value)) {
|
|
24
|
+
return "[Circular]";
|
|
25
|
+
}
|
|
26
|
+
ancestors.push(value);
|
|
27
|
+
return value;
|
|
28
|
+
},
|
|
29
|
+
space
|
|
30
|
+
);
|
|
31
|
+
}
|
|
32
|
+
__name(safeJsonStringify, "safeJsonStringify");
|
|
33
|
+
|
|
34
|
+
export {
|
|
35
|
+
safeJsonStringify
|
|
36
|
+
};
|
|
37
|
+
/**
|
|
38
|
+
* @license
|
|
39
|
+
* Copyright 2025 Google LLC
|
|
40
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
41
|
+
*/
|