@qwen-code/qwen-code 0.22.2-preview.1 → 0.22.3-nightly.20260829.e5cb60ad48
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/computer-use/SKILL.md +3 -3
- package/bundled/goal-draft/SKILL.md +109 -0
- package/bundled/qc-helper/docs/configuration/settings.md +37 -36
- package/bundled/qc-helper/docs/features/_meta.ts +1 -0
- package/bundled/qc-helper/docs/features/channels/dws.md +2 -0
- package/bundled/qc-helper/docs/features/channels/overview.md +34 -3
- package/bundled/qc-helper/docs/features/code-review.md +3 -3
- package/bundled/qc-helper/docs/features/commands.md +2 -1
- package/bundled/qc-helper/docs/features/computer-use.md +2 -2
- package/bundled/qc-helper/docs/features/goals.md +58 -0
- package/bundled/qc-helper/docs/features/headless.md +13 -11
- package/bundled/qc-helper/docs/features/status-line.md +3 -3
- package/bundled/qc-helper/docs/features/tool-use-summaries.md +1 -1
- package/bundled/qc-helper/docs/qwen-serve.md +1 -1
- package/bundled/review/SKILL.md +81 -31
- package/bundled/review/references/persistence.md +7 -3
- package/bundled/review/references/posting.md +10 -4
- package/chunks/MaxSizedBox-JK4LFKJ3.js +111 -0
- package/chunks/{StandaloneSessionPicker-5D2L22SF.js → StandaloneSessionPicker-UA2MQCCS.js} +83 -84
- package/chunks/{acpAgent-4DCKLA32.js → acpAgent-ZKIVHQKW.js} +1159 -360
- package/chunks/{agent-B4AFZL6H.js → agent-Z3Q5C3RX.js} +46 -47
- package/chunks/agent-headless-BIVZ3KYZ.js +86 -0
- package/chunks/{anthropicContentGenerator-U76GTVB6.js → anthropicContentGenerator-YVTB6QX7.js} +46 -50
- package/chunks/{artifact-tool-XDJCZZCF.js → artifact-tool-XSMPHZBT.js} +11 -3
- package/chunks/{askUserQuestion-ZXXERLEV.js → askUserQuestion-66I3U2QX.js} +31 -7
- package/chunks/bridge-KDQTHAR7.js +120 -0
- package/chunks/{channel-management-service-HXXS3HOZ.js → channel-management-service-HQ6KDS7C.js} +6 -6
- package/chunks/channel-settings-store-X4WWBVYW.js +121 -0
- package/chunks/{channel-worker-group-EVDC2P4K.js → channel-worker-group-6NA6BBZV.js} +8 -7
- package/chunks/{channel-worker-manager-IJJZHGEI.js → channel-worker-manager-NEZ2J6RK.js} +10 -8
- package/chunks/{channel-worker-supervisor-YSKB5GVB.js → channel-worker-supervisor-FKU7DIHJ.js} +6 -5
- package/chunks/{chunk-7QGEJI7M.js → chunk-23RFD54N.js} +1 -1
- package/chunks/{chunk-7DPKPBOQ.js → chunk-2AEHQRY2.js} +2 -2
- package/chunks/{chunk-LJP2BBMK.js → chunk-2SXSLSQE.js} +4 -4
- package/chunks/chunk-2TNL5KPM.js +49 -0
- package/chunks/chunk-36LGBEM6.js +130 -0
- package/chunks/{chunk-QR4AHMGQ.js → chunk-3CAI35FS.js} +13 -13
- package/chunks/{chunk-ZWKGZB2K.js → chunk-3JXM2CVW.js} +3 -3
- package/chunks/{chunk-CZFQ62RM.js → chunk-3WJLDA3X.js} +4 -4
- package/chunks/{chunk-ILPXSKGQ.js → chunk-3WK3QDNV.js} +2 -2
- package/chunks/{chunk-IKN3IUJP.js → chunk-3XKLXHGK.js} +17 -9
- package/chunks/{chunk-ZLTEQYNC.js → chunk-42IDLQWS.js} +26 -20
- package/chunks/{chunk-7UJTY5V3.js → chunk-44LKG3IY.js} +1 -1
- package/chunks/chunk-4CMJKUND.js +95 -0
- package/chunks/{chunk-77TOMRBG.js → chunk-4K7KNVWH.js} +3 -3
- package/chunks/{chunk-SQPOJ4ZI.js → chunk-4NDLQAY2.js} +27 -270
- package/chunks/{chunk-V3GINY6K.js → chunk-4QHPPXK2.js} +16 -8
- package/chunks/chunk-4VQBQLIZ.js +293 -0
- package/chunks/{chunk-FJAITR4L.js → chunk-5CALJAH7.js} +2 -2
- package/chunks/{chunk-TDQBVEPK.js → chunk-5SBVOOA2.js} +10 -8
- package/chunks/{chunk-R7G7GKOX.js → chunk-5ZJL3AIV.js} +3 -3
- package/chunks/{chunk-UCSV2IZW.js → chunk-62GQFYID.js} +3 -3
- package/chunks/{chunk-SLEWBQWM.js → chunk-6DIGWMGT.js} +2 -2
- package/chunks/{chunk-BRVWYMKV.js → chunk-6MBXY6WM.js} +1 -1
- package/chunks/{chunk-PVBT5QPD.js → chunk-6PJOTWAN.js} +1 -1
- package/chunks/{chunk-5CMWFBML.js → chunk-6XOIV7MI.js} +1 -1
- package/chunks/{chunk-ELY4QVIB.js → chunk-7EQQR46F.js} +1 -1
- package/chunks/{chunk-KGJGEEVR.js → chunk-7FA2II6K.js} +10 -1
- package/chunks/chunk-7GUOXWPY.js +2597 -0
- package/chunks/chunk-7J6OTNGO.js +424 -0
- package/chunks/{chunk-DIMEPKCW.js → chunk-7S226YTK.js} +1 -1
- package/chunks/{chunk-2MHGD7EE.js → chunk-A3LWD5MK.js} +1 -1
- package/chunks/{chunk-E4I5MVBR.js → chunk-ABS25QER.js} +1 -1
- package/chunks/{chunk-F7M6ZFGU.js → chunk-AMLXTTJJ.js} +8 -8
- package/chunks/{chunk-AA7VBRBG.js → chunk-ARF6IJHM.js} +8 -8
- package/chunks/{chunk-NEZZHGEI.js → chunk-AYFA7MZV.js} +6 -6
- package/chunks/{chunk-XMSMTU6H.js → chunk-B42A5ZHA.js} +4 -4
- package/chunks/{chunk-FVDQ5E67.js → chunk-B466ZSHZ.js} +3 -3
- package/chunks/{chunk-6US7BF3G.js → chunk-B5PHIJGI.js} +183 -5
- package/chunks/{chunk-4TPAG3O7.js → chunk-BFPESSTR.js} +1 -1
- package/chunks/{chunk-5URK47RN.js → chunk-BFYGL2XL.js} +11629 -10405
- package/chunks/{chunk-66GIFJ63.js → chunk-BIJEBAAQ.js} +1 -1
- package/chunks/{chunk-WBT3STGU.js → chunk-BKWNKLZB.js} +20 -20
- package/chunks/{chunk-T45CL2NT.js → chunk-BOWFGCEU.js} +3 -3
- package/chunks/{chunk-GTUZ3R6I.js → chunk-BP5PTNCU.js} +357 -117
- package/chunks/{chunk-IPQA4SR5.js → chunk-BWORX6FA.js} +1 -1
- package/chunks/{chunk-BKDAF7ES.js → chunk-BXDAPVQU.js} +2 -2
- package/chunks/{chunk-ZEADBZLO.js → chunk-C2X7KY45.js} +3 -3
- package/chunks/{chunk-7OBH4AM2.js → chunk-CAJTKR6W.js} +5 -5
- package/chunks/{chunk-2FN2HNTI.js → chunk-CFJY4DGX.js} +2 -2
- package/chunks/{chunk-W2WRNJKX.js → chunk-CLWO3B77.js} +6 -6
- package/chunks/{chunk-U45D46O5.js → chunk-CMHFCLBU.js} +1 -1
- package/chunks/{chunk-LRKMQPMD.js → chunk-CQH5KTKC.js} +1 -1
- package/chunks/{chunk-TR7G7XFQ.js → chunk-CVUBULIX.js} +5 -5
- package/chunks/{chunk-MCKJTBZN.js → chunk-CWQZUDB7.js} +2 -2
- package/chunks/{chunk-JECO75XD.js → chunk-D5LUXLUH.js} +2 -2
- package/chunks/chunk-DJBQCO2E.js +842 -0
- package/chunks/{chunk-BQBUZDDH.js → chunk-DJECZIJX.js} +42 -42
- package/chunks/{chunk-VYWCFWI5.js → chunk-DMLVSW7L.js} +542 -654
- package/chunks/{chunk-EB4VDXNI.js → chunk-DYXFD5RO.js} +182 -3
- package/chunks/{chunk-ZKAZP2ZG.js → chunk-EB6QRGHM.js} +3 -3
- package/chunks/{chunk-XIRDDFRS.js → chunk-ECE3UYVO.js} +5266 -6055
- package/chunks/{chunk-3UZCLCXR.js → chunk-EKSCLBBF.js} +3 -3
- package/chunks/{chunk-624NHDGB.js → chunk-ERFDKH32.js} +11 -0
- package/chunks/{chunk-3JKUX4PB.js → chunk-F5RB4S23.js} +9 -9
- package/chunks/{chunk-VBF4KZRQ.js → chunk-FIKYKQOO.js} +1 -1
- package/chunks/{chunk-DID6IRGC.js → chunk-FKET6VOO.js} +56 -39
- package/chunks/{chunk-4K44OMLI.js → chunk-FROAFEFB.js} +3 -3
- package/chunks/{chunk-MZS7GEC7.js → chunk-FTF2YIZ5.js} +1 -1
- package/chunks/{chunk-Z7VOMGDC.js → chunk-FTJMWDND.js} +0 -24
- package/chunks/{chunk-ZJG323IA.js → chunk-G6FECKTJ.js} +7 -5
- package/chunks/{chunk-H3HZ4AWW.js → chunk-GIHXH2KO.js} +1 -1
- package/chunks/{chunk-ZGWDHSUM.js → chunk-H4LCV44K.js} +4 -4
- package/chunks/{chunk-OLS3MAXQ.js → chunk-H5WQZTAW.js} +15 -9
- package/chunks/chunk-H72BQNM3.js +645 -0
- package/chunks/{chunk-Z4X5MTRT.js → chunk-HCOBAG2L.js} +2 -4
- package/chunks/{chunk-ATLGYSYH.js → chunk-HHQJANFM.js} +4 -4
- package/chunks/{chunk-7JPW6IYH.js → chunk-HVC3PNVC.js} +1 -1
- package/chunks/{chunk-OI2DR6QB.js → chunk-I6LYRJPB.js} +3 -3
- package/chunks/{chunk-E55H6BZ7.js → chunk-ICURCKIU.js} +1335 -119
- package/chunks/{chunk-2YDYDDE2.js → chunk-IJMEPQ5N.js} +3 -3
- package/chunks/{chunk-PAJGKZAA.js → chunk-ISKH4QX3.js} +14 -12
- package/chunks/{chunk-VOEMVOM4.js → chunk-IZDKYNKN.js} +2 -2
- package/chunks/{chunk-FCSWZAS3.js → chunk-J7SS77YW.js} +5 -5
- package/chunks/{chunk-AYVIGUUK.js → chunk-JB4JIVTJ.js} +1 -1
- package/chunks/chunk-JCMS65DJ.js +1584 -0
- package/chunks/{chunk-BHTJAO36.js → chunk-JHDPOPQG.js} +7 -7
- package/chunks/{chunk-FN5C6C7G.js → chunk-JHYH6PYQ.js} +192 -478
- package/chunks/{chunk-T6OODF2U.js → chunk-JWALNCLT.js} +1 -1
- package/chunks/{chunk-KQYW2GB5.js → chunk-JWDMKJG5.js} +6 -6
- package/chunks/{chunk-SKNVVYIJ.js → chunk-K5KXUXWC.js} +3 -3
- package/chunks/{chunk-TFV4RXPU.js → chunk-K6CTN5TU.js} +1 -1
- package/chunks/{chunk-X3XGCJ32.js → chunk-KEIMKAM4.js} +28 -111
- package/chunks/{chunk-XUX6O2ZT.js → chunk-KID24ZFN.js} +4 -1
- package/chunks/{chunk-I6DY753S.js → chunk-KJO2LBUK.js} +944 -18
- package/chunks/{chunk-5T4LWWNX.js → chunk-KYWTPLBJ.js} +18 -21
- package/chunks/chunk-LGO7DEXL.js +1186 -0
- package/chunks/{chunk-TOF4UZHH.js → chunk-LUEHOUHM.js} +3 -3
- package/chunks/{chunk-GNMJNDZE.js → chunk-M6FOJXW3.js} +1 -1
- package/chunks/{chunk-JLU3FPQR.js → chunk-MAQ2W4IF.js} +5 -5
- package/chunks/{chunk-K3LPAED5.js → chunk-MQM5PJML.js} +24 -4
- package/chunks/{chunk-AKQA3WCH.js → chunk-MVDPFLWM.js} +723 -3399
- package/chunks/{chunk-5PA6UEYA.js → chunk-MZCJWS5Y.js} +1 -1
- package/chunks/{chunk-BGXZBI5B.js → chunk-N4X7G4J2.js} +2 -1
- package/chunks/{chunk-WXDZZFH3.js → chunk-NEBSNUMX.js} +6 -6
- package/chunks/{chunk-J3CBIEDS.js → chunk-NENQE7VH.js} +32 -15
- package/chunks/{chunk-TMGAS5TO.js → chunk-NHDNYMBU.js} +26 -4
- package/chunks/{chunk-27ONXAFY.js → chunk-NIFYWDYN.js} +1 -1
- package/chunks/{chunk-IJVDHPKD.js → chunk-NU7RKEZR.js} +2 -2
- package/chunks/{chunk-CDUN63IN.js → chunk-OJEMXKA4.js} +3 -3
- package/chunks/{chunk-RRKNX553.js → chunk-PDQGMSZK.js} +1 -1
- package/chunks/{chunk-R3T33BG5.js → chunk-PI6HYGBE.js} +3 -3
- package/chunks/{chunk-5SM2AK65.js → chunk-PO6YCWIQ.js} +5 -5
- package/chunks/{chunk-GTUKW3I6.js → chunk-PPKZ7JOE.js} +1 -1
- package/chunks/{chunk-SAH4BD2J.js → chunk-PQEISIKS.js} +67 -0
- package/chunks/{chunk-ALTQLFEG.js → chunk-PQZBDDNG.js} +5 -194
- package/chunks/{chunk-WEGXPP5E.js → chunk-QFCDF5PL.js} +1 -1
- package/chunks/{chunk-DEYPMJPD.js → chunk-QJNDUTOL.js} +45 -239
- package/chunks/{chunk-OF2DPXUS.js → chunk-QYMAKPY5.js} +119 -24
- package/chunks/{chunk-JVPFTDBK.js → chunk-RFIDDFAL.js} +1 -1
- package/chunks/chunk-RKFGE7JH.js +93 -0
- package/chunks/{chunk-CPPYZHBN.js → chunk-RU7BK6B3.js} +1 -1
- package/chunks/{chunk-KPF2K55D.js → chunk-RZKOA4JE.js} +39 -8
- package/chunks/{chunk-AWFZDYSD.js → chunk-SEDFP3ZI.js} +1 -1
- package/chunks/chunk-SEONHUS3.js +275 -0
- package/chunks/chunk-SS4MRMKE.js +3525 -0
- package/chunks/{chunk-BPMVPWBT.js → chunk-SS5SDCD3.js} +6 -6
- package/chunks/{chunk-J5352S3S.js → chunk-ST5V3ZOC.js} +3 -3
- package/chunks/{chunk-7CWEZQ6T.js → chunk-STUJ7IMZ.js} +0 -77
- package/chunks/{chunk-4K7NQDCG.js → chunk-T4EFG2P5.js} +18 -9
- package/chunks/{chunk-TWSKM647.js → chunk-T7KMERIX.js} +1 -1
- package/chunks/{chunk-HPECDZ6X.js → chunk-TGJ2PKCW.js} +4341 -1408
- package/chunks/{chunk-EC5BONC3.js → chunk-TPI7O7HR.js} +1 -1
- package/chunks/{chunk-T2CRBIDJ.js → chunk-TTX2JUE6.js} +1 -1
- package/chunks/{chunk-AP7WZONS.js → chunk-TU6WVK67.js} +19 -9
- package/chunks/chunk-U54AYGEC.js +337 -0
- package/chunks/{chunk-3WBMPR3S.js → chunk-UAOTD2BN.js} +1 -1
- package/chunks/{chunk-2NNTE2ED.js → chunk-UHQFIS7N.js} +15 -0
- package/chunks/{chunk-SUE2ZMUH.js → chunk-UI4DXRZW.js} +49 -31
- package/chunks/{chunk-76WGY6LW.js → chunk-URE3QBBB.js} +3 -3
- package/chunks/{chunk-KOJ6MHD5.js → chunk-UTLCH2FK.js} +1 -1
- package/chunks/chunk-UVY67MSH.js +205 -0
- package/chunks/{chunk-FJWICLG7.js → chunk-V4264FEG.js} +9 -9
- package/chunks/{chunk-XR7OIAQF.js → chunk-V5J4J5TP.js} +2 -2
- package/chunks/{chunk-Z6L3C4VF.js → chunk-VBCPNIQD.js} +39 -39
- package/chunks/{chunk-HABT2Z7R.js → chunk-VKCJPNGU.js} +4 -4
- package/chunks/{chunk-UCQOSV6A.js → chunk-VKIGT4OG.js} +3 -3
- package/chunks/{chunk-JSY43GMI.js → chunk-VNMZLAVG.js} +185 -174
- package/chunks/{chunk-X2UOOG5V.js → chunk-VQUGEVGR.js} +1 -1
- package/chunks/{chunk-XJS54K4A.js → chunk-VTHREBQM.js} +2 -2
- package/chunks/{chunk-PTQF7WRA.js → chunk-W3CY4QIO.js} +6 -6
- package/chunks/{chunk-LWLEPXKK.js → chunk-W4XG7IZ4.js} +19 -2
- package/chunks/{chunk-IOGKXPL3.js → chunk-W7HH77GN.js} +6 -6
- package/chunks/{chunk-FPH6TXD3.js → chunk-WAOIHTJS.js} +1 -1
- package/chunks/{chunk-3D6PDLNJ.js → chunk-WD3WSEW3.js} +49 -32
- package/chunks/chunk-WLEYH7CD.js +332 -0
- package/chunks/{chunk-JLGFGPZJ.js → chunk-WNPDGUJO.js} +22 -3
- package/chunks/{chunk-O3BUXIPM.js → chunk-WXEA74YB.js} +3 -3
- package/chunks/{chunk-YRLW2MSX.js → chunk-XBVNNDPK.js} +11 -4
- package/chunks/{chunk-VL4YX3FH.js → chunk-XF63PKEN.js} +1 -1
- package/chunks/{chunk-3FSBMAYD.js → chunk-XQFT3QUF.js} +1 -1
- package/chunks/{chunk-5JCZ3UKB.js → chunk-Y5S7LBOZ.js} +44 -7
- package/chunks/{chunk-WZ3QKPMQ.js → chunk-YN44TEOZ.js} +19 -31
- package/chunks/{chunk-2SERYG4T.js → chunk-YTDVNSUQ.js} +1 -1
- package/chunks/{chunk-UWICO5KN.js → chunk-Z44FUM77.js} +3 -3
- package/chunks/{chunk-OT4YKUUV.js → chunk-ZU4UDIWX.js} +2 -2
- package/chunks/{chunk-L436XFLJ.js → chunk-ZZUKP7HV.js} +1 -1
- package/chunks/config-utils-NOCNFTQP.js +114 -0
- package/chunks/contextCommand-DH2NOQBI.js +107 -0
- package/chunks/{core-runtime-CEJRHCRF.js → core-runtime-OLW4OXMV.js} +61 -62
- package/chunks/{create-sub-session-RVHSWVAP.js → create-sub-session-23ITIELI.js} +3 -3
- package/chunks/{create-sub-session-DFZVIG56.js → create-sub-session-ZCGPQTIE.js} +166 -86
- package/chunks/{cron-create-IJGVR5R2.js → cron-create-KJ4IY6PP.js} +57 -10
- package/chunks/{cron-delete-4N5BI6GL.js → cron-delete-MBLQCAYY.js} +4 -4
- package/chunks/{cron-list-2CATIPUX.js → cron-list-DWH2PQ47.js} +4 -4
- package/chunks/{daemon-NAYK4XXU.js → daemon-3GNHB3M2.js} +523 -8
- package/chunks/{daemon-git-worktree-guard-L6ZUFKF7.js → daemon-git-worktree-guard-SHIU7MPJ.js} +58 -59
- package/chunks/daemon-status-provider-WECDBDF7.js +118 -0
- package/chunks/daemon-trust-policy-MX4OYXF3.js +113 -0
- package/chunks/{daemon-trust-policy-monitor-2G3EKQEU.js → daemon-trust-policy-monitor-73WXIKNL.js} +66 -67
- package/chunks/deferred-core-runtime-BKS7O3D6.js +115 -0
- package/chunks/{display-image-6KHQNEAE.js → display-image-BE7I6ZB6.js} +5 -5
- package/chunks/{dist-DJBNNPLN.js → dist-4WXLCBDR.js} +1 -1
- package/chunks/{dist-TJUDJTCB.js → dist-5VXFRTWU.js} +280 -48
- package/chunks/{dist-6H6RZ5H6.js → dist-6BPYWHVD.js} +89 -65
- package/chunks/{dist-ZBVOXSKF.js → dist-GFN5DCBX.js} +74 -65
- package/chunks/{dist-SATKXKUR.js → dist-HZNT6GQS.js} +1 -1
- package/chunks/{dist-FVJZSIO4.js → dist-LVZCXVPF.js} +72 -20
- package/chunks/{dist-7CKN54NL.js → dist-N6W6E753.js} +71 -64
- package/chunks/{dist-4Q7NTUNB.js → dist-NSV4NBPK.js} +31 -14
- package/chunks/{dist-UQUFZDIY.js → dist-SWQMYP2Q.js} +18 -16
- package/chunks/earlyInputCapture-5NNZSVL7.js +108 -0
- package/chunks/{edit-ZERGX3RV.js → edit-IGHPT4I2.js} +47 -48
- package/chunks/{en-6MDBWMTG.js → en-YLXBXM4Z.js} +2 -1
- package/chunks/{enter-worktree-UOZ6ZTP7.js → enter-worktree-35QCAAFP.js} +7 -7
- package/chunks/{enterPlanMode-W2RP3P5B.js → enterPlanMode-LVTPJSAA.js} +51 -52
- package/chunks/environment-HC2PPYDO.js +130 -0
- package/chunks/errors-VCWSG25A.js +114 -0
- package/chunks/{exit-worktree-G2QATUCV.js → exit-worktree-XQD6D543.js} +7 -7
- package/chunks/exitPlanMode-RHI2K2O7.js +84 -0
- package/chunks/{fast-path-4MWBCEUF.js → fast-path-IQNCJOPE.js} +7 -7
- package/chunks/{fast-path-settings-XMFBYFUH.js → fast-path-settings-XH426LUU.js} +3 -3
- package/chunks/{glob-DKTNG32L.js → glob-EANAXPNR.js} +46 -47
- package/chunks/{goal-tools-CNVXMSZD.js → goal-tools-PTD3MBA7.js} +10 -8
- package/chunks/{grep-3NLSS32D.js → grep-3REG7TO6.js} +9 -7
- package/chunks/handleAutoUpdate-PVVFLDQ4.js +110 -0
- package/chunks/i18n-VOKX5QIF.js +125 -0
- package/chunks/{image-gen-63NN2H5N.js → image-gen-J6FDGUZP.js} +8 -10
- package/chunks/initializer-SZVVTGZL.js +114 -0
- package/chunks/installationInfo-R22453J5.js +108 -0
- package/chunks/{keychain-token-storage-3MGFRYGM.js → keychain-token-storage-37XPR34V.js} +2 -2
- package/chunks/list-LK5M5W2N.js +117 -0
- package/chunks/{list-agents-EXRSHIDJ.js → list-agents-DI3YFTDT.js} +2 -2
- package/chunks/{gemini-X5GQHQYF.js → llm-6RQJUVIS.js} +120 -115
- package/chunks/{geminiContentGenerator-UDSWXZXL.js → llm-content-generator-Q7JJDSJR.js} +29 -29
- package/chunks/loadedSettingsAdapter-KF2ZPSPG.js +111 -0
- package/chunks/{loggingContentGenerator-73C7TKDK.js → loggingContentGenerator-SBCIJG2J.js} +330 -37
- package/chunks/{loop-wakeup-XBPB2BRO.js → loop-wakeup-XJFONSQ7.js} +5 -5
- package/chunks/{ls-WFONAND2.js → ls-3VAT2J7A.js} +4 -4
- package/chunks/{lsp-DUKPDUXN.js → lsp-5W7IRUBH.js} +2 -2
- package/chunks/{managed-npm-update-H2KOLQZU.js → managed-npm-update-UG324XFY.js} +59 -60
- package/chunks/mcp-PUSCFGS5.js +111 -0
- package/chunks/{monitor-TGCMNJJH.js → monitor-RJW5AP64.js} +46 -47
- package/chunks/nonInteractiveCli-OIXN4WSR.js +187 -0
- package/chunks/{notebook-edit-YEUNZYDX.js → notebook-edit-5MWEIMS2.js} +47 -48
- package/chunks/{open-with-auth-4UI3KHUR.js → open-with-auth-YN3QZHVM.js} +1 -1
- package/chunks/{openaiContentGenerator-J7LD4VSL.js → openaiContentGenerator-AGTNYSCJ.js} +26 -28
- package/chunks/pidfile-LTA6NT3P.js +112 -0
- package/chunks/process-registry-OAEG6WGC.js +662 -0
- package/chunks/{processUtils-ZHFC7CSL.js → processUtils-GY3Q66CJ.js} +2 -2
- package/chunks/prompt-terminal-ledger-3QS6TCMF.js +106 -0
- package/chunks/{qwenContentGenerator-YEWWK3JQ.js → qwenContentGenerator-NU6PCDA7.js} +51 -52
- package/chunks/{qwenOAuth2-JIYAWXTW.js → qwenOAuth2-OF5WRBQT.js} +7 -9
- package/chunks/{read-file-ZQI3WPVK.js → read-file-DTQL5V62.js} +13 -13
- package/chunks/{read-mcp-resource-7A7NFSFL.js → read-mcp-resource-XD257PGJ.js} +2 -2
- package/chunks/{record-artifact-CPJ4IJSD.js → record-artifact-VW23GS4F.js} +4 -4
- package/chunks/{report-findings-VFM5DENC.js → report-findings-AO5VYFLR.js} +9 -5
- package/chunks/{request-shutdown-6IW46GD7.js → request-shutdown-BCLA3JV2.js} +7 -7
- package/chunks/resumeHistoryUtils-PZ4BER55.js +119 -0
- package/chunks/ripGrep-A2FGBZGY.js +39 -0
- package/chunks/{run-qwen-serve-WHWU7NZ6.js → run-qwen-serve-AESOSKFC.js} +371 -357
- package/chunks/{runtime-E7BSPWQP.js → runtime-YQHSEKG4.js} +71 -72
- package/chunks/scheduled-tasks-XG6KK6NY.js +128 -0
- package/chunks/{scheduler-TJPATFOM.js → scheduler-I4WKXWRZ.js} +60 -61
- package/chunks/{sdk-exporters-http-XXSKBD2C.js → sdk-exporters-http-TTU2CHBU.js} +2 -2
- package/chunks/{sdk-impl-VPNBLV7I.js → sdk-impl-UUMVYMAL.js} +11 -5
- package/chunks/{send-message-OXZK6USO.js → send-message-AJ4OCUBV.js} +25 -9
- package/chunks/serve-MQDTVC7X.js +119 -0
- package/chunks/{server-AXCN7QBJ.js → server-L5ETIKEW.js} +6083 -4965
- package/chunks/{session-HO4US3AG.js → session-LKKXRUJM.js} +116 -114
- package/chunks/session-pr-refresh-5OWA6MC2.js +365 -0
- package/chunks/{settings-B2PFJJN4.js → settings-S6KG7JST.js} +65 -66
- package/chunks/shell-JEQE5AHC.js +94 -0
- package/chunks/{skill-NL3VH562.js → skill-QEGMZXKI.js} +68 -24
- package/chunks/skill-settings-EVY7QF4H.js +119 -0
- package/chunks/spawnChannel-AQP72WPN.js +113 -0
- package/chunks/standalone-update-JUJA4BKV.js +119 -0
- package/chunks/{startInteractiveUI-G2XKSCQ7.js → startInteractiveUI-5ZMSJZ3J.js} +3081 -2477
- package/chunks/{stdioHelpers-7A2EE64Z.js → stdioHelpers-AY6XCDY2.js} +3 -1
- package/chunks/{syntheticOutput-5AJ444QT.js → syntheticOutput-ML43GEFN.js} +3 -3
- package/chunks/{task-create-TY7P6UHG.js → task-create-QN4LYRSE.js} +11 -11
- package/chunks/{task-list-BELMPA75.js → task-list-JPLGK45U.js} +5 -5
- package/chunks/{task-stop-U3S3KZG2.js → task-stop-CXEH5L2D.js} +2 -2
- package/chunks/{task-update-O4IGDPCK.js → task-update-IWEOJFV2.js} +11 -11
- package/chunks/{team-create-IYBUOORE.js → team-create-ZEGP7KVD.js} +46 -47
- package/chunks/{team-delete-YWFXX77L.js → team-delete-RZVVSGCY.js} +5 -5
- package/chunks/{team-plan-approval-YKU57LBM.js → team-plan-approval-SXWT2WZN.js} +46 -47
- package/chunks/terminal-image-renderer-42B6N55E.js +115 -0
- package/chunks/theme-manager-DDYUBC25.js +103 -0
- package/chunks/{todoWrite-435EO2CS.js → todoWrite-WDJNQEMW.js} +43 -25
- package/chunks/{tool-search-4Q3KASIQ.js → tool-search-GDDBA4X4.js} +22 -22
- package/chunks/total-session-admission-6MYP4GBA.js +115 -0
- package/chunks/trustedFolders-LPEIY3GE.js +123 -0
- package/chunks/{types-WYCFCEHR.js → types-HKLPXZB3.js} +1 -3
- package/chunks/{update-relaunch-4DC2KKFS.js → update-relaunch-BOIIZNT3.js} +6 -6
- package/chunks/updateCheck-KSVHYJYE.js +119 -0
- package/chunks/useAutoAcceptIndicator-43D2A4ZN.js +121 -0
- package/chunks/{validateNonInterActiveAuth-YAE4YPO3.js → validateNonInterActiveAuth-WSD4SOIM.js} +108 -106
- package/chunks/{version-QFP7OGWX.js → version-B4CM7RNG.js} +1 -1
- package/chunks/{web-fetch-6T23IK6Q.js → web-fetch-MOHILUZL.js} +16 -18
- package/chunks/{web-search-WBWTCZK2.js → web-search-G4HIMY2V.js} +9 -11
- package/chunks/{web-shell-static-A6QMUNNV.js → web-shell-static-HNB4FDOE.js} +2 -2
- package/chunks/{workflow-FMAA3D4R.js → workflow-H3PCYU5F.js} +130 -95
- package/chunks/workspace-providers-status-AAX7VWMT.js +115 -0
- package/chunks/{workspace-registration-store-CMMX7EPX.js → workspace-registration-store-YTHZ6SL4.js} +1 -1
- package/chunks/workspace-registry-URHGBL4U.js +124 -0
- package/chunks/workspace-service-XJMSLRCU.js +127 -0
- package/chunks/workspace-skills-status-JGEDANNT.js +114 -0
- package/chunks/{workspace-trust-reconciler-PJDQUTJL.js → workspace-trust-reconciler-ZHI5TDYB.js} +74 -73
- package/chunks/write-file-5O4S63L6.js +89 -0
- package/chunks/{zh-TW-MV4FWFB6.js → zh-TW-RPTMRTHG.js} +2 -1
- package/chunks/{zh-X3WGU6SI.js → zh-UNY63FR3.js} +2 -1
- package/chunks/{zoom-image-WVYVFRXF.js → zoom-image-N2IBUVXE.js} +13 -13
- package/cli.js +130 -93
- package/locales/en.js +2 -0
- package/locales/zh-TW.js +2 -0
- package/locales/zh.js +2 -0
- package/package.json +3 -3
- package/web-shell/assets/{abnfDiagram-VCTEODGH-d-8xa8uz.js → abnfDiagram-VCTEODGH-OJQpqC9m.js} +1 -1
- package/web-shell/assets/{arc-BhB7CrGK.js → arc-BxH0YR17.js} +1 -1
- package/web-shell/assets/{architectureDiagram-5GKGNRK7-BDCd_IcJ.js → architectureDiagram-5GKGNRK7-CxyWiGfF.js} +1 -1
- package/web-shell/assets/{blockDiagram-NRAW4CY4-C-AHu6mi.js → blockDiagram-NRAW4CY4-DukXbJQ7.js} +1 -1
- package/web-shell/assets/{c4Diagram-UCG6FXSJ-CFjQt0vl.js → c4Diagram-UCG6FXSJ-DvS1T6pK.js} +1 -1
- package/web-shell/assets/channel-Dbbg7P-u.js +1 -0
- package/web-shell/assets/{chunk-2Q5K7J3B-DRjwqaDq.js → chunk-2Q5K7J3B-qvqfJ7VZ.js} +1 -1
- package/web-shell/assets/{chunk-5VM5RSS4-eHM9noJE.js → chunk-5VM5RSS4-BJ3kJYte.js} +1 -1
- package/web-shell/assets/{chunk-F27PBJKO-CcSWUYn1.js → chunk-F27PBJKO-BYPVESil.js} +1 -1
- package/web-shell/assets/{chunk-G27WJ6UU-DNr-RF5S.js → chunk-G27WJ6UU-B4UYFElk.js} +1 -1
- package/web-shell/assets/{chunk-JWPE2WC7-rVJHoNF8.js → chunk-JWPE2WC7-8zGKVNUU.js} +1 -1
- package/web-shell/assets/{chunk-LCL6LL3I-B2aX0Gzy.js → chunk-LCL6LL3I-CbaHONpI.js} +1 -1
- package/web-shell/assets/{chunk-POPQ4Y6H-DVp07n32.js → chunk-POPQ4Y6H-f8kAjzlF.js} +1 -1
- package/web-shell/assets/{chunk-SVP7TREG-C6QB_KUr.js → chunk-SVP7TREG-Dm8ahq7K.js} +1 -1
- package/web-shell/assets/{chunk-XXDRQBXY-CLVxDNCy.js → chunk-XXDRQBXY-yrcLzv8z.js} +1 -1
- package/web-shell/assets/classDiagram-DTDB5LWJ-cDYs8iT0.js +1 -0
- package/web-shell/assets/classDiagram-v2-JRS7N3AN-cDYs8iT0.js +1 -0
- package/web-shell/assets/{cose-bilkent-JH36ORCC-B_aKX3A3.js → cose-bilkent-JH36ORCC-DN1C22IH.js} +1 -1
- package/web-shell/assets/{cynefin-OW5HDTMX-BBw2pPUa.js → cynefin-OW5HDTMX-B2oF7XD_.js} +1 -1
- package/web-shell/assets/{cynefinDiagram-5FMLGOSQ-WWPiBTwk.js → cynefinDiagram-5FMLGOSQ-DGgIKpiM.js} +1 -1
- package/web-shell/assets/{dagre-3AP2YEHR-CPtIdka-.js → dagre-3AP2YEHR-BHKawzoP.js} +1 -1
- package/web-shell/assets/{diagram-S7CK7UJ4-Dj5og1Xi.js → diagram-S7CK7UJ4-6UgKqreR.js} +1 -1
- package/web-shell/assets/{diagram-UQ7AKVKN-CC_x70YC.js → diagram-UQ7AKVKN-BXJbPJ6F.js} +1 -1
- package/web-shell/assets/{diagram-VSXAHHWV-rXMfsO4n.js → diagram-VSXAHHWV-DVnYFPkS.js} +1 -1
- package/web-shell/assets/{diagram-VX7I27RA-DEmLYQbh.js → diagram-VX7I27RA-CjBoC0Rq.js} +1 -1
- package/web-shell/assets/{diagram-Z3DM3KII-B0ys6Vxx.js → diagram-Z3DM3KII-KZdUceQT.js} +1 -1
- package/web-shell/assets/{ebnfDiagram-PWID7BFC-Bq6y6lKH.js → ebnfDiagram-PWID7BFC-5UekGScM.js} +1 -1
- package/web-shell/assets/{erDiagram-SSCWMZ5O-l69JeBZ4.js → erDiagram-SSCWMZ5O-TRWexoj1.js} +1 -1
- package/web-shell/assets/{flowDiagram-A5DVABFB-Cm-EzGY4.js → flowDiagram-A5DVABFB-Di5bhBVo.js} +1 -1
- package/web-shell/assets/{ganttDiagram-EL5Y4UJY-BRS9ZOp7.js → ganttDiagram-EL5Y4UJY-DpJUJ8Dp.js} +1 -1
- package/web-shell/assets/{gitGraphDiagram-WWUBYQGX-DAMRKgLk.js → gitGraphDiagram-WWUBYQGX-b08xIx2C.js} +1 -1
- package/web-shell/assets/index-BvDpDHTN.css +36 -0
- package/web-shell/assets/index-Cg60lhnI.js +1913 -0
- package/web-shell/assets/{index-Bncx8E8M.js → index-n6dFH09O.js} +1 -1
- package/web-shell/assets/{infoDiagram-RXCK75RN-DasffaZp.js → infoDiagram-RXCK75RN-Cz14FAt7.js} +1 -1
- package/web-shell/assets/{ishikawaDiagram-5VMMS53U-CmRUt3C-.js → ishikawaDiagram-5VMMS53U-7nxp2bIU.js} +1 -1
- package/web-shell/assets/{journeyDiagram-EYS64GPL-DzhE_c1Z.js → journeyDiagram-EYS64GPL-CjL47fk0.js} +1 -1
- package/web-shell/assets/{kanban-definition-3QL26DDD-BH5b6nn3.js → kanban-definition-3QL26DDD-CWFl-mHs.js} +1 -1
- package/web-shell/assets/{layout-BxoLK-LY.js → layout-BUP1BcwB.js} +1 -1
- package/web-shell/assets/{linear-CqDPvVI7.js → linear-CqbwqSbW.js} +1 -1
- package/web-shell/assets/{mermaid.core-DBoN4plo.js → mermaid.core-C_50HLol.js} +6 -6
- package/web-shell/assets/{mindmap-definition-FBJOCRG2-DJJtXPEM.js → mindmap-definition-FBJOCRG2-DbyD_AoU.js} +1 -1
- package/web-shell/assets/{pegDiagram-XKGWAZYB-DmgPXP5l.js → pegDiagram-XKGWAZYB-VozWyqyY.js} +1 -1
- package/web-shell/assets/{pieDiagram-E7YTZNPT-1ezjzcI5.js → pieDiagram-E7YTZNPT-O7EKamBL.js} +1 -1
- package/web-shell/assets/{quadrantDiagram-AXDQQJYC-ChKARz3k.js → quadrantDiagram-AXDQQJYC-DOmPZxHg.js} +1 -1
- package/web-shell/assets/{railroadDiagram-O6MQD6OU-k7mNB_QT.js → railroadDiagram-O6MQD6OU-ElyfC2zE.js} +1 -1
- package/web-shell/assets/{requirementDiagram-EFPCY7ZU-B0XFsii0.js → requirementDiagram-EFPCY7ZU-DbnqPbzR.js} +1 -1
- package/web-shell/assets/{sankeyDiagram-P5KCCOFB-repJ2Ukk.js → sankeyDiagram-P5KCCOFB-yPWliSHr.js} +1 -1
- package/web-shell/assets/{sequenceDiagram-WJ2MYXX4-D0gUSKGu.js → sequenceDiagram-WJ2MYXX4-BImQFomC.js} +1 -1
- package/web-shell/assets/{sizeCapture-X5ZJPWSS-CE463F74.js → sizeCapture-X5ZJPWSS-DEvqeEHo.js} +1 -1
- package/web-shell/assets/{stateDiagram-HBIQ2CUA-003zYtJa.js → stateDiagram-HBIQ2CUA-BbLtiF9u.js} +1 -1
- package/web-shell/assets/stateDiagram-v2-4QOOHH4V-DGtlzdpx.js +1 -0
- package/web-shell/assets/{swimlanes-XN3QIQJK-DBj8MFpu.js → swimlanes-XN3QIQJK-RFewDF6v.js} +1 -1
- package/web-shell/assets/swimlanesDiagram-VK2B7HYN-CITCVFdx.js +8 -0
- package/web-shell/assets/{timeline-definition-24CTP7MA-D2aCh4a9.js → timeline-definition-24CTP7MA-DF4L3-UR.js} +1 -1
- package/web-shell/assets/{vennDiagram-4TSXK5OY-BHMfWBpl.js → vennDiagram-4TSXK5OY-BtlSJXaA.js} +1 -1
- package/web-shell/assets/{wardleyDiagram-VM6X3IG4-RdHAj66j.js → wardleyDiagram-VM6X3IG4-C8ogG8Fh.js} +1 -1
- package/web-shell/assets/{xychartDiagram-S5SC5T6Z-BgJWOvq0.js → xychartDiagram-S5SC5T6Z-C5QVfsGQ.js} +1 -1
- package/web-shell/index.html +3 -3
- package/chunks/MaxSizedBox-BFVLZP2E.js +0 -112
- package/chunks/agent-headless-UCBCS4V4.js +0 -87
- package/chunks/bridge-FRNYLYY7.js +0 -119
- package/chunks/channel-settings-store-IV4KDL7N.js +0 -117
- package/chunks/chunk-I6VVOZDK.js +0 -202
- package/chunks/chunk-JS73NNWF.js +0 -30
- package/chunks/chunk-K2OJUPOE.js +0 -78
- package/chunks/chunk-P3QQPMQA.js +0 -19
- package/chunks/chunk-SDVF6A42.js +0 -945
- package/chunks/chunk-T26EAKDL.js +0 -13
- package/chunks/chunk-VGHZT6JR.js +0 -51
- package/chunks/config-utils-PMX4QZ5Y.js +0 -113
- package/chunks/contextCommand-NZRLVAFC.js +0 -108
- package/chunks/daemon-status-provider-FTTYZEKN.js +0 -118
- package/chunks/daemon-trust-policy-WMGFPA3Z.js +0 -114
- package/chunks/deferred-core-runtime-BUFEFYNA.js +0 -116
- package/chunks/earlyInputCapture-ROPLMXA7.js +0 -109
- package/chunks/environment-ZBJ23YVR.js +0 -131
- package/chunks/errors-U5KNAADB.js +0 -115
- package/chunks/exitPlanMode-VFJ5R5DD.js +0 -85
- package/chunks/handleAutoUpdate-W4BUYFT7.js +0 -111
- package/chunks/i18n-KX7FEKJJ.js +0 -126
- package/chunks/initializer-SNVVLS7Y.js +0 -115
- package/chunks/installationInfo-D4XGQNHJ.js +0 -109
- package/chunks/list-WYECMLXZ.js +0 -118
- package/chunks/loadedSettingsAdapter-5WZBXBCR.js +0 -112
- package/chunks/mcp-CBWAROY3.js +0 -112
- package/chunks/nonInteractiveCli-O232UUV7.js +0 -185
- package/chunks/pidfile-MSPQ255Y.js +0 -113
- package/chunks/process-registry-PMJOA5CO.js +0 -172
- package/chunks/prompt-terminal-ledger-YPGMNDXT.js +0 -107
- package/chunks/resumeHistoryUtils-35D4KAVT.js +0 -120
- package/chunks/ripGrep-46N4FLOS.js +0 -39
- package/chunks/serve-WQ54UIYG.js +0 -120
- package/chunks/shell-7XMSANI3.js +0 -95
- package/chunks/skill-settings-SKMN5YXC.js +0 -120
- package/chunks/spawnChannel-NE43EEO3.js +0 -113
- package/chunks/standalone-update-XOCWGXAH.js +0 -120
- package/chunks/terminal-image-renderer-NREKYTAD.js +0 -116
- package/chunks/theme-manager-IJS6OICX.js +0 -104
- package/chunks/total-session-admission-L5RPEFZ2.js +0 -114
- package/chunks/trustedFolders-OILZCHRD.js +0 -124
- package/chunks/updateCheck-AK4COHNK.js +0 -120
- package/chunks/useAutoAcceptIndicator-O2N2Q6KG.js +0 -122
- package/chunks/workspace-providers-status-OCFEWIPQ.js +0 -116
- package/chunks/workspace-registry-WJLZPRTG.js +0 -123
- package/chunks/workspace-service-5ZOBMMIB.js +0 -131
- package/chunks/workspace-skills-status-B6NJZD4B.js +0 -115
- package/chunks/write-file-B2RNX6SU.js +0 -90
- package/web-shell/assets/channel-CU-Zyv0r.js +0 -1
- package/web-shell/assets/classDiagram-DTDB5LWJ-C0J2_LKs.js +0 -1
- package/web-shell/assets/classDiagram-v2-JRS7N3AN-C0J2_LKs.js +0 -1
- package/web-shell/assets/index-C-XlQn24.css +0 -5
- package/web-shell/assets/index-gdvMN4J1.js +0 -1860
- package/web-shell/assets/stateDiagram-v2-4QOOHH4V-2uACDdJN.js +0 -1
- package/web-shell/assets/swimlanesDiagram-VK2B7HYN-C4JJkavU.js +0 -8
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
// Force strict mode and setup for ESM
|
|
2
|
+
"use strict";
|
|
3
|
+
import {
|
|
4
|
+
createLoadedSettingsAdapter
|
|
5
|
+
} from "./chunk-SEDFP3ZI.js";
|
|
6
|
+
import "./chunk-5SBVOOA2.js";
|
|
7
|
+
import "./chunk-RKUWKYED.js";
|
|
8
|
+
import "./chunk-RZKOA4JE.js";
|
|
9
|
+
import "./chunk-GOXKNSDZ.js";
|
|
10
|
+
import "./chunk-IDS7MSUP.js";
|
|
11
|
+
import "./chunk-CLWO3B77.js";
|
|
12
|
+
import "./chunk-5EJZE3FP.js";
|
|
13
|
+
import "./chunk-5ZJL3AIV.js";
|
|
14
|
+
import "./chunk-MZCJWS5Y.js";
|
|
15
|
+
import "./chunk-H4LCV44K.js";
|
|
16
|
+
import "./chunk-NPQ5ZKRP.js";
|
|
17
|
+
import "./chunk-MR3PXB6E.js";
|
|
18
|
+
import "./chunk-BFYGL2XL.js";
|
|
19
|
+
import "./chunk-VNMZLAVG.js";
|
|
20
|
+
import "./chunk-CQH5KTKC.js";
|
|
21
|
+
import "./chunk-LJZSMWOH.js";
|
|
22
|
+
import "./chunk-TU6WVK67.js";
|
|
23
|
+
import "./chunk-WNPDGUJO.js";
|
|
24
|
+
import "./chunk-K5KXUXWC.js";
|
|
25
|
+
import "./chunk-62GQFYID.js";
|
|
26
|
+
import "./chunk-AYFA7MZV.js";
|
|
27
|
+
import "./chunk-XQFT3QUF.js";
|
|
28
|
+
import "./chunk-VTHREBQM.js";
|
|
29
|
+
import "./chunk-ZPJWUGCS.js";
|
|
30
|
+
import "./chunk-3JXM2CVW.js";
|
|
31
|
+
import "./chunk-ST5V3ZOC.js";
|
|
32
|
+
import "./chunk-ECE3UYVO.js";
|
|
33
|
+
import "./chunk-GOFAQQZA.js";
|
|
34
|
+
import "./chunk-5M6IDOMF.js";
|
|
35
|
+
import "./chunk-TWPJO254.js";
|
|
36
|
+
import "./chunk-CQ35AJ4Z.js";
|
|
37
|
+
import "./chunk-EKSCLBBF.js";
|
|
38
|
+
import "./chunk-LUEHOUHM.js";
|
|
39
|
+
import "./chunk-WXEA74YB.js";
|
|
40
|
+
import "./chunk-42IDLQWS.js";
|
|
41
|
+
import "./chunk-6PVPNMXU.js";
|
|
42
|
+
import "./chunk-JB4JIVTJ.js";
|
|
43
|
+
import "./chunk-DJBQCO2E.js";
|
|
44
|
+
import "./chunk-IRH27ZC2.js";
|
|
45
|
+
import "./chunk-QHWCP53L.js";
|
|
46
|
+
import "./chunk-D5LUXLUH.js";
|
|
47
|
+
import "./chunk-O6GEWCJA.js";
|
|
48
|
+
import "./chunk-LGO7DEXL.js";
|
|
49
|
+
import "./chunk-2SXSLSQE.js";
|
|
50
|
+
import "./chunk-CPBF7KYF.js";
|
|
51
|
+
import "./chunk-KJO2LBUK.js";
|
|
52
|
+
import "./chunk-TTX2JUE6.js";
|
|
53
|
+
import "./chunk-4K7KNVWH.js";
|
|
54
|
+
import "./chunk-QJNDUTOL.js";
|
|
55
|
+
import "./chunk-UVY67MSH.js";
|
|
56
|
+
import "./chunk-JWALNCLT.js";
|
|
57
|
+
import "./chunk-NIFYWDYN.js";
|
|
58
|
+
import "./chunk-C2X7KY45.js";
|
|
59
|
+
import "./chunk-JHYH6PYQ.js";
|
|
60
|
+
import "./chunk-7J6OTNGO.js";
|
|
61
|
+
import "./chunk-V5J4J5TP.js";
|
|
62
|
+
import "./chunk-MLXTMF7H.js";
|
|
63
|
+
import "./chunk-NAVJD2PQ.js";
|
|
64
|
+
import "./chunk-B466ZSHZ.js";
|
|
65
|
+
import "./chunk-4QHPPXK2.js";
|
|
66
|
+
import "./chunk-QHMLYMMS.js";
|
|
67
|
+
import "./chunk-3WK3QDNV.js";
|
|
68
|
+
import "./chunk-VNOVK4I7.js";
|
|
69
|
+
import "./chunk-PQEISIKS.js";
|
|
70
|
+
import "./chunk-EB6QRGHM.js";
|
|
71
|
+
import "./chunk-CMHFCLBU.js";
|
|
72
|
+
import "./chunk-S6LOFUVP.js";
|
|
73
|
+
import "./chunk-CFKIH3D3.js";
|
|
74
|
+
import "./chunk-2LD5U7Q3.js";
|
|
75
|
+
import "./chunk-DJ2GSRLV.js";
|
|
76
|
+
import "./chunk-DYXFD5RO.js";
|
|
77
|
+
import "./chunk-V4264FEG.js";
|
|
78
|
+
import "./chunk-QYMAKPY5.js";
|
|
79
|
+
import "./chunk-XBVNNDPK.js";
|
|
80
|
+
import "./chunk-VGC4I5JJ.js";
|
|
81
|
+
import "./chunk-BKWNKLZB.js";
|
|
82
|
+
import "./chunk-6PJOTWAN.js";
|
|
83
|
+
import "./chunk-BWORX6FA.js";
|
|
84
|
+
import "./chunk-WZAD4ZNJ.js";
|
|
85
|
+
import "./chunk-FPGTNKCP.js";
|
|
86
|
+
import "./chunk-6DIGWMGT.js";
|
|
87
|
+
import "./chunk-ARF6IJHM.js";
|
|
88
|
+
import "./chunk-XZA32HII.js";
|
|
89
|
+
import "./chunk-23RFD54N.js";
|
|
90
|
+
import "./chunk-PPKZ7JOE.js";
|
|
91
|
+
import "./chunk-HHJLM3WQ.js";
|
|
92
|
+
import "./chunk-B5PHIJGI.js";
|
|
93
|
+
import "./chunk-74TONY4F.js";
|
|
94
|
+
import "./chunk-XF63PKEN.js";
|
|
95
|
+
import "./chunk-CAJTKR6W.js";
|
|
96
|
+
import "./chunk-ZU4UDIWX.js";
|
|
97
|
+
import "./chunk-AQ37AY7B.js";
|
|
98
|
+
import "./chunk-PDQGMSZK.js";
|
|
99
|
+
import "./chunk-UTLCH2FK.js";
|
|
100
|
+
import "./chunk-UHQFIS7N.js";
|
|
101
|
+
import "./chunk-7FA2II6K.js";
|
|
102
|
+
import "./chunk-75DOP5OR.js";
|
|
103
|
+
import "./chunk-DMTGGOSA.js";
|
|
104
|
+
import "./chunk-YQ3U5MUC.js";
|
|
105
|
+
import "./chunk-AMDSOFFV.js";
|
|
106
|
+
import "./chunk-TBWQLLFO.js";
|
|
107
|
+
import "./chunk-5O2XNYP6.js";
|
|
108
|
+
import "./chunk-J2S4EL5Y.js";
|
|
109
|
+
export {
|
|
110
|
+
createLoadedSettingsAdapter
|
|
111
|
+
};
|
|
@@ -2,63 +2,121 @@
|
|
|
2
2
|
"use strict";
|
|
3
3
|
import {
|
|
4
4
|
OpenAILogger
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-ST5V3ZOC.js";
|
|
6
|
+
import {
|
|
7
|
+
computeThresholds,
|
|
8
|
+
estimateContentTokens,
|
|
9
|
+
estimateContextTextTokens
|
|
10
|
+
} from "./chunk-ECE3UYVO.js";
|
|
11
|
+
import "./chunk-GOFAQQZA.js";
|
|
12
|
+
import "./chunk-5M6IDOMF.js";
|
|
13
|
+
import "./chunk-TWPJO254.js";
|
|
14
|
+
import "./chunk-CQ35AJ4Z.js";
|
|
15
|
+
import "./chunk-EKSCLBBF.js";
|
|
16
|
+
import "./chunk-LUEHOUHM.js";
|
|
17
|
+
import "./chunk-WXEA74YB.js";
|
|
18
|
+
import "./chunk-42IDLQWS.js";
|
|
19
|
+
import "./chunk-6PVPNMXU.js";
|
|
20
|
+
import "./chunk-JB4JIVTJ.js";
|
|
21
|
+
import "./chunk-DJBQCO2E.js";
|
|
22
|
+
import "./chunk-IRH27ZC2.js";
|
|
23
|
+
import "./chunk-QHWCP53L.js";
|
|
24
|
+
import "./chunk-D5LUXLUH.js";
|
|
25
|
+
import "./chunk-O6GEWCJA.js";
|
|
26
|
+
import {
|
|
27
|
+
getCustomSystemPrompt
|
|
28
|
+
} from "./chunk-LGO7DEXL.js";
|
|
29
|
+
import "./chunk-2SXSLSQE.js";
|
|
30
|
+
import "./chunk-CPBF7KYF.js";
|
|
6
31
|
import {
|
|
7
32
|
areSensitiveSpanAttributesEnabled
|
|
8
|
-
} from "./chunk-
|
|
33
|
+
} from "./chunk-KJO2LBUK.js";
|
|
34
|
+
import "./chunk-TTX2JUE6.js";
|
|
35
|
+
import "./chunk-4K7KNVWH.js";
|
|
36
|
+
import "./chunk-QJNDUTOL.js";
|
|
37
|
+
import "./chunk-UVY67MSH.js";
|
|
38
|
+
import "./chunk-JWALNCLT.js";
|
|
39
|
+
import "./chunk-NIFYWDYN.js";
|
|
40
|
+
import "./chunk-C2X7KY45.js";
|
|
41
|
+
import "./chunk-JHYH6PYQ.js";
|
|
42
|
+
import "./chunk-7J6OTNGO.js";
|
|
43
|
+
import "./chunk-V5J4J5TP.js";
|
|
44
|
+
import "./chunk-MLXTMF7H.js";
|
|
45
|
+
import "./chunk-NAVJD2PQ.js";
|
|
46
|
+
import "./chunk-B466ZSHZ.js";
|
|
9
47
|
import {
|
|
10
48
|
retryContext
|
|
11
|
-
} from "./chunk-
|
|
12
|
-
import "./chunk-
|
|
49
|
+
} from "./chunk-4QHPPXK2.js";
|
|
50
|
+
import "./chunk-QHMLYMMS.js";
|
|
51
|
+
import "./chunk-3WK3QDNV.js";
|
|
13
52
|
import {
|
|
14
53
|
OpenAIContentConverter,
|
|
15
54
|
openaiRequestCaptureContext
|
|
16
|
-
} from "./chunk-
|
|
55
|
+
} from "./chunk-DJECZIJX.js";
|
|
17
56
|
import {
|
|
18
57
|
getGenAiUsageProvenance
|
|
19
|
-
} from "./chunk-
|
|
58
|
+
} from "./chunk-ABS25QER.js";
|
|
20
59
|
import {
|
|
21
60
|
runtimeDiagnostics
|
|
22
61
|
} from "./chunk-VNOVK4I7.js";
|
|
23
62
|
import {
|
|
24
63
|
createGenAiExchange
|
|
25
|
-
} from "./chunk-
|
|
26
|
-
import "./chunk-
|
|
64
|
+
} from "./chunk-KYWTPLBJ.js";
|
|
65
|
+
import "./chunk-PQEISIKS.js";
|
|
66
|
+
import "./chunk-EB6QRGHM.js";
|
|
67
|
+
import "./chunk-CMHFCLBU.js";
|
|
68
|
+
import "./chunk-S6LOFUVP.js";
|
|
27
69
|
import "./chunk-CFKIH3D3.js";
|
|
28
|
-
import "./chunk-
|
|
29
|
-
import "./chunk-
|
|
70
|
+
import "./chunk-2LD5U7Q3.js";
|
|
71
|
+
import "./chunk-DJ2GSRLV.js";
|
|
72
|
+
import "./chunk-DYXFD5RO.js";
|
|
73
|
+
import "./chunk-V4264FEG.js";
|
|
30
74
|
import {
|
|
31
75
|
ApiErrorEvent,
|
|
32
76
|
ApiRequestEvent,
|
|
33
77
|
ApiResponseEvent,
|
|
78
|
+
DiscoveredMCPTool,
|
|
34
79
|
isInternalPromptId,
|
|
35
80
|
logApiError,
|
|
36
81
|
logApiRequest,
|
|
37
82
|
logApiResponse,
|
|
83
|
+
subagentIdentityContext,
|
|
38
84
|
subagentNameContext
|
|
39
|
-
} from "./chunk-
|
|
40
|
-
import "./chunk-
|
|
85
|
+
} from "./chunk-QYMAKPY5.js";
|
|
86
|
+
import "./chunk-XBVNNDPK.js";
|
|
41
87
|
import "./chunk-VGC4I5JJ.js";
|
|
42
|
-
import "./chunk-
|
|
43
|
-
import "./chunk-
|
|
44
|
-
import "./chunk-
|
|
88
|
+
import "./chunk-BKWNKLZB.js";
|
|
89
|
+
import "./chunk-6PJOTWAN.js";
|
|
90
|
+
import "./chunk-BWORX6FA.js";
|
|
45
91
|
import "./chunk-WZAD4ZNJ.js";
|
|
46
|
-
import
|
|
47
|
-
|
|
48
|
-
|
|
92
|
+
import {
|
|
93
|
+
DEFAULT_TOKEN_LIMIT
|
|
94
|
+
} from "./chunk-FPGTNKCP.js";
|
|
95
|
+
import "./chunk-6DIGWMGT.js";
|
|
96
|
+
import "./chunk-ARF6IJHM.js";
|
|
49
97
|
import "./chunk-XZA32HII.js";
|
|
50
|
-
import "./chunk-
|
|
51
|
-
import "./chunk-
|
|
98
|
+
import "./chunk-23RFD54N.js";
|
|
99
|
+
import "./chunk-PPKZ7JOE.js";
|
|
52
100
|
import "./chunk-HHJLM3WQ.js";
|
|
53
101
|
import {
|
|
54
102
|
API_CALL_ABORTED_SPAN_STATUS_MESSAGE,
|
|
55
103
|
API_CALL_FAILED_SPAN_STATUS_MESSAGE,
|
|
56
104
|
endLLMRequestSpan,
|
|
105
|
+
isTelemetrySdkInitialized,
|
|
106
|
+
isValidContextUsage,
|
|
57
107
|
startLLMRequestSpanWithContext
|
|
58
|
-
} from "./chunk-
|
|
108
|
+
} from "./chunk-B5PHIJGI.js";
|
|
59
109
|
import "./chunk-74TONY4F.js";
|
|
60
|
-
import "./chunk-
|
|
61
|
-
import "./chunk-
|
|
110
|
+
import "./chunk-XF63PKEN.js";
|
|
111
|
+
import "./chunk-CAJTKR6W.js";
|
|
112
|
+
import {
|
|
113
|
+
buildSkillLlmContent
|
|
114
|
+
} from "./chunk-ZU4UDIWX.js";
|
|
115
|
+
import "./chunk-AQ37AY7B.js";
|
|
116
|
+
import "./chunk-PDQGMSZK.js";
|
|
117
|
+
import {
|
|
118
|
+
ToolNames
|
|
119
|
+
} from "./chunk-UTLCH2FK.js";
|
|
62
120
|
import {
|
|
63
121
|
createDebugLogger,
|
|
64
122
|
getErrorMessage,
|
|
@@ -66,7 +124,7 @@ import {
|
|
|
66
124
|
getErrorType,
|
|
67
125
|
getSessionIdFromContext,
|
|
68
126
|
isAbortError
|
|
69
|
-
} from "./chunk-
|
|
127
|
+
} from "./chunk-UHQFIS7N.js";
|
|
70
128
|
import "./chunk-75DOP5OR.js";
|
|
71
129
|
import "./chunk-DMTGGOSA.js";
|
|
72
130
|
import "./chunk-YQ3U5MUC.js";
|
|
@@ -94,6 +152,209 @@ init_esbuild_shims();
|
|
|
94
152
|
init_esbuild_shims();
|
|
95
153
|
init_esm();
|
|
96
154
|
|
|
155
|
+
// packages/core/src/core/loggingContentGenerator/context-usage-snapshot.ts
|
|
156
|
+
init_esbuild_shims();
|
|
157
|
+
import * as path from "node:path";
|
|
158
|
+
function toPart(part) {
|
|
159
|
+
return typeof part === "string" ? { text: part } : part;
|
|
160
|
+
}
|
|
161
|
+
__name(toPart, "toPart");
|
|
162
|
+
function toContent(content) {
|
|
163
|
+
if (Array.isArray(content)) {
|
|
164
|
+
return { role: "user", parts: content.map(toPart) };
|
|
165
|
+
}
|
|
166
|
+
if (typeof content === "string") {
|
|
167
|
+
return { role: "user", parts: [{ text: content }] };
|
|
168
|
+
}
|
|
169
|
+
if ("parts" in content) {
|
|
170
|
+
return {
|
|
171
|
+
...content,
|
|
172
|
+
parts: content.parts?.filter((part) => part != null).map(toPart) ?? []
|
|
173
|
+
};
|
|
174
|
+
}
|
|
175
|
+
return { role: "user", parts: [toPart(content)] };
|
|
176
|
+
}
|
|
177
|
+
__name(toContent, "toContent");
|
|
178
|
+
function toContents(contents) {
|
|
179
|
+
return Array.isArray(contents) ? contents.map((content) => toContent(content)) : [toContent(contents)];
|
|
180
|
+
}
|
|
181
|
+
__name(toContents, "toContents");
|
|
182
|
+
function requestFunctionDeclarations(request) {
|
|
183
|
+
const declarations = [];
|
|
184
|
+
for (const tool of request.config?.tools ?? []) {
|
|
185
|
+
if (typeof tool === "object" && tool !== null && "tool" in tool) {
|
|
186
|
+
return void 0;
|
|
187
|
+
}
|
|
188
|
+
if (typeof tool === "object" && tool !== null && "functionDeclarations" in tool && Array.isArray(tool.functionDeclarations)) {
|
|
189
|
+
declarations.push(...tool.functionDeclarations);
|
|
190
|
+
}
|
|
191
|
+
}
|
|
192
|
+
return declarations;
|
|
193
|
+
}
|
|
194
|
+
__name(requestFunctionDeclarations, "requestFunctionDeclarations");
|
|
195
|
+
function estimateToolCategories(request, config) {
|
|
196
|
+
let builtinTools = 0;
|
|
197
|
+
let mcpTools = 0;
|
|
198
|
+
let skillTool = 0;
|
|
199
|
+
const registry = config.getToolRegistry();
|
|
200
|
+
const declarations = requestFunctionDeclarations(request);
|
|
201
|
+
if (!declarations) return void 0;
|
|
202
|
+
for (const declaration of declarations) {
|
|
203
|
+
const tokens = estimateContextTextTokens(JSON.stringify(declaration));
|
|
204
|
+
if (declaration.name === ToolNames.SKILL) {
|
|
205
|
+
skillTool += tokens;
|
|
206
|
+
} else if (declaration.name && registry.getTool(declaration.name) instanceof DiscoveredMCPTool) {
|
|
207
|
+
mcpTools += tokens;
|
|
208
|
+
} else {
|
|
209
|
+
builtinTools += tokens;
|
|
210
|
+
}
|
|
211
|
+
}
|
|
212
|
+
return { builtinTools, mcpTools, skillTool };
|
|
213
|
+
}
|
|
214
|
+
__name(estimateToolCategories, "estimateToolCategories");
|
|
215
|
+
function extractMemoryTokens(systemInstruction, config) {
|
|
216
|
+
let remaining = systemInstruction;
|
|
217
|
+
let memoryTokens = 0;
|
|
218
|
+
for (const configured of [
|
|
219
|
+
config.getUserMemory(),
|
|
220
|
+
config.getAutoMemoryPrompt()
|
|
221
|
+
]) {
|
|
222
|
+
const segment = configured.trim();
|
|
223
|
+
if (!segment) continue;
|
|
224
|
+
const index = remaining.indexOf(segment);
|
|
225
|
+
if (index < 0) continue;
|
|
226
|
+
remaining = remaining.slice(0, index) + remaining.slice(index + segment.length);
|
|
227
|
+
memoryTokens += estimateContextTextTokens(segment);
|
|
228
|
+
}
|
|
229
|
+
return { systemInstruction: remaining, memoryTokens };
|
|
230
|
+
}
|
|
231
|
+
__name(extractMemoryTokens, "extractMemoryTokens");
|
|
232
|
+
function indexLoadedSkillBodies(outputs) {
|
|
233
|
+
const tokensByOutput = /* @__PURE__ */ new Map();
|
|
234
|
+
const outputByHeader = /* @__PURE__ */ new Map();
|
|
235
|
+
for (const output of outputs) {
|
|
236
|
+
if (tokensByOutput.has(output)) continue;
|
|
237
|
+
tokensByOutput.set(output, estimateContextTextTokens(output));
|
|
238
|
+
const lineEnd = output.indexOf("\n");
|
|
239
|
+
const header = lineEnd < 0 ? output : output.slice(0, lineEnd);
|
|
240
|
+
if (!outputByHeader.has(header)) {
|
|
241
|
+
outputByHeader.set(header, output);
|
|
242
|
+
} else if (outputByHeader.get(header) !== output) {
|
|
243
|
+
outputByHeader.set(header, void 0);
|
|
244
|
+
}
|
|
245
|
+
}
|
|
246
|
+
return { tokensByOutput, outputByHeader };
|
|
247
|
+
}
|
|
248
|
+
__name(indexLoadedSkillBodies, "indexLoadedSkillBodies");
|
|
249
|
+
function loadedSkillBodies(config) {
|
|
250
|
+
const skillTool = config.getToolRegistry().getTool(ToolNames.SKILL);
|
|
251
|
+
if (!skillTool || !("getLoadedSkillNames" in skillTool) || typeof skillTool.getLoadedSkillNames !== "function") {
|
|
252
|
+
return indexLoadedSkillBodies([]);
|
|
253
|
+
}
|
|
254
|
+
if ("getLoadedSkillContents" in skillTool && typeof skillTool.getLoadedSkillContents === "function") {
|
|
255
|
+
return indexLoadedSkillBodies(
|
|
256
|
+
skillTool.getLoadedSkillContents()
|
|
257
|
+
);
|
|
258
|
+
}
|
|
259
|
+
const cachedSkills = config.getSkillManager()?.getCachedSkills();
|
|
260
|
+
if (!cachedSkills) return indexLoadedSkillBodies([]);
|
|
261
|
+
const loadedNames = skillTool.getLoadedSkillNames();
|
|
262
|
+
const outputs = [];
|
|
263
|
+
for (const skill of cachedSkills) {
|
|
264
|
+
if (!loadedNames.has(skill.name)) continue;
|
|
265
|
+
outputs.push(
|
|
266
|
+
buildSkillLlmContent(path.dirname(skill.filePath), skill.body)
|
|
267
|
+
);
|
|
268
|
+
}
|
|
269
|
+
return indexLoadedSkillBodies(outputs);
|
|
270
|
+
}
|
|
271
|
+
__name(loadedSkillBodies, "loadedSkillBodies");
|
|
272
|
+
function attributeLoadedSkillBodies(contents, indexedBodies) {
|
|
273
|
+
if (indexedBodies.tokensByOutput.size === 0) {
|
|
274
|
+
return { contents, skillBodyTokens: 0 };
|
|
275
|
+
}
|
|
276
|
+
let skillBodyTokens = 0;
|
|
277
|
+
let contentsChanged = false;
|
|
278
|
+
const attributedContents = contents.map((content) => {
|
|
279
|
+
let partsChanged = false;
|
|
280
|
+
const parts = content.parts?.map((part) => {
|
|
281
|
+
const response = part.functionResponse;
|
|
282
|
+
const output = response?.response?.["output"];
|
|
283
|
+
if (response?.name !== ToolNames.SKILL || typeof output !== "string") {
|
|
284
|
+
return part;
|
|
285
|
+
}
|
|
286
|
+
let matchedOutput = output;
|
|
287
|
+
let tokens = indexedBodies.tokensByOutput.get(output);
|
|
288
|
+
if (tokens === void 0) {
|
|
289
|
+
const lineEnd = output.indexOf("\n");
|
|
290
|
+
const header = lineEnd < 0 ? output : output.slice(0, lineEnd);
|
|
291
|
+
const candidate = indexedBodies.outputByHeader.get(header);
|
|
292
|
+
if (candidate && output.startsWith(`${candidate}
|
|
293
|
+
`)) {
|
|
294
|
+
matchedOutput = candidate;
|
|
295
|
+
tokens = indexedBodies.tokensByOutput.get(candidate);
|
|
296
|
+
}
|
|
297
|
+
}
|
|
298
|
+
if (tokens === void 0) return part;
|
|
299
|
+
indexedBodies.tokensByOutput.delete(matchedOutput);
|
|
300
|
+
skillBodyTokens += tokens;
|
|
301
|
+
partsChanged = true;
|
|
302
|
+
return {
|
|
303
|
+
...part,
|
|
304
|
+
functionResponse: {
|
|
305
|
+
...response,
|
|
306
|
+
response: {
|
|
307
|
+
...response.response,
|
|
308
|
+
output: output.slice(matchedOutput.length)
|
|
309
|
+
}
|
|
310
|
+
}
|
|
311
|
+
};
|
|
312
|
+
});
|
|
313
|
+
if (!partsChanged) return content;
|
|
314
|
+
contentsChanged = true;
|
|
315
|
+
return { ...content, parts };
|
|
316
|
+
});
|
|
317
|
+
return {
|
|
318
|
+
contents: contentsChanged ? attributedContents : contents,
|
|
319
|
+
skillBodyTokens
|
|
320
|
+
};
|
|
321
|
+
}
|
|
322
|
+
__name(attributeLoadedSkillBodies, "attributeLoadedSkillBodies");
|
|
323
|
+
function createContextUsageSnapshot(request, config, contextWindowSize) {
|
|
324
|
+
if (!Number.isSafeInteger(contextWindowSize) || contextWindowSize <= 0) {
|
|
325
|
+
return void 0;
|
|
326
|
+
}
|
|
327
|
+
const systemText = getCustomSystemPrompt(request.config?.systemInstruction);
|
|
328
|
+
const memory = extractMemoryTokens(systemText, config);
|
|
329
|
+
const tools = estimateToolCategories(request, config);
|
|
330
|
+
if (!tools) return void 0;
|
|
331
|
+
const contents = toContents(request.contents);
|
|
332
|
+
const attributedSkills = attributeLoadedSkillBodies(
|
|
333
|
+
contents,
|
|
334
|
+
loadedSkillBodies(config)
|
|
335
|
+
);
|
|
336
|
+
const thresholds = computeThresholds(
|
|
337
|
+
contextWindowSize,
|
|
338
|
+
config.getAutoCompactThreshold()
|
|
339
|
+
);
|
|
340
|
+
const snapshot = {
|
|
341
|
+
version: 1,
|
|
342
|
+
window_size_tokens: contextWindowSize,
|
|
343
|
+
breakdown: {
|
|
344
|
+
system_prompt_tokens: estimateContextTextTokens(memory.systemInstruction),
|
|
345
|
+
builtin_tools_tokens: tools.builtinTools,
|
|
346
|
+
mcp_tools_tokens: tools.mcpTools,
|
|
347
|
+
memory_files_tokens: memory.memoryTokens,
|
|
348
|
+
skills_tokens: tools.skillTool + attributedSkills.skillBodyTokens,
|
|
349
|
+
messages_tokens: estimateContentTokens(attributedSkills.contents)
|
|
350
|
+
},
|
|
351
|
+
compaction_reserve_tokens: contextWindowSize - thresholds.auto,
|
|
352
|
+
estimated: true
|
|
353
|
+
};
|
|
354
|
+
return isValidContextUsage(snapshot) ? snapshot : void 0;
|
|
355
|
+
}
|
|
356
|
+
__name(createContextUsageSnapshot, "createContextUsageSnapshot");
|
|
357
|
+
|
|
97
358
|
// packages/core/src/core/loggingContentGenerator/streamContentDetection.ts
|
|
98
359
|
init_esbuild_shims();
|
|
99
360
|
function hasUserVisibleContent(chunk) {
|
|
@@ -286,6 +547,7 @@ var LoggingContentGenerator = class {
|
|
|
286
547
|
constructor(wrapped, config, generatorConfig) {
|
|
287
548
|
this.wrapped = wrapped;
|
|
288
549
|
this.config = config;
|
|
550
|
+
this.generatorConfig = generatorConfig;
|
|
289
551
|
this.modalities = generatorConfig.modalities;
|
|
290
552
|
this.splitToolMedia = generatorConfig.splitToolMedia;
|
|
291
553
|
this.toolResultContentFormat = generatorConfig.toolResultContentFormat;
|
|
@@ -319,6 +581,21 @@ var LoggingContentGenerator = class {
|
|
|
319
581
|
getWrapped() {
|
|
320
582
|
return this.wrapped;
|
|
321
583
|
}
|
|
584
|
+
snapshotContextUsage(request, isInternal) {
|
|
585
|
+
if (isInternal || !isTelemetrySdkInitialized()) return void 0;
|
|
586
|
+
try {
|
|
587
|
+
return createContextUsageSnapshot(
|
|
588
|
+
request,
|
|
589
|
+
this.config,
|
|
590
|
+
this.generatorConfig.contextWindowSize ?? DEFAULT_TOKEN_LIMIT
|
|
591
|
+
);
|
|
592
|
+
} catch (error) {
|
|
593
|
+
debugLogger.warn(
|
|
594
|
+
`Failed to snapshot context usage: ${error instanceof Error ? error.message : String(error)}`
|
|
595
|
+
);
|
|
596
|
+
return void 0;
|
|
597
|
+
}
|
|
598
|
+
}
|
|
322
599
|
logApiRequest(contents, model, promptId, sessionId) {
|
|
323
600
|
const requestText = JSON.stringify(contents);
|
|
324
601
|
logApiRequest(
|
|
@@ -333,6 +610,7 @@ var LoggingContentGenerator = class {
|
|
|
333
610
|
);
|
|
334
611
|
}
|
|
335
612
|
_logApiResponse(responseId, durationMs, model, prompt_id, sessionId, usageMetadata, responseText, ttftMs) {
|
|
613
|
+
const identity = subagentIdentityContext.getStore();
|
|
336
614
|
logApiResponse(
|
|
337
615
|
this.config,
|
|
338
616
|
new ApiResponseEvent(
|
|
@@ -346,7 +624,12 @@ var LoggingContentGenerator = class {
|
|
|
346
624
|
subagentNameContext.getStore(),
|
|
347
625
|
ttftMs
|
|
348
626
|
),
|
|
349
|
-
sessionId
|
|
627
|
+
sessionId,
|
|
628
|
+
identity ? {
|
|
629
|
+
id: identity.id,
|
|
630
|
+
type: identity.type,
|
|
631
|
+
taskName: identity.taskName
|
|
632
|
+
} : void 0
|
|
350
633
|
);
|
|
351
634
|
}
|
|
352
635
|
_logApiError(responseId, durationMs, error, model, prompt_id, sessionId) {
|
|
@@ -354,6 +637,7 @@ var LoggingContentGenerator = class {
|
|
|
354
637
|
const errorType = getErrorType(error);
|
|
355
638
|
const errorResponseId = error?.requestID || error?.request_id || responseId;
|
|
356
639
|
const errorStatus = getErrorStatus(error);
|
|
640
|
+
const identity = subagentIdentityContext.getStore();
|
|
357
641
|
logApiError(
|
|
358
642
|
this.config,
|
|
359
643
|
new ApiErrorEvent({
|
|
@@ -367,7 +651,12 @@ var LoggingContentGenerator = class {
|
|
|
367
651
|
statusCode: errorStatus,
|
|
368
652
|
subagentName: subagentNameContext.getStore()
|
|
369
653
|
}),
|
|
370
|
-
sessionId
|
|
654
|
+
sessionId,
|
|
655
|
+
identity ? {
|
|
656
|
+
id: identity.id,
|
|
657
|
+
type: identity.type,
|
|
658
|
+
taskName: identity.taskName
|
|
659
|
+
} : void 0
|
|
371
660
|
);
|
|
372
661
|
}
|
|
373
662
|
safelyLogApiError(responseId, durationMs, error, model, prompt_id, sessionId, abortSignal) {
|
|
@@ -405,6 +694,8 @@ var LoggingContentGenerator = class {
|
|
|
405
694
|
}
|
|
406
695
|
async generateContent(req, userPromptId) {
|
|
407
696
|
const retrySnapshot = snapshotRetryMetadata();
|
|
697
|
+
const isInternal = isInternalPromptId(userPromptId);
|
|
698
|
+
const contextUsage = this.snapshotContextUsage(req, isInternal);
|
|
408
699
|
const ownerSessionId = this.config.getSessionId();
|
|
409
700
|
const ownerUserId = this.config.getTelemetryUserId();
|
|
410
701
|
const { span: llmSpan, context: llmContext } = startLLMRequestSpanWithContext(req.model, userPromptId, {
|
|
@@ -412,10 +703,10 @@ var LoggingContentGenerator = class {
|
|
|
412
703
|
providerName: this.genAiProviderName,
|
|
413
704
|
outputType: resolveGenAiOutputType(this.generatorAuthType, req.config),
|
|
414
705
|
sessionId: ownerSessionId,
|
|
415
|
-
userId: ownerUserId
|
|
706
|
+
userId: ownerUserId,
|
|
707
|
+
contextUsage
|
|
416
708
|
});
|
|
417
709
|
const requestSessionId = getSessionIdFromContext(llmContext) ?? ownerSessionId;
|
|
418
|
-
const isInternal = isInternalPromptId(userPromptId);
|
|
419
710
|
const exchange = createGenAiExchange(llmContext, llmSpan, {
|
|
420
711
|
captureContent: !isInternal && this.shouldCollectSensitiveSpanAttributes(),
|
|
421
712
|
sensitiveAttributeMaxLength: this.config.getTelemetrySensitiveSpanAttributeMaxLength()
|
|
@@ -538,6 +829,8 @@ var LoggingContentGenerator = class {
|
|
|
538
829
|
}
|
|
539
830
|
async generateContentStream(req, userPromptId) {
|
|
540
831
|
const retrySnapshot = snapshotRetryMetadata();
|
|
832
|
+
const isInternal = isInternalPromptId(userPromptId);
|
|
833
|
+
const contextUsage = this.snapshotContextUsage(req, isInternal);
|
|
541
834
|
const ownerSessionId = this.config.getSessionId();
|
|
542
835
|
const ownerUserId = this.config.getTelemetryUserId();
|
|
543
836
|
const { span: llmSpan, context: llmContext } = startLLMRequestSpanWithContext(req.model, userPromptId, {
|
|
@@ -545,14 +838,14 @@ var LoggingContentGenerator = class {
|
|
|
545
838
|
providerName: this.genAiProviderName,
|
|
546
839
|
outputType: resolveGenAiOutputType(this.generatorAuthType, req.config),
|
|
547
840
|
sessionId: ownerSessionId,
|
|
548
|
-
userId: ownerUserId
|
|
841
|
+
userId: ownerUserId,
|
|
842
|
+
contextUsage
|
|
549
843
|
});
|
|
550
844
|
const requestSessionId = getSessionIdFromContext(llmContext) ?? ownerSessionId;
|
|
551
845
|
try {
|
|
552
846
|
llmSpan.setAttribute("gen_ai.request.stream", true);
|
|
553
847
|
} catch {
|
|
554
848
|
}
|
|
555
|
-
const isInternal = isInternalPromptId(userPromptId);
|
|
556
849
|
const exchange = createGenAiExchange(llmContext, llmSpan, {
|
|
557
850
|
captureContent: !isInternal && this.shouldCollectSensitiveSpanAttributes(),
|
|
558
851
|
sensitiveAttributeMaxLength: this.config.getTelemetrySensitiveSpanAttributeMaxLength()
|
|
@@ -773,7 +1066,7 @@ var LoggingContentGenerator = class {
|
|
|
773
1066
|
if (lastResponseForLogging && responses.at(-1) !== lastResponseForLogging) {
|
|
774
1067
|
responses.push(lastResponseForLogging);
|
|
775
1068
|
}
|
|
776
|
-
const consolidatedResponse = shouldCollectResponses ? this.
|
|
1069
|
+
const consolidatedResponse = shouldCollectResponses ? this.consolidateLlmResponsesForLogging(responses) : void 0;
|
|
777
1070
|
if (consolidatedResponse) {
|
|
778
1071
|
consolidatedResponse.usageMetadata = lastUsageMetadata;
|
|
779
1072
|
}
|
|
@@ -859,7 +1152,7 @@ var LoggingContentGenerator = class {
|
|
|
859
1152
|
return void 0;
|
|
860
1153
|
}
|
|
861
1154
|
const requestContext = this.createLoggingRequestContext(request.model);
|
|
862
|
-
const messages = OpenAIContentConverter.
|
|
1155
|
+
const messages = OpenAIContentConverter.convertLlmRequestToOpenAI(
|
|
863
1156
|
request,
|
|
864
1157
|
requestContext,
|
|
865
1158
|
{
|
|
@@ -871,7 +1164,7 @@ var LoggingContentGenerator = class {
|
|
|
871
1164
|
messages
|
|
872
1165
|
};
|
|
873
1166
|
if (request.config?.tools) {
|
|
874
|
-
openaiRequest.tools = await OpenAIContentConverter.
|
|
1167
|
+
openaiRequest.tools = await OpenAIContentConverter.convertLlmToolsToOpenAI(
|
|
875
1168
|
request.config.tools,
|
|
876
1169
|
this.schemaCompliance ?? "auto"
|
|
877
1170
|
);
|
|
@@ -909,7 +1202,7 @@ var LoggingContentGenerator = class {
|
|
|
909
1202
|
if (!this.openaiLogger || !openaiRequest) {
|
|
910
1203
|
return;
|
|
911
1204
|
}
|
|
912
|
-
const openaiResponse = response ? this.
|
|
1205
|
+
const openaiResponse = response ? this.convertLlmResponseToOpenAIForLogging(response, openaiRequest) : void 0;
|
|
913
1206
|
await this.openaiLogger.logInteraction(
|
|
914
1207
|
openaiRequest,
|
|
915
1208
|
openaiResponse,
|
|
@@ -924,13 +1217,13 @@ var LoggingContentGenerator = class {
|
|
|
924
1217
|
debugLogger.warn("Failed to log OpenAI interaction:", loggingError);
|
|
925
1218
|
}
|
|
926
1219
|
}
|
|
927
|
-
|
|
928
|
-
return OpenAIContentConverter.
|
|
1220
|
+
convertLlmResponseToOpenAIForLogging(response, openaiRequest) {
|
|
1221
|
+
return OpenAIContentConverter.convertLlmResponseToOpenAI(
|
|
929
1222
|
response,
|
|
930
1223
|
this.createLoggingRequestContext(openaiRequest.model)
|
|
931
1224
|
);
|
|
932
1225
|
}
|
|
933
|
-
|
|
1226
|
+
consolidateLlmResponsesForLogging(responses) {
|
|
934
1227
|
if (responses.length === 0) {
|
|
935
1228
|
return void 0;
|
|
936
1229
|
}
|
|
@@ -4,24 +4,24 @@ import {
|
|
|
4
4
|
WAKEUP_MAX_SECONDS,
|
|
5
5
|
WAKEUP_MIN_SECONDS,
|
|
6
6
|
clampWakeupSeconds
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-EKSCLBBF.js";
|
|
8
8
|
import "./chunk-IRH27ZC2.js";
|
|
9
9
|
import "./chunk-QHWCP53L.js";
|
|
10
|
-
import "./chunk-
|
|
10
|
+
import "./chunk-D5LUXLUH.js";
|
|
11
11
|
import {
|
|
12
12
|
todoWorkChainContext
|
|
13
13
|
} from "./chunk-O6GEWCJA.js";
|
|
14
14
|
import "./chunk-VGC4I5JJ.js";
|
|
15
|
-
import "./chunk-
|
|
15
|
+
import "./chunk-23RFD54N.js";
|
|
16
16
|
import {
|
|
17
17
|
BaseDeclarativeTool,
|
|
18
18
|
BaseToolInvocation,
|
|
19
19
|
ToolDisplayNames,
|
|
20
20
|
ToolNames
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-UTLCH2FK.js";
|
|
22
22
|
import {
|
|
23
23
|
getErrorMessage
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-UHQFIS7N.js";
|
|
25
25
|
import "./chunk-TBWQLLFO.js";
|
|
26
26
|
import {
|
|
27
27
|
init_esbuild_shims
|