@organizaone/o1-code 0.25.0 → 0.27.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bundled/qc-helper/docs/configuration/model-providers.md +5 -0
- package/bundled/qc-helper/docs/configuration/settings.md +3 -2
- package/bundled/qc-helper/docs/configuration/trusted-folders.md +1 -1
- package/bundled/qc-helper/docs/features/auto-mode.md +10 -0
- package/bundled/qc-helper/docs/features/hooks.md +3 -3
- package/chunks/{MaxSizedBox-SX7L43GF.js → MaxSizedBox-KRTRIJEA.js} +47 -46
- package/chunks/{StandaloneSessionPicker-V6A3S6MF.js → StandaloneSessionPicker-57TP44KF.js} +65 -65
- package/chunks/{acp-subagent-executor-52MZCRRP.js → acp-subagent-executor-7764VWKH.js} +50 -49
- package/chunks/{acpAgent-IQDDNOET.js → acpAgent-TQRW6SNF.js} +178 -111
- package/chunks/{agent-O6PLYNPF.js → agent-P7LNA44U.js} +32 -31
- package/chunks/{agent-headless-P2WT7VGJ.js → agent-headless-FC25Z4YM.js} +32 -31
- package/chunks/{all-providers-WWSVGE7P.js → all-providers-IMJ6QB2I.js} +3 -3
- package/chunks/{anthropicContentGenerator-FLIKRMH6.js → anthropicContentGenerator-V2MYNWJ3.js} +73 -16
- package/chunks/{artifact-tool-6QDGNGTO.js → artifact-tool-2YUI7TMU.js} +3 -2
- package/chunks/{askUserQuestion-NWK5LQIZ.js → askUserQuestion-CJCXE4MK.js} +2 -2
- package/chunks/{bridge-RVD5UN3S.js → bridge-LELJ7HU5.js} +50 -49
- package/chunks/{bwrap-execution-623BHVNE.js → bwrap-execution-TXZNOKYR.js} +5 -5
- package/chunks/caption-audio-OLLSPHW7.js +1 -1
- package/chunks/caption-image-ARAQIU6W.js +1 -1
- package/chunks/{chunk-C6GZRQ6A.js → chunk-26G2BFFM.js} +11 -2
- package/chunks/{chunk-62CDOJKZ.js → chunk-2EQYAHKO.js} +2 -2
- package/chunks/{chunk-KU6I333M.js → chunk-2GK6MYTP.js} +5 -5
- package/chunks/{chunk-OZFPMAHJ.js → chunk-2J7VJ3WC.js} +2 -2
- package/chunks/{chunk-S7SIWFBW.js → chunk-3IRUUZTV.js} +65 -50
- package/chunks/{chunk-CCGIWTGK.js → chunk-3ONAZUCS.js} +1 -1
- package/chunks/{chunk-ZUZXFA5O.js → chunk-3Q4HEGB4.js} +2 -2
- package/chunks/{chunk-KWP7CAXY.js → chunk-42N5UTUK.js} +3 -3
- package/chunks/{chunk-7TZUSRNH.js → chunk-4INACGIR.js} +1 -1
- package/chunks/{chunk-7H3GMHNV.js → chunk-4UZ3FFYZ.js} +2 -2
- package/chunks/{chunk-7H3GWNGJ.js → chunk-4WIYGAME.js} +1 -1
- package/chunks/{chunk-SPLQKNEP.js → chunk-53HMO7K2.js} +1 -1
- package/chunks/{chunk-3W635FXS.js → chunk-56HGN3XV.js} +1 -1
- package/chunks/{chunk-RUDVLHPQ.js → chunk-5DFZNI3G.js} +8 -8
- package/chunks/{chunk-X427DWFD.js → chunk-5LIDCGQZ.js} +1 -1
- package/chunks/{chunk-KJBZVVEC.js → chunk-5N5IZTS4.js} +13 -10
- package/chunks/{chunk-O6GD6SFV.js → chunk-5ONKDCZM.js} +4 -0
- package/chunks/{chunk-KMGKWFHR.js → chunk-5P7NQWE6.js} +26 -21
- package/chunks/{chunk-AEGEUWVC.js → chunk-5PE7PZL7.js} +2 -2
- package/chunks/{chunk-ZE5EC3FJ.js → chunk-5QMNIJZ2.js} +4 -4
- package/chunks/{chunk-SH5HEA4E.js → chunk-6A3PCAAJ.js} +5 -5
- package/chunks/{chunk-74GVXLB4.js → chunk-6LRWLIIP.js} +4 -4
- package/chunks/{chunk-PCKTU3X5.js → chunk-6VHB4YQZ.js} +1 -1
- package/chunks/{chunk-CD4C4ADN.js → chunk-6VT5UW66.js} +3 -3
- package/chunks/{chunk-GNJ6CIDW.js → chunk-7UDEBIOM.js} +5 -5
- package/chunks/{chunk-NJ75V6UO.js → chunk-7XELAF5M.js} +2 -2
- package/chunks/{chunk-AJDAOH4D.js → chunk-A5ZAKF2B.js} +4 -4
- package/chunks/{chunk-M7ZHP7VU.js → chunk-AEVV2DGL.js} +9 -6
- package/chunks/{chunk-Q2PDOVTR.js → chunk-AXXXWTIX.js} +1 -1
- package/chunks/{chunk-2KBKQCET.js → chunk-BBHBNCB5.js} +2 -2
- package/chunks/{chunk-TYGBYVRJ.js → chunk-BNSYZYXR.js} +44 -13
- package/chunks/{chunk-XHFAV57Y.js → chunk-C3UOC4LM.js} +1 -1
- package/chunks/{chunk-RXNYXW2A.js → chunk-CBLW5IOQ.js} +11 -10
- package/chunks/{chunk-44NOS72H.js → chunk-CDHOAM2E.js} +2 -2
- package/chunks/{chunk-OI7IVUEO.js → chunk-D6APUHI5.js} +11 -96
- package/chunks/{chunk-P4XQQFCZ.js → chunk-DKBLEAGB.js} +2 -2
- package/chunks/{chunk-BZCAZORI.js → chunk-DQGAJLPJ.js} +12 -12
- package/chunks/{chunk-RP55RX65.js → chunk-DV2KGLEW.js} +1 -1
- package/chunks/{chunk-H7Z2QHT6.js → chunk-EE265U33.js} +4 -4
- package/chunks/{chunk-UYRSN6YI.js → chunk-EEJGIKBZ.js} +3 -3
- package/chunks/{chunk-AEUQXQFZ.js → chunk-ESGMIMHJ.js} +2 -2
- package/chunks/{chunk-E66W34L5.js → chunk-EVYREOIG.js} +79 -54
- package/chunks/{chunk-OQ35ZKIB.js → chunk-FX3MQOWG.js} +26 -13
- package/chunks/{chunk-7YEY47HZ.js → chunk-FZSAZTOI.js} +2 -2
- package/chunks/{chunk-XHETKALB.js → chunk-GVZFZZPK.js} +10 -10
- package/chunks/{chunk-PZNY2JJJ.js → chunk-H65DRJN2.js} +1 -1
- package/chunks/{chunk-IDXC5R27.js → chunk-HHXRZCTN.js} +1 -1
- package/chunks/{chunk-B5GTZ6E6.js → chunk-HJYSTI5W.js} +8 -2
- package/chunks/{chunk-KDUC6UGX.js → chunk-HKDI4HXA.js} +2 -2
- package/chunks/{chunk-ESU7M5WY.js → chunk-HRBXDIBC.js} +1 -1
- package/chunks/{chunk-7Y53G2LA.js → chunk-HTH6D3WU.js} +7 -7
- package/chunks/{chunk-QKYD3YLE.js → chunk-IASFPTGI.js} +6 -6
- package/chunks/{chunk-ODNOCYH7.js → chunk-IHW6SWYM.js} +1 -1
- package/chunks/{chunk-RXOKJEB4.js → chunk-IKGD36IH.js} +20 -19
- package/chunks/{chunk-3GX2JF2F.js → chunk-IUMWWTUV.js} +4 -4
- package/chunks/{chunk-RIG4A6YO.js → chunk-J6UKVQX6.js} +4 -4
- package/chunks/{chunk-MMIJMF43.js → chunk-JPCQCUTS.js} +3 -3
- package/chunks/{chunk-6JK2YX3M.js → chunk-K7C5JCE7.js} +1 -1
- package/chunks/{chunk-XGP4RGF4.js → chunk-K7JOSPO4.js} +1 -1
- package/chunks/{chunk-R77APYHJ.js → chunk-KFN7QGTC.js} +2 -2
- package/chunks/{chunk-YVLUG6HM.js → chunk-KIHOIJMQ.js} +2 -2
- package/chunks/{chunk-ON5CGP6B.js → chunk-KP6VAFGI.js} +1 -1
- package/chunks/{chunk-UAN7WQIF.js → chunk-KRTC55S6.js} +4 -4
- package/chunks/{chunk-OBBP2ZN7.js → chunk-KSO7FXQU.js} +7 -7
- package/chunks/{chunk-CL6WD3KD.js → chunk-LBX7KU43.js} +2 -2
- package/chunks/{chunk-JTIB6W5A.js → chunk-LHP2IJ7A.js} +1 -1
- package/chunks/{chunk-2DIUCC6N.js → chunk-LP74MLBE.js} +2 -2
- package/chunks/{chunk-3LGQKO4S.js → chunk-LYWFQGEQ.js} +6 -6
- package/chunks/{chunk-QSHFGJIL.js → chunk-MNLPYHDS.js} +60 -12
- package/chunks/{chunk-IV2ZUCOX.js → chunk-MNLVE24R.js} +3 -3
- package/chunks/{chunk-UYG4HVPV.js → chunk-MWYTSG52.js} +87 -7
- package/chunks/{chunk-WZ3DCPKN.js → chunk-N5TOXL3M.js} +2 -2
- package/chunks/{chunk-ULLCJNT5.js → chunk-N5XZKWJE.js} +1 -1
- package/chunks/{chunk-V4QKOYNB.js → chunk-NRDEPGVR.js} +5 -5
- package/chunks/{chunk-AFLYEJ7J.js → chunk-NWZDA6PN.js} +22 -0
- package/chunks/{chunk-5HHYWAT2.js → chunk-OHPK6LGA.js} +5 -5
- package/chunks/{chunk-P7BCOR5S.js → chunk-OILOGMTY.js} +8 -8
- package/chunks/{chunk-QJLOQHNR.js → chunk-OKSSY3ER.js} +1 -1
- package/chunks/{chunk-4CSMD2N2.js → chunk-OLUQJYZT.js} +9 -11
- package/chunks/{chunk-LK26AJMU.js → chunk-OR4LJOK3.js} +2 -2
- package/chunks/{chunk-S4ASMRKL.js → chunk-OSCUGEQY.js} +3 -3
- package/chunks/{chunk-BGIED5LF.js → chunk-OZKJJI3M.js} +4 -4
- package/chunks/{chunk-JVRNE7NT.js → chunk-PJOCOZLX.js} +262 -73
- package/chunks/{chunk-JUPK7JWP.js → chunk-PMKHXJAS.js} +1 -1
- package/chunks/{chunk-VAAETI4E.js → chunk-POWVKJJ5.js} +1 -1
- package/chunks/{chunk-MG37E6PW.js → chunk-PQGBLD36.js} +7 -4
- package/chunks/{chunk-GJ7VXZXF.js → chunk-PVJDGMEJ.js} +4 -4
- package/chunks/{chunk-LZAXDVE3.js → chunk-PXOBO32R.js} +3 -3
- package/chunks/{chunk-3FYT76B7.js → chunk-PYQSQFGU.js} +1 -1
- package/chunks/{chunk-HFVCWMFQ.js → chunk-QHMLRTHD.js} +8 -5
- package/chunks/{chunk-6KVIR254.js → chunk-QIFODGLE.js} +1 -1
- package/chunks/{chunk-2KYJA6BK.js → chunk-QYXH4QO6.js} +1 -1
- package/chunks/{chunk-4KOM3B7Q.js → chunk-R2MRYCHR.js} +5 -5
- package/chunks/{chunk-DF73UBWX.js → chunk-RHP5L25J.js} +3 -3
- package/chunks/{chunk-YAWHSZ4N.js → chunk-RM54W4ER.js} +1 -1
- package/chunks/{chunk-FRITN2AG.js → chunk-RSFKGHXZ.js} +75 -3
- package/chunks/{chunk-PK2LRZWK.js → chunk-S5TFGSM3.js} +23 -10
- package/chunks/{chunk-5DYWST3G.js → chunk-SR7O2YDD.js} +122404 -120964
- package/chunks/{chunk-TOWDGX4R.js → chunk-TJ7Q4T4P.js} +1 -1
- package/chunks/{chunk-4MFP7T32.js → chunk-UAIMOPVZ.js} +1 -1
- package/chunks/{chunk-UUUIRL5U.js → chunk-UCSYEHMM.js} +1 -1
- package/chunks/chunk-UMHRQJOE.js +101 -0
- package/chunks/{chunk-6CW53FOJ.js → chunk-VBDYNBGQ.js} +33 -0
- package/chunks/{chunk-GY3JWX4O.js → chunk-VJ5BVYSX.js} +1 -1
- package/chunks/{chunk-BNJ3IJB7.js → chunk-VLTW32Z7.js} +5 -1
- package/chunks/{chunk-GR257V6A.js → chunk-VM3UK3TM.js} +1 -1
- package/chunks/{chunk-NRCLJUSY.js → chunk-VQURYS66.js} +1 -1
- package/chunks/{chunk-PGFXYKSJ.js → chunk-W7OUXB6F.js} +8 -8
- package/chunks/{chunk-IMYLADNE.js → chunk-WKC6U3JJ.js} +1 -1
- package/chunks/{chunk-GM7RKZZ4.js → chunk-WKUCYQM7.js} +3 -3
- package/chunks/{chunk-GCCIW37K.js → chunk-WQU5EWE3.js} +1 -1
- package/chunks/{chunk-ZS5CRCES.js → chunk-WRF5CAXN.js} +1 -1
- package/chunks/{chunk-SELDIVLD.js → chunk-WTFO7IQM.js} +3 -3
- package/chunks/{chunk-KZW5RTF3.js → chunk-WXIXWH7M.js} +3 -3
- package/chunks/{chunk-S5JHP5C5.js → chunk-X2Z2Y7GS.js} +17 -17
- package/chunks/{chunk-SBM747MY.js → chunk-X4LDF6O3.js} +139 -8
- package/chunks/{chunk-2VV2BC4Y.js → chunk-X5MCTTTU.js} +1 -1
- package/chunks/{chunk-MPN67YNU.js → chunk-XBC4ZFXH.js} +9 -9
- package/chunks/{chunk-72EBG4FJ.js → chunk-XFIAS7A6.js} +5 -1
- package/chunks/{chunk-IA7N7U2C.js → chunk-YAUL5ZQW.js} +6 -6
- package/chunks/{chunk-JUKBFMZ5.js → chunk-YCR4JZUC.js} +3 -3
- package/chunks/{chunk-KX6OMS75.js → chunk-YRYQC7GO.js} +1 -1
- package/chunks/{chunk-RLV4EZSY.js → chunk-Z4HXY45F.js} +1 -1
- package/chunks/{chunk-KDPUC3CO.js → chunk-ZGCZQZ24.js} +23 -7
- package/chunks/{chunk-KEPNWFUD.js → chunk-ZSYQ3RBP.js} +1 -1
- package/chunks/{chunk-2KF67MR3.js → chunk-ZX7J6RLA.js} +1 -1
- package/chunks/{chunk-PKIF4YYA.js → chunk-ZYNZSU4I.js} +3 -3
- package/chunks/clip-audio-5ZTGLERU.js +1 -1
- package/chunks/clip-image-HLDAHQPL.js +1 -1
- package/chunks/clip-video-NXRDICLV.js +1 -1
- package/chunks/{codex-subagent-executor-IH3LMUV4.js → codex-subagent-executor-IBUIGPDN.js} +50 -49
- package/chunks/{contextCommand-RKQX2A2Q.js → contextCommand-6EFJ3QJU.js} +49 -48
- package/chunks/convert-image-4MPD5TZ5.js +1 -1
- package/chunks/{core-runtime-GGSTSFTA.js → core-runtime-2IRY3OGU.js} +47 -46
- package/chunks/{create-sub-session-UEQ23VBD.js → create-sub-session-7RBPOM63.js} +2 -2
- package/chunks/{create-sub-session-5OVGZIQZ.js → create-sub-session-YPMC7OTH.js} +48 -47
- package/chunks/cron-create-WPK3NNT4.js +1 -1
- package/chunks/cron-delete-6V6MDQ6Z.js +1 -1
- package/chunks/cron-list-TPJEL73F.js +1 -1
- package/chunks/{daemon-git-worktree-guard-PWH5UXXA.js → daemon-git-worktree-guard-O5PEMNIJ.js} +51 -50
- package/chunks/{daemon-status-provider-PB2RABB3.js → daemon-status-provider-HV3XFWXG.js} +55 -54
- package/chunks/{daemon-trust-policy-VKBYIHIA.js → daemon-trust-policy-NJGWWUJF.js} +55 -55
- package/chunks/{daemon-trust-policy-monitor-QFZLQW7N.js → daemon-trust-policy-monitor-XDGGMLUX.js} +55 -55
- package/chunks/{deferred-core-runtime-OPWIBNWK.js → deferred-core-runtime-QJEIQQRV.js} +47 -46
- package/chunks/{display-image-Y35PSJXX.js → display-image-VWFOL6K5.js} +5 -2
- package/chunks/downsample-audio-IGOEKKHD.js +1 -1
- package/chunks/downsample-image-FUPJVVNL.js +1 -1
- package/chunks/downscale-video-XZNDYVK4.js +1 -1
- package/chunks/{edit-EI2QZFML.js → edit-DAMGKYG4.js} +34 -33
- package/chunks/{en-ZRJL6ZFP.js → en-FVPIFYM3.js} +1 -0
- package/chunks/{enter-worktree-FIO6VPWS.js → enter-worktree-DXCRT554.js} +6 -5
- package/chunks/{enterPlanMode-HZIALG5T.js → enterPlanMode-ZVG6QCWE.js} +32 -31
- package/chunks/{environment-TM5YFH77.js → environment-N7R6TMQF.js} +51 -49
- package/chunks/{errors-75WEKSIY.js → errors-4MXYEHDC.js} +49 -48
- package/chunks/exec-36YD62RP.js +1 -1
- package/chunks/{execution-sandbox-config-ZTU7YXTL.js → execution-sandbox-config-2S5NIDLB.js} +6 -6
- package/chunks/{execution-sandbox-settings-UNFOGWSM.js → execution-sandbox-settings-GWMZH2SF.js} +1 -2
- package/chunks/{execution-tool-IEMS4OMY.js → execution-tool-YKY2TRGU.js} +34 -33
- package/chunks/{execution-worker-BR2UBKVZ.js → execution-worker-65BZHXUO.js} +38 -37
- package/chunks/{exit-worktree-3UU4SS47.js → exit-worktree-7YT7VWTK.js} +6 -5
- package/chunks/{exitPlanMode-46FWANRT.js → exitPlanMode-3ONQQHEA.js} +32 -31
- package/chunks/extract-audio-AYEXZ2KS.js +1 -1
- package/chunks/extract-keyframes-UQVW7UH6.js +1 -1
- package/chunks/{fast-path-FB2AYQT2.js → fast-path-OL4RWGDQ.js} +4 -5
- package/chunks/{fast-path-settings-BT63K4L7.js → fast-path-settings-VXBBCMD4.js} +3 -4
- package/chunks/{foreground-runner-5OQ7IKWR.js → foreground-runner-MGGMRN3K.js} +49 -48
- package/chunks/{gateway-content-generator-BPZXVQWC.js → gateway-content-generator-E7VLZDUR.js} +8 -4
- package/chunks/{gateway-models-5JPME6AP.js → gateway-models-NFDZZXWP.js} +6 -6
- package/chunks/{glob-QZSWKHOW.js → glob-OIDBOW4G.js} +32 -31
- package/chunks/{goal-tools-LZLIELOL.js → goal-tools-DMZIYTZT.js} +32 -31
- package/chunks/{grep-5HGH34M6.js → grep-YVEFUZQF.js} +4 -4
- package/chunks/{handleAutoUpdate-UZIU3KK4.js → handleAutoUpdate-I3HSNEZY.js} +50 -49
- package/chunks/{i18n-UVPXLFMF.js → i18n-6BLWGPIF.js} +48 -47
- package/chunks/{image-gen-D4WPSZB4.js → image-gen-A5LWAWV5.js} +3 -3
- package/chunks/{initializer-Q4DUD7GF.js → initializer-3NT4PSG5.js} +55 -55
- package/chunks/{installationInfo-DWIXOKSE.js → installationInfo-YFS4WR5Z.js} +47 -46
- package/chunks/{list-TUO4ATZ7.js → list-WSW25XV4.js} +57 -57
- package/chunks/{list-agents-T2EHYFCL.js → list-agents-YJZPHUQG.js} +17 -6
- package/chunks/{llm-MMOAP23Q.js → llm-DHEJE335.js} +89 -88
- package/chunks/{llm-content-generator-7NOJCUX2.js → llm-content-generator-LCRFLNVM.js} +5 -5
- package/chunks/{loadedSettingsAdapter-LONKNEI2.js → loadedSettingsAdapter-LZEJHSTQ.js} +55 -55
- package/chunks/{local-execution-environment-W6RR5CM2.js → local-execution-environment-ZPGY5MSH.js} +38 -37
- package/chunks/{loggingContentGenerator-BTD3KTLK.js → loggingContentGenerator-OLR57SV6.js} +34 -33
- package/chunks/loop-wakeup-RC454BL4.js +1 -1
- package/chunks/ls-SSSPTK7X.js +1 -1
- package/chunks/lsp-ZHD2YAJ5.js +1 -1
- package/chunks/{managed-npm-update-6QDOTNQW.js → managed-npm-update-KRSAJ37W.js} +47 -46
- package/chunks/{mcp-XBVFA4NK.js → mcp-BQGQ7QLI.js} +55 -55
- package/chunks/{model-call-collection-HQF2N6XF.js → model-call-collection-TVSEFAQV.js} +2 -2
- package/chunks/{model-configuration-BBZJMCHB.js → model-configuration-GJFGTJ5Y.js} +56 -56
- package/chunks/{modelConfigUtils-UFJV3ZJS.js → modelConfigUtils-6CWVK6HU.js} +49 -48
- package/chunks/{monitor-4DJ5VKXK.js → monitor-2T7KABJD.js} +41 -39
- package/chunks/{nonInteractiveCli-IIJI63XP.js → nonInteractiveCli-K4JM4ENC.js} +87 -87
- package/chunks/{nonInteractiveToolExecutor-MET7I2DQ.js → nonInteractiveToolExecutor-5GOEPWYO.js} +33 -32
- package/chunks/{notebook-edit-EOFZ4EKN.js → notebook-edit-DAENEK5S.js} +33 -32
- package/chunks/ocr-image-UTGQDI5V.js +1 -1
- package/chunks/{omni-MLLL6UUM.js → omni-H42BCXPX.js} +13 -13
- package/chunks/{openaiContentGenerator-FUN5S2AD.js → openaiContentGenerator-EH2MHLQR.js} +135 -20
- package/chunks/{openaiResponsesContentGenerator-TIRM5XJN.js → openaiResponsesContentGenerator-RQROUO3C.js} +487 -385
- package/chunks/{processUtils-WPVNEHRF.js → processUtils-FAIS7M3Y.js} +2 -2
- package/chunks/{prompt-terminal-ledger-PQYRGDN6.js → prompt-terminal-ledger-7N4QXMSN.js} +48 -47
- package/chunks/{pt-2EWDZAFN.js → pt-NR7K5X64.js} +1 -0
- package/chunks/{reactive-degrade-RAVGIKCJ.js → reactive-degrade-SUQLWXQ6.js} +12 -12
- package/chunks/{read-file-BTMZPG5O.js → read-file-XE7ME3BR.js} +4 -4
- package/chunks/read-mcp-resource-4NSQ2WFB.js +1 -1
- package/chunks/recall-media-memory-tool-7NAM2ZGH.js +1 -1
- package/chunks/record-artifact-NO2DU63L.js +1 -1
- package/chunks/{record-source-4K4EQAX7.js → record-source-6XCNP6XF.js} +8 -6
- package/chunks/report-findings-S6QO46V2.js +1 -1
- package/chunks/{request-shutdown-4LPYJZTK.js → request-shutdown-6M76E2KV.js} +7 -5
- package/chunks/{resumeHistoryUtils-RSU25WYV.js → resumeHistoryUtils-DUYOO4BU.js} +51 -50
- package/chunks/{ripGrep-N425H66N.js → ripGrep-3LGQ4SE4.js} +8 -8
- package/chunks/{run-o1-code-serve-FGCE7K7C.js → run-o1-code-serve-GDYUXK5W.js} +38 -39
- package/chunks/{runtime-shell-policy-ZAYLMR65.js → runtime-shell-policy-IRZDQMDW.js} +1 -1
- package/chunks/{sandboxConfig-AZSEWZCT.js → sandboxConfig-UOOGX443.js} +49 -49
- package/chunks/{scheduled-tasks-ZUCWMR44.js → scheduled-tasks-J3BZWWMO.js} +53 -52
- package/chunks/{scheduler-ZRZBVAWJ.js → scheduler-EPXMQ35M.js} +49 -48
- package/chunks/{send-message-CD2AOPQD.js → send-message-B2HM2LKH.js} +11 -8
- package/chunks/{serve-V2C4I5RF.js → serve-UUAH4RD4.js} +55 -55
- package/chunks/{server-HPF2IP2F.js → server-JDRC2EN6.js} +88 -93
- package/chunks/{session-ZOBQ7E3F.js → session-M6GUKX2G.js} +88 -88
- package/chunks/{session-7VBZLPP7.js → session-Q2LHHXY4.js} +1 -1
- package/chunks/{session-attachments-root-5LVSTHJX.js → session-attachments-root-CCIAH6U6.js} +47 -46
- package/chunks/{session-pr-refresh-B3GHMCV5.js → session-pr-refresh-GTIOMUNU.js} +52 -51
- package/chunks/{settings-4EWIU2CS.js → settings-SBWV33ZU.js} +55 -55
- package/chunks/{shell-PEPAVCLP.js → shell-J4HQKVRT.js} +32 -31
- package/chunks/{skill-KYZIZDCI.js → skill-KI27WO4D.js} +5 -5
- package/chunks/{skill-settings-FMPMQYFV.js → skill-settings-AYZSCDA2.js} +55 -55
- package/chunks/{spawnChannel-TW6GZJXJ.js → spawnChannel-XXWTNIFF.js} +49 -48
- package/chunks/{standalone-update-SV7MBAIU.js → standalone-update-F7SJN6QH.js} +49 -48
- package/chunks/{startInteractiveUI-MDF4JJD5.js → startInteractiveUI-QBRDQBKB.js} +323 -138
- package/chunks/{supervisor-runner-XJAZN7YG.js → supervisor-runner-YREQDAAR.js} +2 -2
- package/chunks/syntheticOutput-KZMNOKOG.js +1 -1
- package/chunks/{task-create-W3R3G7FM.js → task-create-AJSUW4SS.js} +11 -8
- package/chunks/{task-list-ABYOHJDS.js → task-list-J7ECJCOE.js} +4 -3
- package/chunks/task-stop-6L7G4RYB.js +1 -1
- package/chunks/{task-update-JQOO6HUS.js → task-update-X65AWLX3.js} +11 -8
- package/chunks/{team-create-O66TUESF.js → team-create-AWX3WCOX.js} +32 -31
- package/chunks/{team-delete-RL37ORM3.js → team-delete-FZRNXQEK.js} +4 -3
- package/chunks/{team-plan-approval-667K2B3B.js → team-plan-approval-XADKQBWB.js} +32 -31
- package/chunks/{terminal-image-renderer-PMVAADQU.js → terminal-image-renderer-3IULS2LY.js} +47 -46
- package/chunks/{theme-manager-PHZIRE2I.js → theme-manager-S2SNBVMH.js} +47 -46
- package/chunks/todoWrite-ARTSGNNA.js +1 -1
- package/chunks/{tool-call-ZR564L2K.js → tool-call-BERI4DIZ.js} +8 -6
- package/chunks/{tool-result-media-PXJEED5J.js → tool-result-media-SU4PKTY5.js} +13 -13
- package/chunks/{tool-search-5GZKW7RO.js → tool-search-YVDXMR22.js} +14 -9
- package/chunks/{total-session-admission-WTPY7HAP.js → total-session-admission-JXG2Y7T7.js} +50 -49
- package/chunks/transcribe-audio-WOITX4I2.js +1 -1
- package/chunks/{trustedFolders-JOAYZVGA.js → trustedFolders-7IPBJUC7.js} +50 -48
- package/chunks/understand-video-segments-YFCIFF7P.js +1 -1
- package/chunks/{update-relaunch-3WTWA6Y3.js → update-relaunch-NN2CBTSS.js} +5 -5
- package/chunks/{updateCheck-3EBFSQYZ.js → updateCheck-FJQDYAG6.js} +49 -48
- package/chunks/{upload-config-GAXSQ3UL.js → upload-config-YCM5FBRA.js} +9 -9
- package/chunks/{useAutoAcceptIndicator-KDDP4EGH.js → useAutoAcceptIndicator-LFIUN7PN.js} +57 -57
- package/chunks/{validateNonInterActiveAuth-SMUVFO2L.js → validateNonInterActiveAuth-JOX24GXO.js} +84 -84
- package/chunks/{version-LOJWIDPQ.js → version-JFJPSBUT.js} +1 -1
- package/chunks/{web-fetch-XIUI6SSS.js → web-fetch-K5XFX4U5.js} +37 -21
- package/chunks/{web-search-53FZUSEO.js → web-search-DJOLXUKE.js} +10 -10
- package/chunks/{workflow-V26XKAXG.js → workflow-DDRDQXO3.js} +35 -33
- package/chunks/{workspace-providers-status-E4V3ZW7E.js → workspace-providers-status-NYUD74M7.js} +61 -61
- package/chunks/{workspace-registration-store-2YYKRGZQ.js → workspace-registration-store-YH4N3DDV.js} +2 -2
- package/chunks/{workspace-registry-EFTIIC5P.js → workspace-registry-WNJX32P3.js} +50 -49
- package/chunks/{workspace-runtime-coordinator-LCEDKI3V.js → workspace-runtime-coordinator-7CBX333P.js} +51 -50
- package/chunks/{workspace-service-EJHV4F5K.js → workspace-service-M3HENJTA.js} +60 -60
- package/chunks/{workspace-skills-status-DGOQVL5O.js → workspace-skills-status-DMRJPYZD.js} +58 -58
- package/chunks/{workspace-trust-reconciler-L7QJK4OH.js → workspace-trust-reconciler-TWROHM3Q.js} +58 -58
- package/chunks/{write-file-OA3YWX4Z.js → write-file-NPDFTBGT.js} +34 -33
- package/chunks/{zoom-image-2FAU5GG7.js → zoom-image-JIHUP4HA.js} +4 -4
- package/cli-entry.js +19 -2
- package/cli.js +16 -16
- package/execution-worker.js +1 -1
- package/export-transcript-document.js +1 -1
- package/locales/en.js +2 -0
- package/locales/pt.js +2 -0
- package/package.json +2 -2
- package/release-notes.json +46 -0
- package/web-shell/assets/{abnfDiagram-VCTEODGH-BHe02xuM.js → abnfDiagram-VCTEODGH-CmJn1PDE.js} +1 -1
- package/web-shell/assets/{arc-B5VovhrP.js → arc-BmZjGB_w.js} +1 -1
- package/web-shell/assets/{architectureDiagram-5GKGNRK7-ByvXrzMN.js → architectureDiagram-5GKGNRK7-DX-36I_j.js} +1 -1
- package/web-shell/assets/{blockDiagram-NRAW4CY4-CS0RXmiX.js → blockDiagram-NRAW4CY4-DxTx3zwB.js} +1 -1
- package/web-shell/assets/{c4Diagram-UCG6FXSJ-WPcIgAxw.js → c4Diagram-UCG6FXSJ-rXvYjVVs.js} +1 -1
- package/web-shell/assets/channel-DhUh1Prc.js +1 -0
- package/web-shell/assets/{chunk-2Q5K7J3B-Bj1gOQC9.js → chunk-2Q5K7J3B-DBgDB2KW.js} +1 -1
- package/web-shell/assets/{chunk-5VM5RSS4-C3R9A3P3.js → chunk-5VM5RSS4-CoxrLXwk.js} +1 -1
- package/web-shell/assets/{chunk-F27PBJKO-CvmqvEHu.js → chunk-F27PBJKO-DC5NQEjf.js} +1 -1
- package/web-shell/assets/{chunk-G27WJ6UU-C_If25TG.js → chunk-G27WJ6UU-Cf3GRKgO.js} +1 -1
- package/web-shell/assets/{chunk-JWPE2WC7-BvDHAb7t.js → chunk-JWPE2WC7-DxsEZUOD.js} +1 -1
- package/web-shell/assets/{chunk-LCL6LL3I-lMoppd_e.js → chunk-LCL6LL3I-CEQc9n40.js} +1 -1
- package/web-shell/assets/{chunk-POPQ4Y6H-C-dB9zRU.js → chunk-POPQ4Y6H-DsiSLluJ.js} +1 -1
- package/web-shell/assets/{chunk-SVP7TREG-Bq7Iu-7R.js → chunk-SVP7TREG-CxvHOpi6.js} +1 -1
- package/web-shell/assets/{chunk-XXDRQBXY-Dh3H4DSX.js → chunk-XXDRQBXY-CGvG4BqT.js} +1 -1
- package/web-shell/assets/classDiagram-DTDB5LWJ-u9x7IqO_.js +1 -0
- package/web-shell/assets/classDiagram-v2-JRS7N3AN-u9x7IqO_.js +1 -0
- package/web-shell/assets/{cose-bilkent-JH36ORCC-CSCSbMtg.js → cose-bilkent-JH36ORCC-wq1CwvXH.js} +1 -1
- package/web-shell/assets/{cynefin-OW5HDTMX-RRLTsTaE.js → cynefin-OW5HDTMX-CCzVtrpa.js} +1 -1
- package/web-shell/assets/{cynefinDiagram-5FMLGOSQ-C65LN46e.js → cynefinDiagram-5FMLGOSQ-CrsY22No.js} +1 -1
- package/web-shell/assets/{dagre-3AP2YEHR-BdovI5E9.js → dagre-3AP2YEHR-Bt0t_pl2.js} +1 -1
- package/web-shell/assets/{diagram-S7CK7UJ4-C__1sM3W.js → diagram-S7CK7UJ4-CgFmr50g.js} +1 -1
- package/web-shell/assets/{diagram-UQ7AKVKN-CPmRM5zO.js → diagram-UQ7AKVKN-F5rdharJ.js} +1 -1
- package/web-shell/assets/{diagram-VSXAHHWV-DqhwLyY5.js → diagram-VSXAHHWV-CLtQI9Us.js} +1 -1
- package/web-shell/assets/{diagram-VX7I27RA-D2vw9R7V.js → diagram-VX7I27RA-Bvcc0y0l.js} +1 -1
- package/web-shell/assets/{diagram-Z3DM3KII-DiNJsGCW.js → diagram-Z3DM3KII-B0Zv86Nw.js} +1 -1
- package/web-shell/assets/{ebnfDiagram-PWID7BFC-DzQJrp__.js → ebnfDiagram-PWID7BFC-Ue6Kp4zy.js} +1 -1
- package/web-shell/assets/{erDiagram-SSCWMZ5O-BatwnmvO.js → erDiagram-SSCWMZ5O-EP13tHtp.js} +1 -1
- package/web-shell/assets/{flowDiagram-A5DVABFB-BhzHirl4.js → flowDiagram-A5DVABFB-DKQhXSAb.js} +1 -1
- package/web-shell/assets/{ganttDiagram-EL5Y4UJY-C_xchuB7.js → ganttDiagram-EL5Y4UJY-DOM1GL3N.js} +1 -1
- package/web-shell/assets/{gitGraphDiagram-WWUBYQGX-DNlzQUEd.js → gitGraphDiagram-WWUBYQGX-BXWWwMVj.js} +1 -1
- package/web-shell/assets/{index-D3-F421W.js → index-B-JFgxf_.js} +1 -1
- package/web-shell/assets/{index-CEoLVNsR.js → index-BySRifK6.js} +3 -3
- package/web-shell/assets/{infoDiagram-RXCK75RN-BqwTMueq.js → infoDiagram-RXCK75RN-C_0yC8Ij.js} +1 -1
- package/web-shell/assets/{ishikawaDiagram-5VMMS53U-DtO4tLwV.js → ishikawaDiagram-5VMMS53U-Cb2loNBZ.js} +1 -1
- package/web-shell/assets/{journeyDiagram-EYS64GPL-CFSU0yqx.js → journeyDiagram-EYS64GPL-RPQBx8RB.js} +1 -1
- package/web-shell/assets/{kanban-definition-3QL26DDD-Co3XYypK.js → kanban-definition-3QL26DDD-BclR2dqV.js} +1 -1
- package/web-shell/assets/{layout-nWXTib3H.js → layout-SQVyFkqM.js} +1 -1
- package/web-shell/assets/{linear-D-XaGQzj.js → linear-DWbtI-Pa.js} +1 -1
- package/web-shell/assets/{mermaid.core-iNkpLd37.js → mermaid.core-Bm1cOFEw.js} +6 -6
- package/web-shell/assets/{mindmap-definition-FBJOCRG2-ugnDSQpM.js → mindmap-definition-FBJOCRG2-j9RYxk62.js} +1 -1
- package/web-shell/assets/{pegDiagram-XKGWAZYB-DFsc7FgE.js → pegDiagram-XKGWAZYB-B6GhUCAI.js} +1 -1
- package/web-shell/assets/{pieDiagram-E7YTZNPT-fcQtkfjw.js → pieDiagram-E7YTZNPT-D7co7Zdb.js} +1 -1
- package/web-shell/assets/{quadrantDiagram-AXDQQJYC-Dx7rAH6a.js → quadrantDiagram-AXDQQJYC-WLfkJYEi.js} +1 -1
- package/web-shell/assets/{railroadDiagram-O6MQD6OU-0nnlkbZ1.js → railroadDiagram-O6MQD6OU-CH6JUyt5.js} +1 -1
- package/web-shell/assets/{requirementDiagram-EFPCY7ZU-B-04HJA0.js → requirementDiagram-EFPCY7ZU-dqpSnQop.js} +1 -1
- package/web-shell/assets/{sankeyDiagram-P5KCCOFB-CLsEV75E.js → sankeyDiagram-P5KCCOFB-Bjm20XGX.js} +1 -1
- package/web-shell/assets/{sequenceDiagram-WJ2MYXX4-Cejvbn9H.js → sequenceDiagram-WJ2MYXX4-CE1HvQ3r.js} +1 -1
- package/web-shell/assets/{sizeCapture-X5ZJPWSS-DZ3R_cCz.js → sizeCapture-X5ZJPWSS-D-jc__e7.js} +1 -1
- package/web-shell/assets/{stateDiagram-HBIQ2CUA-BZEDmn1B.js → stateDiagram-HBIQ2CUA-D4oPWH6C.js} +1 -1
- package/web-shell/assets/stateDiagram-v2-4QOOHH4V-Cj2MLX5C.js +1 -0
- package/web-shell/assets/{swimlanes-XN3QIQJK-3SAiHcQZ.js → swimlanes-XN3QIQJK-CxwnXXV2.js} +1 -1
- package/web-shell/assets/swimlanesDiagram-VK2B7HYN-Ke9hgQpA.js +8 -0
- package/web-shell/assets/{timeline-definition-24CTP7MA-BvRpsN9o.js → timeline-definition-24CTP7MA-BF9F9CDF.js} +1 -1
- package/web-shell/assets/{vennDiagram-4TSXK5OY-B_run13a.js → vennDiagram-4TSXK5OY-CkDMgOFv.js} +1 -1
- package/web-shell/assets/{wardleyDiagram-VM6X3IG4-86ZF0DQ5.js → wardleyDiagram-VM6X3IG4-DJ2f-coT.js} +1 -1
- package/web-shell/assets/{xychartDiagram-S5SC5T6Z-CoxU4Yje.js → xychartDiagram-S5SC5T6Z-tfnnRI2D.js} +1 -1
- package/web-shell/index.html +1 -1
- package/web-shell/sw.js +1 -1
- package/chunks/chunk-YCZIOHKD.js +0 -86
- package/web-shell/assets/channel-CBQoqDm3.js +0 -1
- package/web-shell/assets/classDiagram-DTDB5LWJ-CiD27im_.js +0 -1
- package/web-shell/assets/classDiagram-v2-JRS7N3AN-CiD27im_.js +0 -1
- package/web-shell/assets/stateDiagram-v2-4QOOHH4V-Bl6xZ4cy.js +0 -1
- package/web-shell/assets/swimlanesDiagram-VK2B7HYN-DbPmOu0B.js +0 -8
- package/chunks/{container-execution-environment-XBTXQ5YE.js → container-execution-environment-WILZRYKO.js} +3 -3
|
@@ -13,26 +13,24 @@ import {
|
|
|
13
13
|
publishPendingCompileCache,
|
|
14
14
|
reportRejectedLoaderKeys
|
|
15
15
|
} from "./chunk-Z4T563RX.js";
|
|
16
|
+
import {
|
|
17
|
+
buildTrustPrecedenceRules,
|
|
18
|
+
resolveTrustDecision
|
|
19
|
+
} from "./chunk-BHXBXELA.js";
|
|
20
|
+
import {
|
|
21
|
+
getPathComparisonVariants
|
|
22
|
+
} from "./chunk-MXCWSDSC.js";
|
|
16
23
|
import {
|
|
17
24
|
readOperatorSandboxSettings,
|
|
25
|
+
require_strip_json_comments,
|
|
18
26
|
stripUtf8Bom
|
|
19
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-RSFKGHXZ.js";
|
|
20
28
|
import {
|
|
21
29
|
SETTINGS_DIRECTORY_NAME,
|
|
22
30
|
getGlobalO1CodeDirLite,
|
|
23
31
|
getSystemDefaultsPath,
|
|
24
32
|
getSystemSettingsPath
|
|
25
33
|
} from "./chunk-F4S6U26O.js";
|
|
26
|
-
import {
|
|
27
|
-
buildTrustPrecedenceRules,
|
|
28
|
-
resolveTrustDecision
|
|
29
|
-
} from "./chunk-BHXBXELA.js";
|
|
30
|
-
import {
|
|
31
|
-
getPathComparisonVariants
|
|
32
|
-
} from "./chunk-MXCWSDSC.js";
|
|
33
|
-
import {
|
|
34
|
-
require_strip_json_comments
|
|
35
|
-
} from "./chunk-YCZIOHKD.js";
|
|
36
34
|
import {
|
|
37
35
|
require_main,
|
|
38
36
|
resolveEnvVarsInObject
|
|
@@ -2,13 +2,13 @@
|
|
|
2
2
|
"use strict";
|
|
3
3
|
import {
|
|
4
4
|
useKeypress
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-2J7VJ3WC.js";
|
|
6
6
|
import {
|
|
7
7
|
require_react
|
|
8
8
|
} from "./chunk-2KK65OQ6.js";
|
|
9
9
|
import {
|
|
10
10
|
t
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-CDHOAM2E.js";
|
|
12
12
|
import {
|
|
13
13
|
APPROVAL_MODES
|
|
14
14
|
} from "./chunk-KQAVEXYD.js";
|
|
@@ -2,16 +2,16 @@
|
|
|
2
2
|
"use strict";
|
|
3
3
|
import {
|
|
4
4
|
JsonFormatter
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-5P7NQWE6.js";
|
|
6
6
|
import {
|
|
7
7
|
parseAndFormatApiError
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-SR7O2YDD.js";
|
|
9
9
|
import {
|
|
10
10
|
stripAnsiAndControl
|
|
11
11
|
} from "./chunk-FKI7XUZK.js";
|
|
12
12
|
import {
|
|
13
13
|
runExitCleanup
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-UCSYEHMM.js";
|
|
15
15
|
import {
|
|
16
16
|
writeStderrLine
|
|
17
17
|
} from "./chunk-RANA4SOY.js";
|
|
@@ -3,17 +3,17 @@
|
|
|
3
3
|
import {
|
|
4
4
|
getGitVersion,
|
|
5
5
|
getNpmVersion
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-PXOBO32R.js";
|
|
7
7
|
import {
|
|
8
8
|
buildEnvStatusFromEnv,
|
|
9
9
|
snapshotProcessEnv
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-HHXRZCTN.js";
|
|
11
11
|
import {
|
|
12
12
|
mapDomainErrorToErrorKind
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-PYQSQFGU.js";
|
|
14
14
|
import {
|
|
15
15
|
canUseRipgrep
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-A5ZAKF2B.js";
|
|
17
17
|
import {
|
|
18
18
|
init_esbuild_shims
|
|
19
19
|
} from "./chunk-S2467S6L.js";
|
|
@@ -4,6 +4,9 @@ import {
|
|
|
4
4
|
convertSchema,
|
|
5
5
|
relaxSchemaForFunctionCalling
|
|
6
6
|
} from "./chunk-2LYPPV2R.js";
|
|
7
|
+
import {
|
|
8
|
+
markToolCallArgumentsIncomplete
|
|
9
|
+
} from "./chunk-VBDYNBGQ.js";
|
|
7
10
|
import {
|
|
8
11
|
isDisclosureText
|
|
9
12
|
} from "./chunk-HX6AICAX.js";
|
|
@@ -170,6 +173,109 @@ function evictOldestImagesBeyondCap(messages, cap = DEFAULT_MAX_REQUEST_IMAGES)
|
|
|
170
173
|
}
|
|
171
174
|
__name(evictOldestImagesBeyondCap, "evictOldestImagesBeyondCap");
|
|
172
175
|
|
|
176
|
+
// packages/core/src/core/openaiContentGenerator/trailing-thinking-tag-filter.ts
|
|
177
|
+
init_esbuild_shims();
|
|
178
|
+
var CLOSING_TAG_LINE = /\r?\n[ \t]*<\/(think|thinking)[ \t]*>[ \t\r\n]*$/i;
|
|
179
|
+
var CLOSING_MARKUP = /<\//;
|
|
180
|
+
var LITERAL_OPENING_MARKUP = /<(?!(?:t|th|thi|thin|thinki|thinkin)\s*(?=<|$)|think(?=$)|thinking(?=$))[a-z!?]/i;
|
|
181
|
+
var MAX_PENDING_LENGTH = 128;
|
|
182
|
+
var TAIL_LENGTH = 12;
|
|
183
|
+
var TrailingThinkingTagFilter = class {
|
|
184
|
+
static {
|
|
185
|
+
__name(this, "TrailingThinkingTagFilter");
|
|
186
|
+
}
|
|
187
|
+
pending = "";
|
|
188
|
+
hasVisibleText = false;
|
|
189
|
+
literalContent = false;
|
|
190
|
+
markerTail = "";
|
|
191
|
+
emittedTail = "";
|
|
192
|
+
previousLineBlank = true;
|
|
193
|
+
currentLineBlank = true;
|
|
194
|
+
lineIndent = 0;
|
|
195
|
+
/** Set when a call removed a tag; the caller reads and clears it. */
|
|
196
|
+
sanitizedTagName;
|
|
197
|
+
/**
|
|
198
|
+
* @param final no more text follows; nothing stays withheld after this call.
|
|
199
|
+
* @param completed the response ended normally, so a trailing tag is an
|
|
200
|
+
* artifact and not the edge of a cut answer.
|
|
201
|
+
*/
|
|
202
|
+
parse(text, final, completed) {
|
|
203
|
+
this.pending += text;
|
|
204
|
+
const markers = this.markerTail + text;
|
|
205
|
+
this.literalContent ||= /`|~{3}/.test(markers) || LITERAL_OPENING_MARKUP.test(markers);
|
|
206
|
+
this.markerTail = markers.replace(/\s+$/, " ").slice(-TAIL_LENGTH);
|
|
207
|
+
this.trackIndentedCode(text);
|
|
208
|
+
const closing = CLOSING_TAG_LINE.exec(this.pending);
|
|
209
|
+
let candidateStart = closing?.index ?? this.pending.lastIndexOf("\n");
|
|
210
|
+
if (!closing && this.pending.endsWith("\r")) {
|
|
211
|
+
candidateStart = Math.max(candidateStart, this.pending.length - 1);
|
|
212
|
+
} else if (!closing && this.pending[candidateStart - 1] === "\r") {
|
|
213
|
+
candidateStart--;
|
|
214
|
+
}
|
|
215
|
+
if (!closing && candidateStart >= 0) {
|
|
216
|
+
const candidate = this.pending.slice(candidateStart).trimStart();
|
|
217
|
+
const lowered = candidate.toLowerCase();
|
|
218
|
+
if (!["</think>", "</thinking>"].some((tag) => tag.startsWith(lowered)) && !/^<\/(?:think|thinking)[ \t]*>?[ \t\r\n]*$/i.test(candidate)) {
|
|
219
|
+
candidateStart = -1;
|
|
220
|
+
}
|
|
221
|
+
}
|
|
222
|
+
const prefix = candidateStart >= 0 ? this.pending.slice(0, candidateStart) : this.pending;
|
|
223
|
+
this.literalContent ||= CLOSING_MARKUP.test(this.emittedTail + prefix);
|
|
224
|
+
const eligible = !this.literalContent && candidateStart >= 0 && (this.hasVisibleText || /\S/.test(prefix)) && this.pending.length - candidateStart <= MAX_PENDING_LENGTH;
|
|
225
|
+
if (eligible && (!final || completed && closing)) {
|
|
226
|
+
if (final && closing) {
|
|
227
|
+
this.sanitizedTagName = closing[1].toLowerCase();
|
|
228
|
+
}
|
|
229
|
+
this.pending = final ? "" : this.pending.slice(candidateStart);
|
|
230
|
+
this.hasVisibleText ||= /\S/.test(prefix);
|
|
231
|
+
this.noteReleased(prefix);
|
|
232
|
+
return prefix;
|
|
233
|
+
}
|
|
234
|
+
const result = this.pending;
|
|
235
|
+
this.pending = "";
|
|
236
|
+
this.literalContent ||= CLOSING_MARKUP.test(this.emittedTail + result);
|
|
237
|
+
this.hasVisibleText ||= /\S/.test(result);
|
|
238
|
+
this.noteReleased(result);
|
|
239
|
+
return result;
|
|
240
|
+
}
|
|
241
|
+
/**
|
|
242
|
+
* Hands back a hold that is only whitespace, for a caller that is about to
|
|
243
|
+
* stop using this filter. A held tag fragment stays held.
|
|
244
|
+
*/
|
|
245
|
+
drainWhitespace() {
|
|
246
|
+
if (!/^\s+$/.test(this.pending)) return "";
|
|
247
|
+
const held = this.pending;
|
|
248
|
+
this.pending = "";
|
|
249
|
+
this.noteReleased(held);
|
|
250
|
+
return held;
|
|
251
|
+
}
|
|
252
|
+
// A line indented by four columns after a blank line is a code block. After
|
|
253
|
+
// a paragraph line it is not, so one newline and four spaces before the tag
|
|
254
|
+
// must still let it be removed.
|
|
255
|
+
trackIndentedCode(text) {
|
|
256
|
+
for (const character of text) {
|
|
257
|
+
if (character === "\n") {
|
|
258
|
+
this.previousLineBlank = this.currentLineBlank;
|
|
259
|
+
this.currentLineBlank = true;
|
|
260
|
+
this.lineIndent = 0;
|
|
261
|
+
} else if (this.currentLineBlank && /[ \t\r]/.test(character)) {
|
|
262
|
+
if (character !== "\r") {
|
|
263
|
+
this.lineIndent = Math.min(
|
|
264
|
+
4,
|
|
265
|
+
this.lineIndent + (character === " " ? 4 - this.lineIndent % 4 : 1)
|
|
266
|
+
);
|
|
267
|
+
}
|
|
268
|
+
} else {
|
|
269
|
+
this.literalContent ||= this.currentLineBlank && this.previousLineBlank && this.lineIndent >= 4;
|
|
270
|
+
this.currentLineBlank = false;
|
|
271
|
+
}
|
|
272
|
+
}
|
|
273
|
+
}
|
|
274
|
+
noteReleased(text) {
|
|
275
|
+
this.emittedTail = (this.emittedTail + text).slice(-TAIL_LENGTH);
|
|
276
|
+
}
|
|
277
|
+
};
|
|
278
|
+
|
|
173
279
|
// packages/core/src/core/openaiContentGenerator/converter.ts
|
|
174
280
|
var debugLogger2 = createDebugLogger("CONVERTER");
|
|
175
281
|
var SPLIT_TOOL_MEDIA_TEXT = "(attached media from previous tool call)";
|
|
@@ -371,10 +477,10 @@ function convertLlmRequestToOpenAI(request, requestContext, options = { cleanOrp
|
|
|
371
477
|
let messages = [];
|
|
372
478
|
addSystemInstructionMessage(request, messages);
|
|
373
479
|
processContents(request.contents, messages, requestContext);
|
|
374
|
-
messages =
|
|
480
|
+
messages = normalizeAssistantMessages(messages);
|
|
375
481
|
if (options.cleanOrphanToolCalls) {
|
|
376
482
|
messages = cleanOrphanedToolCalls(messages);
|
|
377
|
-
messages =
|
|
483
|
+
messages = normalizeAssistantMessages(messages);
|
|
378
484
|
}
|
|
379
485
|
evictOldestImagesBeyondCap(messages);
|
|
380
486
|
return messages;
|
|
@@ -489,6 +595,33 @@ function processContent(content, messages, requestContext) {
|
|
|
489
595
|
const emittedFunctionCallIds = /* @__PURE__ */ new Set();
|
|
490
596
|
const emittedFunctionResponseIds = /* @__PURE__ */ new Set();
|
|
491
597
|
const accumulatedSplitMedia = [];
|
|
598
|
+
const flushAssistantMessage = /* @__PURE__ */ __name(() => {
|
|
599
|
+
if (contentParts.length === 0 && toolCalls.length === 0 && reasoningParts.length === 0) {
|
|
600
|
+
return;
|
|
601
|
+
}
|
|
602
|
+
const assistantTextContent = contentParts.filter(
|
|
603
|
+
(part) => part.type === "text"
|
|
604
|
+
).map((part) => part.text).join("");
|
|
605
|
+
const assistantMessage = {
|
|
606
|
+
role: "assistant",
|
|
607
|
+
// When there is reasoning content but no text, use "" instead of null.
|
|
608
|
+
// Some OpenAI-compatible providers (e.g. Ollama) reject content: null
|
|
609
|
+
// when reasoning_content is present, returning HTTP 400.
|
|
610
|
+
// For tool-call-only messages we keep null to stay spec-compliant.
|
|
611
|
+
content: assistantTextContent || (reasoningParts.length > 0 ? "" : null)
|
|
612
|
+
};
|
|
613
|
+
if (toolCalls.length > 0) {
|
|
614
|
+
assistantMessage.tool_calls = [...toolCalls];
|
|
615
|
+
}
|
|
616
|
+
const reasoningContent = reasoningParts.join("");
|
|
617
|
+
if (reasoningContent) {
|
|
618
|
+
assistantMessage.reasoning_content = reasoningContent;
|
|
619
|
+
}
|
|
620
|
+
messages.push(assistantMessage);
|
|
621
|
+
contentParts.length = 0;
|
|
622
|
+
reasoningParts.length = 0;
|
|
623
|
+
toolCalls.length = 0;
|
|
624
|
+
}, "flushAssistantMessage");
|
|
492
625
|
for (const part of parts) {
|
|
493
626
|
if (typeof part === "string") {
|
|
494
627
|
contentParts.push({ type: "text", text: part });
|
|
@@ -496,6 +629,9 @@ function processContent(content, messages, requestContext) {
|
|
|
496
629
|
}
|
|
497
630
|
if ("text" in part && "thought" in part && part.thought) {
|
|
498
631
|
if (role === "assistant" && part.text) {
|
|
632
|
+
if (contentParts.length > 0 || toolCalls.length > 0) {
|
|
633
|
+
flushAssistantMessage();
|
|
634
|
+
}
|
|
499
635
|
reasoningParts.push(part.text);
|
|
500
636
|
}
|
|
501
637
|
}
|
|
@@ -587,28 +723,7 @@ function processContent(content, messages, requestContext) {
|
|
|
587
723
|
});
|
|
588
724
|
}
|
|
589
725
|
if (role === "assistant") {
|
|
590
|
-
|
|
591
|
-
return;
|
|
592
|
-
}
|
|
593
|
-
const assistantTextContent = contentParts.filter(
|
|
594
|
-
(part) => part.type === "text"
|
|
595
|
-
).map((part) => part.text).join("");
|
|
596
|
-
const assistantMessage = {
|
|
597
|
-
role: "assistant",
|
|
598
|
-
// When there is reasoning content but no text, use "" instead of null.
|
|
599
|
-
// Some OpenAI-compatible providers (e.g. Ollama) reject content: null
|
|
600
|
-
// when reasoning_content is present, returning HTTP 400.
|
|
601
|
-
// For tool-call-only messages we keep null to stay spec-compliant.
|
|
602
|
-
content: assistantTextContent || (reasoningParts.length > 0 ? "" : null)
|
|
603
|
-
};
|
|
604
|
-
if (toolCalls.length > 0) {
|
|
605
|
-
assistantMessage.tool_calls = toolCalls;
|
|
606
|
-
}
|
|
607
|
-
const reasoningContent = reasoningParts.join("");
|
|
608
|
-
if (reasoningContent) {
|
|
609
|
-
assistantMessage.reasoning_content = reasoningContent;
|
|
610
|
-
}
|
|
611
|
-
messages.push(assistantMessage);
|
|
726
|
+
flushAssistantMessage();
|
|
612
727
|
return;
|
|
613
728
|
}
|
|
614
729
|
if (contentParts.length > 0) {
|
|
@@ -895,8 +1010,23 @@ function extractTextFromContentUnion(contentUnion) {
|
|
|
895
1010
|
return "";
|
|
896
1011
|
}
|
|
897
1012
|
__name(extractTextFromContentUnion, "extractTextFromContentUnion");
|
|
898
|
-
function convertOpenAITextToParts(text, requestContext, final
|
|
1013
|
+
function convertOpenAITextToParts(text, requestContext, final, completed) {
|
|
899
1014
|
if (!requestContext.responseParsingOptions?.taggedThinkingTags && !requestContext.taggedThinkingParser) {
|
|
1015
|
+
if (requestContext.responseParsingOptions?.contentOnlyThinkingTagLeaks) {
|
|
1016
|
+
const filter = requestContext.trailingThinkingTagFilter ??= new TrailingThinkingTagFilter();
|
|
1017
|
+
text = filter.parse(
|
|
1018
|
+
text,
|
|
1019
|
+
final || requestContext.hasThinkingTagInReasoning === true,
|
|
1020
|
+
completed && !requestContext.hasThinkingTagInReasoning
|
|
1021
|
+
);
|
|
1022
|
+
if (filter.sanitizedTagName) {
|
|
1023
|
+
requestContext.protocolTagSanitized = {
|
|
1024
|
+
tagName: filter.sanitizedTagName,
|
|
1025
|
+
toolCallCount: 0
|
|
1026
|
+
};
|
|
1027
|
+
filter.sanitizedTagName = void 0;
|
|
1028
|
+
}
|
|
1029
|
+
}
|
|
900
1030
|
return text ? [{ text }] : [];
|
|
901
1031
|
}
|
|
902
1032
|
if (requestContext.taggedThinkingParser) {
|
|
@@ -916,6 +1046,10 @@ var LEADING_THINKING_TAG_PATTERN = /^\s*<\/?think(?:ing)?\s*>/i;
|
|
|
916
1046
|
var STANDALONE_CLOSING_THINKING_TAG_PATTERN = /^\s*<\/(think|thinking)\s*>\s*$/i;
|
|
917
1047
|
var STANDALONE_OPENING_THINKING_TAG_PATTERN = /^\s*<(think|thinking)\s*>\s*$/i;
|
|
918
1048
|
var MAX_THINKING_TAG_CANDIDATE_LENGTH = 128;
|
|
1049
|
+
function completedNormally(finishReason, reasoningText) {
|
|
1050
|
+
return mapOpenAIFinishReasonToLlm(finishReason || "stop") === FinishReason.STOP && !THINKING_TAG_PATTERN.test(reasoningText ?? "");
|
|
1051
|
+
}
|
|
1052
|
+
__name(completedNormally, "completedNormally");
|
|
919
1053
|
function canBeStandaloneThinkingTagPrefix(text) {
|
|
920
1054
|
const candidate = text.trimStart().toLowerCase();
|
|
921
1055
|
if (!candidate) return true;
|
|
@@ -983,7 +1117,12 @@ function convertOpenAIResponseToLlm(openaiResponse, requestContext) {
|
|
|
983
1117
|
const response = new GenerateContentResponse();
|
|
984
1118
|
if (choice) {
|
|
985
1119
|
const parts = [];
|
|
986
|
-
const textParts = choice.message.content ? convertOpenAITextToParts(
|
|
1120
|
+
const textParts = choice.message.content ? convertOpenAITextToParts(
|
|
1121
|
+
choice.message.content,
|
|
1122
|
+
requestContext,
|
|
1123
|
+
true,
|
|
1124
|
+
completedNormally(choice.finish_reason, reasoningText)
|
|
1125
|
+
) : [];
|
|
987
1126
|
if (reasoningText && !hasThoughtPart(textParts)) {
|
|
988
1127
|
parts.push(createOpenAIReasoningThoughtPart(reasoningText));
|
|
989
1128
|
}
|
|
@@ -1085,6 +1224,9 @@ function convertOpenAIChunkToLlm(chunk, requestContext) {
|
|
|
1085
1224
|
let parts = [];
|
|
1086
1225
|
let contentParts = [];
|
|
1087
1226
|
const reasoningText = choice.delta?.reasoning_content ?? choice.delta?.reasoning;
|
|
1227
|
+
if (!requestContext.responseParsingOptions?.taggedThinkingTags && THINKING_TAG_PATTERN.test(reasoningText ?? "")) {
|
|
1228
|
+
requestContext.hasThinkingTagInReasoning = true;
|
|
1229
|
+
}
|
|
1088
1230
|
if (typeof choice.delta?.content === "string") {
|
|
1089
1231
|
const rawContent = choice.delta.content;
|
|
1090
1232
|
const replayState = requestContext.textDeltaState;
|
|
@@ -1106,19 +1248,26 @@ function convertOpenAIChunkToLlm(chunk, requestContext) {
|
|
|
1106
1248
|
if (requestContext.responseParsingOptions?.taggedThinkingTagsAfterReasoning && (requestContext.hasStructuredReasoningContent || reasoningText) && LEADING_THINKING_TAG_PATTERN.test(taggedThinkingCandidate) && !taggedThinkingCandidate.trimStart().startsWith("</")) {
|
|
1107
1249
|
requestContext.taggedThinkingParser ??= new TaggedThinkingParser();
|
|
1108
1250
|
requestContext.pendingThinkingTagCandidate = void 0;
|
|
1251
|
+
const drainedWhitespace = requestContext.trailingThinkingTagFilter?.drainWhitespace() ?? "";
|
|
1109
1252
|
contentParts = requestContext.taggedThinkingParser.parse(
|
|
1110
|
-
taggedThinkingCandidate,
|
|
1253
|
+
drainedWhitespace + taggedThinkingCandidate,
|
|
1111
1254
|
Boolean(choice.finish_reason)
|
|
1112
1255
|
);
|
|
1113
1256
|
} else if (normalizedContent || choice.finish_reason) {
|
|
1114
1257
|
contentParts = convertOpenAITextToParts(
|
|
1115
1258
|
normalizedContent,
|
|
1116
1259
|
requestContext,
|
|
1117
|
-
Boolean(choice.finish_reason)
|
|
1260
|
+
Boolean(choice.finish_reason),
|
|
1261
|
+
completedNormally(choice.finish_reason, reasoningText)
|
|
1118
1262
|
);
|
|
1119
1263
|
}
|
|
1120
1264
|
} else if (choice.finish_reason) {
|
|
1121
|
-
contentParts = convertOpenAITextToParts(
|
|
1265
|
+
contentParts = convertOpenAITextToParts(
|
|
1266
|
+
"",
|
|
1267
|
+
requestContext,
|
|
1268
|
+
true,
|
|
1269
|
+
completedNormally(choice.finish_reason, reasoningText)
|
|
1270
|
+
);
|
|
1122
1271
|
}
|
|
1123
1272
|
if (choice.finish_reason && requestContext.responseParsingOptions?.taggedThinkingTagsAfterReasoning && requestContext.taggedThinkingParser?.hasUnclosedThought()) {
|
|
1124
1273
|
throwProtocolTagLeak(requestContext);
|
|
@@ -1296,6 +1445,9 @@ function convertOpenAIChunkToLlm(chunk, requestContext) {
|
|
|
1296
1445
|
const toolCallWithoutName = toolCallParser.hasNamelessToolCall();
|
|
1297
1446
|
const completedToolCalls = choice.finish_reason ? toolCallParser.getCompletedToolCalls() : [];
|
|
1298
1447
|
const toolCallsTruncated = choice.finish_reason ? toolCallParser.hasIncompleteToolCalls() : false;
|
|
1448
|
+
if (choice.finish_reason && requestContext.protocolTagSanitized) {
|
|
1449
|
+
requestContext.protocolTagSanitized.toolCallCount = completedToolCalls.length;
|
|
1450
|
+
}
|
|
1299
1451
|
if (choice.finish_reason && requestContext.pendingThinkingTagCandidate?.closingTagName) {
|
|
1300
1452
|
if (requestContext.hasThinkingTagInReasoning === true || choice.finish_reason !== "tool_calls" || completedToolCalls.length === 0 || toolCallWithoutName || toolCallParser.hasConflictingToolCallIdentity() || toolCallsTruncated || toolCallParser.hasInvalidToolCallArguments()) {
|
|
1301
1453
|
throwProtocolTagLeak(requestContext);
|
|
@@ -1334,7 +1486,28 @@ function convertOpenAIChunkToLlm(chunk, requestContext) {
|
|
|
1334
1486
|
}
|
|
1335
1487
|
}
|
|
1336
1488
|
}
|
|
1337
|
-
const
|
|
1489
|
+
const suspectTruncation = toolCallsTruncated && choice.finish_reason !== "length";
|
|
1490
|
+
const usageVerdict = corroborateTruncationFromCompletionTokens(
|
|
1491
|
+
chunk.usage?.completion_tokens,
|
|
1492
|
+
requestContext.maxOutputTokens
|
|
1493
|
+
);
|
|
1494
|
+
if (suspectTruncation) {
|
|
1495
|
+
debugLogger2.debug("Truncated tool-call finish_reason override", {
|
|
1496
|
+
providerFinishReason: choice.finish_reason,
|
|
1497
|
+
completionTokens: chunk.usage?.completion_tokens ?? null,
|
|
1498
|
+
maxOutputTokens: requestContext.maxOutputTokens ?? null,
|
|
1499
|
+
verdict: usageVerdict
|
|
1500
|
+
});
|
|
1501
|
+
}
|
|
1502
|
+
const effectiveFinishReason = suspectTruncation && usageVerdict !== "disproved" ? "length" : choice.finish_reason;
|
|
1503
|
+
if (suspectTruncation && usageVerdict === "unknown") {
|
|
1504
|
+
requestContext.pendingTruncationOverride = {
|
|
1505
|
+
finishReason: mapOpenAIFinishReasonToLlm(choice.finish_reason)
|
|
1506
|
+
};
|
|
1507
|
+
}
|
|
1508
|
+
if (suspectTruncation && usageVerdict === "disproved") {
|
|
1509
|
+
markToolCallArgumentsIncomplete(parts);
|
|
1510
|
+
}
|
|
1338
1511
|
const candidate = {
|
|
1339
1512
|
content: {
|
|
1340
1513
|
parts,
|
|
@@ -1394,6 +1567,14 @@ function convertOpenAIChunkToLlm(chunk, requestContext) {
|
|
|
1394
1567
|
return response;
|
|
1395
1568
|
}
|
|
1396
1569
|
__name(convertOpenAIChunkToLlm, "convertOpenAIChunkToLlm");
|
|
1570
|
+
var TRUNCATION_COMPLETION_TOKEN_RATIO_THRESHOLD = 0.5;
|
|
1571
|
+
function corroborateTruncationFromCompletionTokens(completionTokens, maxOutputTokens) {
|
|
1572
|
+
if (typeof completionTokens !== "number" || !Number.isFinite(completionTokens) || completionTokens <= 0 || maxOutputTokens === void 0 || maxOutputTokens <= 0) {
|
|
1573
|
+
return "unknown";
|
|
1574
|
+
}
|
|
1575
|
+
return completionTokens >= maxOutputTokens * TRUNCATION_COMPLETION_TOKEN_RATIO_THRESHOLD ? "corroborated" : "disproved";
|
|
1576
|
+
}
|
|
1577
|
+
__name(corroborateTruncationFromCompletionTokens, "corroborateTruncationFromCompletionTokens");
|
|
1397
1578
|
function mapOpenAIFinishReasonToLlm(openaiReason) {
|
|
1398
1579
|
if (typeof openaiReason !== "string") {
|
|
1399
1580
|
return FinishReason.FINISH_REASON_UNSPECIFIED;
|
|
@@ -1496,9 +1677,6 @@ function cleanOrphanedToolCalls(messages) {
|
|
|
1496
1677
|
}
|
|
1497
1678
|
continue;
|
|
1498
1679
|
}
|
|
1499
|
-
if (nextMessage.role === "assistant" && !hasToolCalls(nextMessage)) {
|
|
1500
|
-
continue;
|
|
1501
|
-
}
|
|
1502
1680
|
break;
|
|
1503
1681
|
}
|
|
1504
1682
|
const validToolCalls = candidateToolCalls.filter(
|
|
@@ -1564,50 +1742,55 @@ function cleanOrphanedToolCalls(messages) {
|
|
|
1564
1742
|
return cleaned;
|
|
1565
1743
|
}
|
|
1566
1744
|
__name(cleanOrphanedToolCalls, "cleanOrphanedToolCalls");
|
|
1567
|
-
function
|
|
1568
|
-
const
|
|
1745
|
+
function normalizeAssistantMessages(messages) {
|
|
1746
|
+
const normalized = [];
|
|
1747
|
+
let toolCalls = [];
|
|
1748
|
+
const flushToolCalls = /* @__PURE__ */ __name(() => {
|
|
1749
|
+
if (toolCalls.length === 0) return;
|
|
1750
|
+
const last = normalized.at(-1);
|
|
1751
|
+
if (last?.role === "assistant") {
|
|
1752
|
+
last.tool_calls = toolCalls;
|
|
1753
|
+
} else {
|
|
1754
|
+
normalized.push({
|
|
1755
|
+
role: "assistant",
|
|
1756
|
+
content: null,
|
|
1757
|
+
tool_calls: toolCalls
|
|
1758
|
+
});
|
|
1759
|
+
}
|
|
1760
|
+
toolCalls = [];
|
|
1761
|
+
}, "flushToolCalls");
|
|
1569
1762
|
for (const message of messages) {
|
|
1570
|
-
if (message.role
|
|
1571
|
-
|
|
1572
|
-
|
|
1573
|
-
|
|
1574
|
-
|
|
1575
|
-
|
|
1576
|
-
|
|
1577
|
-
|
|
1578
|
-
|
|
1579
|
-
|
|
1580
|
-
|
|
1581
|
-
|
|
1582
|
-
|
|
1583
|
-
|
|
1584
|
-
|
|
1585
|
-
|
|
1586
|
-
|
|
1587
|
-
|
|
1588
|
-
|
|
1589
|
-
|
|
1590
|
-
|
|
1591
|
-
|
|
1592
|
-
|
|
1593
|
-
|
|
1594
|
-
|
|
1595
|
-
lastMessage.tool_calls = combinedToolCalls;
|
|
1596
|
-
}
|
|
1597
|
-
const lastReasoning = lastMessage.reasoning_content;
|
|
1598
|
-
const currentReasoning = message.reasoning_content;
|
|
1599
|
-
const combinedReasoning = [lastReasoning, currentReasoning].filter(Boolean).join("");
|
|
1600
|
-
if (combinedReasoning) {
|
|
1601
|
-
lastMessage.reasoning_content = combinedReasoning;
|
|
1602
|
-
}
|
|
1603
|
-
continue;
|
|
1604
|
-
}
|
|
1763
|
+
if (message.role !== "assistant") {
|
|
1764
|
+
flushToolCalls();
|
|
1765
|
+
normalized.push(message);
|
|
1766
|
+
continue;
|
|
1767
|
+
}
|
|
1768
|
+
const { tool_calls: calls = [], ...next } = message;
|
|
1769
|
+
const last = normalized.at(-1);
|
|
1770
|
+
const lastAssistant = last?.role === "assistant" ? last : void 0;
|
|
1771
|
+
toolCalls.push(...calls);
|
|
1772
|
+
if (!next.content && !next.reasoning_content && calls.length > 0) {
|
|
1773
|
+
continue;
|
|
1774
|
+
}
|
|
1775
|
+
if (!lastAssistant || next.reasoning_content) {
|
|
1776
|
+
normalized.push(next);
|
|
1777
|
+
continue;
|
|
1778
|
+
}
|
|
1779
|
+
if (Array.isArray(lastAssistant.content) || Array.isArray(next.content)) {
|
|
1780
|
+
const asParts = /* @__PURE__ */ __name((content) => Array.isArray(content) ? content : content ? [{ type: "text", text: content }] : [], "asParts");
|
|
1781
|
+
lastAssistant.content = [
|
|
1782
|
+
...asParts(lastAssistant.content),
|
|
1783
|
+
...asParts(next.content)
|
|
1784
|
+
];
|
|
1785
|
+
} else {
|
|
1786
|
+
const text = (lastAssistant.content || "") + (next.content || "");
|
|
1787
|
+
lastAssistant.content = text || (lastAssistant.reasoning_content ? "" : null);
|
|
1605
1788
|
}
|
|
1606
|
-
merged.push(message);
|
|
1607
1789
|
}
|
|
1608
|
-
|
|
1790
|
+
flushToolCalls();
|
|
1791
|
+
return normalized;
|
|
1609
1792
|
}
|
|
1610
|
-
__name(
|
|
1793
|
+
__name(normalizeAssistantMessages, "normalizeAssistantMessages");
|
|
1611
1794
|
var OpenAIContentConverter = {
|
|
1612
1795
|
convertLlmToolParametersToOpenAI,
|
|
1613
1796
|
convertLlmToolsToOpenAI,
|
|
@@ -1624,6 +1807,7 @@ var openaiRequestCaptureContext = new AsyncLocalStorage();
|
|
|
1624
1807
|
|
|
1625
1808
|
export {
|
|
1626
1809
|
TaggedThinkingParser,
|
|
1810
|
+
corroborateTruncationFromCompletionTokens,
|
|
1627
1811
|
OpenAIContentConverter,
|
|
1628
1812
|
openaiRequestCaptureContext
|
|
1629
1813
|
};
|
|
@@ -1637,3 +1821,8 @@ export {
|
|
|
1637
1821
|
* Copyright 2025 Google LLC
|
|
1638
1822
|
* SPDX-License-Identifier: Apache-2.0
|
|
1639
1823
|
*/
|
|
1824
|
+
/**
|
|
1825
|
+
* @license
|
|
1826
|
+
* Copyright 2026 o1-code contributors
|
|
1827
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
1828
|
+
*/
|
|
@@ -10,11 +10,12 @@ import {
|
|
|
10
10
|
getPathComparisonVariants
|
|
11
11
|
} from "./chunk-MXCWSDSC.js";
|
|
12
12
|
import {
|
|
13
|
-
require_strip_json_comments
|
|
14
|
-
|
|
13
|
+
require_strip_json_comments,
|
|
14
|
+
stripUtf8Bom
|
|
15
|
+
} from "./chunk-RSFKGHXZ.js";
|
|
15
16
|
import {
|
|
16
17
|
ideContextStore
|
|
17
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-SR7O2YDD.js";
|
|
18
19
|
import {
|
|
19
20
|
require_proper_lockfile
|
|
20
21
|
} from "./chunk-4LCUE7BN.js";
|
|
@@ -1930,7 +1931,9 @@ function loadTrustedFolders() {
|
|
|
1930
1931
|
try {
|
|
1931
1932
|
if (fs3.existsSync(userPath)) {
|
|
1932
1933
|
const content = fs3.readFileSync(userPath, "utf-8");
|
|
1933
|
-
const parsed = JSON.parse(
|
|
1934
|
+
const parsed = JSON.parse(
|
|
1935
|
+
(0, import_strip_json_comments.default)(stripUtf8Bom(content))
|
|
1936
|
+
);
|
|
1934
1937
|
if (typeof parsed !== "object" || parsed === null || Array.isArray(parsed)) {
|
|
1935
1938
|
errors.push({
|
|
1936
1939
|
message: "Trusted folders file is not a valid JSON object.",
|
|
@@ -2,24 +2,24 @@
|
|
|
2
2
|
"use strict";
|
|
3
3
|
import {
|
|
4
4
|
functionResponsePartsToString
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-EVYREOIG.js";
|
|
6
6
|
import {
|
|
7
7
|
observeHeadlessToolResultProjection,
|
|
8
8
|
observeHeadlessToolResultWire,
|
|
9
9
|
projectJsonStringToByteBudget
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-S5TFGSM3.js";
|
|
11
11
|
import {
|
|
12
12
|
createNotStartedToolErrorResponse,
|
|
13
13
|
parseAndFormatApiError,
|
|
14
14
|
toolResultBoundaryArtifact
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-SR7O2YDD.js";
|
|
16
16
|
import {
|
|
17
17
|
shellResultText
|
|
18
18
|
} from "./chunk-GYGA6V6B.js";
|
|
19
19
|
import {
|
|
20
20
|
formatVisionBridgeNoticeDisplay,
|
|
21
21
|
isVisionBridgeNoticeDisplay
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-MNLPYHDS.js";
|
|
23
23
|
import {
|
|
24
24
|
init_esbuild_shims
|
|
25
25
|
} from "./chunk-S2467S6L.js";
|
|
@@ -2,13 +2,13 @@
|
|
|
2
2
|
"use strict";
|
|
3
3
|
import {
|
|
4
4
|
GIT_COMMIT_INFO
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-7XELAF5M.js";
|
|
6
6
|
import {
|
|
7
7
|
getCliVersion
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-RM54W4ER.js";
|
|
9
9
|
import {
|
|
10
10
|
IdeClient
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-SR7O2YDD.js";
|
|
12
12
|
import {
|
|
13
13
|
formatMemoryUsage
|
|
14
14
|
} from "./chunk-M7AWQAB7.js";
|