@organizaone/o1-code 0.24.4 → 0.25.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/trusted-folders.md +2 -0
- package/bundled/qc-helper/docs/features/lsp.md +1 -1
- package/bundled/qc-helper/docs/features/skills.md +1 -1
- package/chunks/{MaxSizedBox-R3WCCMDP.js → MaxSizedBox-SX7L43GF.js} +23 -23
- package/chunks/{StandaloneSessionPicker-7FNCKSJL.js → StandaloneSessionPicker-V6A3S6MF.js} +37 -37
- package/chunks/{acp-subagent-executor-HKXXRTC6.js → acp-subagent-executor-52MZCRRP.js} +25 -25
- package/chunks/{acpAgent-7T5EXCAI.js → acpAgent-IQDDNOET.js} +112 -65
- package/chunks/{agent-4CLDKDDT.js → agent-O6PLYNPF.js} +14 -14
- package/chunks/{agent-headless-FJDC7A7W.js → agent-headless-P2WT7VGJ.js} +14 -14
- package/chunks/{all-providers-PV2UF4ZJ.js → all-providers-WWSVGE7P.js} +2 -2
- package/chunks/{anthropicContentGenerator-WHG6QIWD.js → anthropicContentGenerator-FLIKRMH6.js} +4 -4
- package/chunks/{bridge-STTH7NIG.js → bridge-RVD5UN3S.js} +25 -25
- package/chunks/{bwrap-execution-SD7FCUZG.js → bwrap-execution-623BHVNE.js} +4 -4
- package/chunks/{chunk-KBJUSPXP.js → chunk-2DIUCC6N.js} +1 -1
- package/chunks/{chunk-NBW3FPCV.js → chunk-2KBKQCET.js} +2 -2
- package/chunks/{chunk-U7YFE6QU.js → chunk-2KF67MR3.js} +1 -1
- package/chunks/{chunk-KH5PKMPX.js → chunk-2KYJA6BK.js} +1 -1
- package/chunks/{chunk-RKDSZAAB.js → chunk-3GX2JF2F.js} +1 -1
- package/chunks/{chunk-DDKQAJ2L.js → chunk-3LGQKO4S.js} +2 -2
- package/chunks/{chunk-X4PYCN2A.js → chunk-3W635FXS.js} +1 -1
- package/chunks/{chunk-Y3JWAVRJ.js → chunk-4CSMD2N2.js} +1 -1
- package/chunks/{chunk-UTSGRHTE.js → chunk-4KOM3B7Q.js} +4 -4
- package/chunks/{chunk-YD7HBQ4B.js → chunk-5DYWST3G.js} +237 -155
- package/chunks/{chunk-LFIUEVXG.js → chunk-5HHYWAT2.js} +3 -3
- package/chunks/{chunk-ZUF4S43P.js → chunk-6JK2YX3M.js} +1 -1
- package/chunks/{chunk-Z335FWG2.js → chunk-6KVIR254.js} +1 -1
- package/chunks/{chunk-32MCJDCD.js → chunk-74GVXLB4.js} +3 -3
- package/chunks/{chunk-E6CUCFSE.js → chunk-7H3GMHNV.js} +1 -1
- package/chunks/{chunk-R7A5R2A4.js → chunk-7Y53G2LA.js} +2 -2
- package/chunks/{chunk-MOXODXPF.js → chunk-7YEY47HZ.js} +1 -1
- package/chunks/{chunk-GKJ7VLC4.js → chunk-BGIED5LF.js} +1 -1
- package/chunks/{chunk-GNUYTJR4.js → chunk-BZCAZORI.js} +10 -6
- package/chunks/{chunk-5RKM3PAM.js → chunk-C6GZRQ6A.js} +2 -2
- package/chunks/{chunk-NMOAEZHZ.js → chunk-CCGIWTGK.js} +1 -1
- package/chunks/{chunk-OM3ETK2B.js → chunk-CD4C4ADN.js} +1 -1
- package/chunks/{chunk-7DB237F2.js → chunk-CL6WD3KD.js} +1 -1
- package/chunks/{chunk-C2PHW4EH.js → chunk-DF73UBWX.js} +2 -2
- package/chunks/{chunk-4AYUG5OA.js → chunk-E66W34L5.js} +27 -27
- package/chunks/{chunk-IVS6A764.js → chunk-GJ7VXZXF.js} +3 -3
- package/chunks/{chunk-YV65UNGT.js → chunk-GNJ6CIDW.js} +4 -4
- package/chunks/{chunk-2SMHE6PC.js → chunk-GVJCUUWW.js} +12 -2
- package/chunks/{chunk-ULD6WVHS.js → chunk-GY3JWX4O.js} +1 -1
- package/chunks/{chunk-P3WBQU4W.js → chunk-H7Z2QHT6.js} +3 -3
- package/chunks/{chunk-D2VSGPCU.js → chunk-HFVCWMFQ.js} +4 -4
- package/chunks/{chunk-BHQMXPNX.js → chunk-IA7N7U2C.js} +2 -2
- package/chunks/{chunk-KNHVSIXT.js → chunk-IV2ZUCOX.js} +1 -1
- package/chunks/{chunk-PHCETAH4.js → chunk-JTIB6W5A.js} +1 -1
- package/chunks/{chunk-JLHNHDIX.js → chunk-JUKBFMZ5.js} +2 -2
- package/chunks/{chunk-64U7XL2P.js → chunk-JUPK7JWP.js} +1 -1
- package/chunks/{chunk-XXCW63SZ.js → chunk-KDPUC3CO.js} +2 -2
- package/chunks/{chunk-JRQBL4PC.js → chunk-KDUC6UGX.js} +2 -2
- package/chunks/{chunk-REEXTHEV.js → chunk-KJBZVVEC.js} +4 -4
- package/chunks/{chunk-F53IZGBG.js → chunk-KMGKWFHR.js} +15 -9
- package/chunks/{chunk-CKLLPBTK.js → chunk-KU6I333M.js} +2 -2
- package/chunks/{chunk-7TDXFRPU.js → chunk-KWP7CAXY.js} +3 -3
- package/chunks/{chunk-BI5MTP6I.js → chunk-KX6OMS75.js} +1 -1
- package/chunks/{chunk-BFUPFMJB.js → chunk-KZW5RTF3.js} +3 -3
- package/chunks/{chunk-JQJFZJC6.js → chunk-LK26AJMU.js} +1 -1
- package/chunks/{chunk-B25ERMH7.js → chunk-LZAXDVE3.js} +3 -3
- package/chunks/{chunk-LXYR5QMF.js → chunk-MG37E6PW.js} +1 -1
- package/chunks/{chunk-GRVSIETU.js → chunk-MMIJMF43.js} +2 -2
- package/chunks/{chunk-DH56IBSD.js → chunk-MPN67YNU.js} +7 -7
- package/chunks/{chunk-TCP23JAU.js → chunk-NJ75V6UO.js} +2 -2
- package/chunks/{chunk-VVGCAYOV.js → chunk-NRCLJUSY.js} +1 -1
- package/chunks/{chunk-HTAUOTQC.js → chunk-OBBP2ZN7.js} +4 -4
- package/chunks/{chunk-5TIAE4ZF.js → chunk-ODNOCYH7.js} +1 -1
- package/chunks/{chunk-AFHY22UG.js → chunk-OQ35ZKIB.js} +2 -2
- package/chunks/{chunk-G5NS2LZJ.js → chunk-OZFPMAHJ.js} +1 -1
- package/chunks/{chunk-T24G5443.js → chunk-P4XQQFCZ.js} +3 -8
- package/chunks/{chunk-CMKOMVQI.js → chunk-P7BCOR5S.js} +8 -8
- package/chunks/{chunk-DPX2KXXW.js → chunk-PCKTU3X5.js} +1 -1
- package/chunks/{chunk-GSEYQ6LG.js → chunk-PGFXYKSJ.js} +8 -8
- package/chunks/{chunk-LA5X3T5J.js → chunk-PK2LRZWK.js} +7 -7
- package/chunks/{chunk-HX6PP5L7.js → chunk-PZNY2JJJ.js} +1 -1
- package/chunks/{chunk-TDCYTHEP.js → chunk-QKYD3YLE.js} +4 -4
- package/chunks/{chunk-G7SUACM4.js → chunk-R77APYHJ.js} +1 -1
- package/chunks/{chunk-MTLNATHF.js → chunk-RIG4A6YO.js} +1 -1
- package/chunks/{chunk-NAC3J4RD.js → chunk-RLV4EZSY.js} +1 -1
- package/chunks/{chunk-5TNQHJI7.js → chunk-RUDVLHPQ.js} +6 -6
- package/chunks/{chunk-AVJ2B4DG.js → chunk-RXNYXW2A.js} +3 -3
- package/chunks/{chunk-WJSAXJJA.js → chunk-RXOKJEB4.js} +13 -13
- package/chunks/{chunk-J4TLKG4O.js → chunk-S4ASMRKL.js} +3 -3
- package/chunks/{chunk-LIXPUYYM.js → chunk-S5JHP5C5.js} +12 -12
- package/chunks/{chunk-7MJVA4IF.js → chunk-S7SIWFBW.js} +33 -33
- package/chunks/{chunk-ZA4EHTZ3.js → chunk-SELDIVLD.js} +3 -3
- package/chunks/{chunk-KMIH3YVO.js → chunk-SH5HEA4E.js} +4 -4
- package/chunks/{chunk-2OFN5RBA.js → chunk-TOWDGX4R.js} +1 -1
- package/chunks/{chunk-OWO2HPTQ.js → chunk-TYGBYVRJ.js} +3 -3
- package/chunks/{chunk-A3OHVZOI.js → chunk-UAN7WQIF.js} +2 -2
- package/chunks/{chunk-7LDKUYXK.js → chunk-UUUIRL5U.js} +1 -1
- package/chunks/{chunk-BASKI2UI.js → chunk-UYG4HVPV.js} +4 -1
- package/chunks/{chunk-RG57GCS5.js → chunk-UYRSN6YI.js} +2 -2
- package/chunks/{chunk-TIKWOIBI.js → chunk-V4QKOYNB.js} +2 -2
- package/chunks/{chunk-GXGK7GSI.js → chunk-WZ3DCPKN.js} +1 -1
- package/chunks/{chunk-ZUNJAPSW.js → chunk-XGP4RGF4.js} +1 -1
- package/chunks/{chunk-NKRJJVOK.js → chunk-XHETKALB.js} +7 -7
- package/chunks/{chunk-AK3UHHLW.js → chunk-XHFAV57Y.js} +1 -1
- package/chunks/{chunk-UOLKVPOL.js → chunk-YAWHSZ4N.js} +1 -1
- package/chunks/{chunk-GJM7LPW3.js → chunk-YVLUG6HM.js} +2 -2
- package/chunks/{chunk-MLAF3GLB.js → chunk-Z4T563RX.js} +3 -0
- package/chunks/{chunk-GHVB5DIG.js → chunk-ZE5EC3FJ.js} +4 -4
- package/chunks/{chunk-6ENUEYCL.js → chunk-ZS5CRCES.js} +1 -1
- package/chunks/{chunk-7H7I4C6J.js → chunk-ZUZXFA5O.js} +1 -1
- package/chunks/{codex-subagent-executor-VYJOT6ZX.js → codex-subagent-executor-IH3LMUV4.js} +25 -25
- package/chunks/{contextCommand-H2RGNUM4.js → contextCommand-RKQX2A2Q.js} +24 -24
- package/chunks/{core-runtime-RRV7B5QI.js → core-runtime-GGSTSFTA.js} +23 -23
- package/chunks/{create-sub-session-AS4BJQGA.js → create-sub-session-5OVGZIQZ.js} +24 -24
- package/chunks/{daemon-git-worktree-guard-EHDIWJNP.js → daemon-git-worktree-guard-PWH5UXXA.js} +23 -23
- package/chunks/{daemon-status-provider-BMHVNFV5.js → daemon-status-provider-PB2RABB3.js} +29 -29
- package/chunks/{daemon-trust-policy-T2N7XIFJ.js → daemon-trust-policy-VKBYIHIA.js} +29 -29
- package/chunks/{daemon-trust-policy-monitor-IKAIWKAW.js → daemon-trust-policy-monitor-QFZLQW7N.js} +29 -29
- package/chunks/{deferred-core-runtime-WPR6ZTET.js → deferred-core-runtime-OPWIBNWK.js} +23 -23
- package/chunks/{display-image-4ZU4ZU53.js → display-image-Y35PSJXX.js} +2 -2
- package/chunks/{edit-SYQ6NUEQ.js → edit-EI2QZFML.js} +16 -16
- package/chunks/{enterPlanMode-EDNBOH4T.js → enterPlanMode-HZIALG5T.js} +14 -14
- package/chunks/{environment-HGRXFMS3.js → environment-TM5YFH77.js} +26 -26
- package/chunks/{errors-BJNJH2UZ.js → errors-75WEKSIY.js} +25 -25
- package/chunks/{execution-sandbox-config-C36KPQWE.js → execution-sandbox-config-ZTU7YXTL.js} +5 -5
- package/chunks/{execution-tool-AOLNHDFN.js → execution-tool-IEMS4OMY.js} +16 -16
- package/chunks/{execution-worker-Y2EHLYIU.js → execution-worker-BR2UBKVZ.js} +19 -19
- package/chunks/{exitPlanMode-VRCBSQ5U.js → exitPlanMode-46FWANRT.js} +14 -14
- package/chunks/{fast-path-YVNI5ALH.js → fast-path-FB2AYQT2.js} +3 -3
- package/chunks/{fast-path-settings-FIMIXD3V.js → fast-path-settings-BT63K4L7.js} +2 -2
- package/chunks/{foreground-runner-ECOYLOG7.js → foreground-runner-5OQ7IKWR.js} +25 -25
- package/chunks/{gateway-content-generator-QAPPEVZY.js → gateway-content-generator-BPZXVQWC.js} +3 -3
- package/chunks/{gateway-models-TNCJJ3X6.js → gateway-models-5JPME6AP.js} +3 -3
- package/chunks/{glob-W2E6FGA4.js → glob-QZSWKHOW.js} +14 -14
- package/chunks/{goal-tools-6BHVTRDG.js → goal-tools-LZLIELOL.js} +14 -14
- package/chunks/{handleAutoUpdate-RQLNQFHE.js → handleAutoUpdate-UZIU3KK4.js} +25 -25
- package/chunks/{i18n-HPDJOBWT.js → i18n-UVPXLFMF.js} +23 -23
- package/chunks/{initializer-YBSII4UT.js → initializer-Q4DUD7GF.js} +29 -29
- package/chunks/{installationInfo-LMLHLIH7.js → installationInfo-DWIXOKSE.js} +23 -23
- package/chunks/{list-DMY3NX4J.js → list-TUO4ATZ7.js} +31 -31
- package/chunks/{llm-Z76Q6KOO.js → llm-MMOAP23Q.js} +55 -55
- package/chunks/{llm-content-generator-EW5FRXWI.js → llm-content-generator-7NOJCUX2.js} +4 -4
- package/chunks/{loadedSettingsAdapter-GKBYOOEK.js → loadedSettingsAdapter-LONKNEI2.js} +29 -29
- package/chunks/{local-execution-environment-J54RZH2B.js → local-execution-environment-W6RR5CM2.js} +19 -19
- package/chunks/{loggingContentGenerator-TPKFLRGQ.js → loggingContentGenerator-BTD3KTLK.js} +14 -14
- package/chunks/{managed-npm-update-XTHQW4WA.js → managed-npm-update-6QDOTNQW.js} +23 -23
- package/chunks/{mcp-FM66ECZJ.js → mcp-XBVFA4NK.js} +29 -29
- package/chunks/{model-call-collection-2NC5TJRS.js → model-call-collection-HQF2N6XF.js} +1 -1
- package/chunks/{model-configuration-RXGKN65Z.js → model-configuration-BBZJMCHB.js} +30 -30
- package/chunks/{modelConfigUtils-UIFHKYOZ.js → modelConfigUtils-UFJV3ZJS.js} +25 -25
- package/chunks/{monitor-OACO7H2W.js → monitor-4DJ5VKXK.js} +14 -14
- package/chunks/{nonInteractiveCli-3G67M7P7.js → nonInteractiveCli-IIJI63XP.js} +53 -53
- package/chunks/{nonInteractiveToolExecutor-AYXTQW2U.js → nonInteractiveToolExecutor-MET7I2DQ.js} +15 -15
- package/chunks/{notebook-edit-IP2HFHUU.js → notebook-edit-EOFZ4EKN.js} +15 -15
- package/chunks/{omni-5EIZ57PX.js → omni-MLLL6UUM.js} +8 -8
- package/chunks/{openaiContentGenerator-GKWUHN3B.js → openaiContentGenerator-FUN5S2AD.js} +8 -8
- package/chunks/{openaiResponsesContentGenerator-GYJ4PPVP.js → openaiResponsesContentGenerator-TIRM5XJN.js} +3 -3
- package/chunks/{processUtils-EWRCLBFU.js → processUtils-WPVNEHRF.js} +2 -2
- package/chunks/{prompt-terminal-ledger-W6UZGXXP.js → prompt-terminal-ledger-PQYRGDN6.js} +24 -24
- package/chunks/{reactive-degrade-JMU44IFK.js → reactive-degrade-RAVGIKCJ.js} +7 -7
- package/chunks/{read-file-SX7FXRIG.js → read-file-BTMZPG5O.js} +1 -1
- package/chunks/{record-source-SKISWRL5.js → record-source-4K4EQAX7.js} +5 -5
- package/chunks/{request-shutdown-5I22UEVV.js → request-shutdown-4LPYJZTK.js} +4 -4
- package/chunks/{resumeHistoryUtils-LC4CAGOM.js → resumeHistoryUtils-RSU25WYV.js} +24 -24
- package/chunks/{ripGrep-ANRBZHAX.js → ripGrep-N425H66N.js} +1 -1
- package/chunks/{run-o1-code-serve-RZD7HTJE.js → run-o1-code-serve-FGCE7K7C.js} +34 -34
- package/chunks/{runtime-shell-policy-4MZ2UJQH.js → runtime-shell-policy-ZAYLMR65.js} +1 -1
- package/chunks/{sandboxConfig-WYGBOYNP.js → sandboxConfig-AZSEWZCT.js} +23 -23
- package/chunks/{scheduled-tasks-TFJO2WOZ.js → scheduled-tasks-ZUCWMR44.js} +28 -28
- package/chunks/{scheduler-L7MDGK4A.js → scheduler-ZRZBVAWJ.js} +25 -25
- package/chunks/{send-message-WKTPR6OU.js → send-message-CD2AOPQD.js} +4 -4
- package/chunks/{serve-CXJGOQSI.js → serve-V2C4I5RF.js} +29 -29
- package/chunks/{server-PLSQSERG.js → server-HPF2IP2F.js} +53 -53
- package/chunks/{session-K6ZTQ5XH.js → session-7VBZLPP7.js} +1 -1
- package/chunks/{session-DSIZXWZM.js → session-ZOBQ7E3F.js} +54 -54
- package/chunks/{session-attachments-root-62YDD2AW.js → session-attachments-root-5LVSTHJX.js} +23 -23
- package/chunks/{session-pr-refresh-ZS62F5JX.js → session-pr-refresh-B3GHMCV5.js} +27 -27
- package/chunks/{settings-HFQJOJ4Z.js → settings-4EWIU2CS.js} +28 -28
- package/chunks/{shell-4E3CQKI5.js → shell-PEPAVCLP.js} +14 -14
- package/chunks/{skill-Q3EH25VF.js → skill-KYZIZDCI.js} +2 -2
- package/chunks/{skill-settings-4HGHD7T2.js → skill-settings-FMPMQYFV.js} +28 -28
- package/chunks/{spawnChannel-WFW4WPNJ.js → spawnChannel-TW6GZJXJ.js} +24 -24
- package/chunks/{standalone-update-OZPOJGT4.js → standalone-update-SV7MBAIU.js} +24 -24
- package/chunks/{startInteractiveUI-4TKF3BAS.js → startInteractiveUI-MDF4JJD5.js} +61 -61
- package/chunks/{supervisor-runner-U64I32UA.js → supervisor-runner-XJAZN7YG.js} +2 -2
- package/chunks/{task-create-PTXFIS6D.js → task-create-W3R3G7FM.js} +5 -5
- package/chunks/{task-update-5LYVCOT2.js → task-update-JQOO6HUS.js} +5 -5
- package/chunks/{team-create-NNG2GXZ7.js → team-create-O66TUESF.js} +14 -14
- package/chunks/{team-plan-approval-CAKGOWV7.js → team-plan-approval-667K2B3B.js} +14 -14
- package/chunks/{terminal-image-renderer-D2RJBIM5.js → terminal-image-renderer-PMVAADQU.js} +23 -23
- package/chunks/{theme-manager-FL7L3SQB.js → theme-manager-PHZIRE2I.js} +23 -23
- package/chunks/{tool-call-GFZXS57E.js → tool-call-ZR564L2K.js} +5 -5
- package/chunks/{tool-result-media-JRIQDJ2K.js → tool-result-media-PXJEED5J.js} +8 -8
- package/chunks/{tool-search-FBD2VWOF.js → tool-search-5GZKW7RO.js} +5 -5
- package/chunks/{total-session-admission-OQTYJJIA.js → total-session-admission-WTPY7HAP.js} +25 -25
- package/chunks/{trustedFolders-JAMKSHOQ.js → trustedFolders-JOAYZVGA.js} +24 -24
- package/chunks/{update-relaunch-LSGP35OP.js → update-relaunch-3WTWA6Y3.js} +5 -5
- package/chunks/{updateCheck-4SIC6T3U.js → updateCheck-3EBFSQYZ.js} +23 -23
- package/chunks/{upload-config-D2TJG4J5.js → upload-config-GAXSQ3UL.js} +5 -5
- package/chunks/{useAutoAcceptIndicator-D3OUE6JK.js → useAutoAcceptIndicator-KDDP4EGH.js} +31 -31
- package/chunks/{validateNonInterActiveAuth-6FN7ZWJM.js → validateNonInterActiveAuth-SMUVFO2L.js} +51 -51
- package/chunks/{version-QSJJFHBI.js → version-LOJWIDPQ.js} +1 -1
- package/chunks/{web-fetch-F32PQI4W.js → web-fetch-XIUI6SSS.js} +1 -1
- package/chunks/{web-search-VDENZ7EU.js → web-search-53FZUSEO.js} +5 -5
- package/chunks/{workflow-GSJ6BWL5.js → workflow-V26XKAXG.js} +15 -15
- package/chunks/{workspace-providers-status-EZQWZ4MB.js → workspace-providers-status-E4V3ZW7E.js} +33 -33
- package/chunks/{workspace-registration-store-7BD4J5B4.js → workspace-registration-store-2YYKRGZQ.js} +1 -1
- package/chunks/{workspace-registry-BZYNQLJI.js → workspace-registry-EFTIIC5P.js} +25 -25
- package/chunks/{workspace-runtime-coordinator-XN72NR6H.js → workspace-runtime-coordinator-LCEDKI3V.js} +25 -25
- package/chunks/{workspace-service-Y2F3CZXQ.js → workspace-service-EJHV4F5K.js} +32 -32
- package/chunks/{workspace-skills-status-MWHWR2UW.js → workspace-skills-status-DGOQVL5O.js} +29 -29
- package/chunks/{workspace-trust-reconciler-RMG4NUKK.js → workspace-trust-reconciler-L7QJK4OH.js} +31 -31
- package/chunks/{write-file-XHQYIS4I.js → write-file-OA3YWX4Z.js} +16 -16
- package/chunks/{zoom-image-F55GDAZT.js → zoom-image-2FAU5GG7.js} +1 -1
- package/cli.js +15 -15
- package/execution-worker.js +1 -1
- package/export-transcript-document.js +1 -1
- package/package.json +2 -2
- package/release-notes.json +12 -0
- package/web-shell/assets/{abnfDiagram-VCTEODGH-9X-4KVeg.js → abnfDiagram-VCTEODGH-BHe02xuM.js} +1 -1
- package/web-shell/assets/{arc-CDym3Jrp.js → arc-B5VovhrP.js} +1 -1
- package/web-shell/assets/{architectureDiagram-5GKGNRK7-5wObnj2d.js → architectureDiagram-5GKGNRK7-ByvXrzMN.js} +1 -1
- package/web-shell/assets/{blockDiagram-NRAW4CY4-DtsYD88V.js → blockDiagram-NRAW4CY4-CS0RXmiX.js} +1 -1
- package/web-shell/assets/{c4Diagram-UCG6FXSJ-CoaUDWLv.js → c4Diagram-UCG6FXSJ-WPcIgAxw.js} +1 -1
- package/web-shell/assets/channel-CBQoqDm3.js +1 -0
- package/web-shell/assets/{chunk-2Q5K7J3B-BG2fByYQ.js → chunk-2Q5K7J3B-Bj1gOQC9.js} +1 -1
- package/web-shell/assets/{chunk-5VM5RSS4-zA-Pz6wo.js → chunk-5VM5RSS4-C3R9A3P3.js} +1 -1
- package/web-shell/assets/{chunk-F27PBJKO-DjEhgvTy.js → chunk-F27PBJKO-CvmqvEHu.js} +1 -1
- package/web-shell/assets/{chunk-G27WJ6UU-C4ggjY21.js → chunk-G27WJ6UU-C_If25TG.js} +1 -1
- package/web-shell/assets/{chunk-JWPE2WC7-Bzeu1MYn.js → chunk-JWPE2WC7-BvDHAb7t.js} +1 -1
- package/web-shell/assets/{chunk-LCL6LL3I-C0eNeqX8.js → chunk-LCL6LL3I-lMoppd_e.js} +1 -1
- package/web-shell/assets/{chunk-POPQ4Y6H-DA4H00sY.js → chunk-POPQ4Y6H-C-dB9zRU.js} +1 -1
- package/web-shell/assets/{chunk-SVP7TREG-C4WaJMXg.js → chunk-SVP7TREG-Bq7Iu-7R.js} +1 -1
- package/web-shell/assets/{chunk-XXDRQBXY-CpcfgzFT.js → chunk-XXDRQBXY-Dh3H4DSX.js} +1 -1
- package/web-shell/assets/classDiagram-DTDB5LWJ-CiD27im_.js +1 -0
- package/web-shell/assets/classDiagram-v2-JRS7N3AN-CiD27im_.js +1 -0
- package/web-shell/assets/{cose-bilkent-JH36ORCC-DGMCqLqv.js → cose-bilkent-JH36ORCC-CSCSbMtg.js} +1 -1
- package/web-shell/assets/{cynefin-OW5HDTMX-CvAvaP0w.js → cynefin-OW5HDTMX-RRLTsTaE.js} +1 -1
- package/web-shell/assets/{cynefinDiagram-5FMLGOSQ-D2w8iZeL.js → cynefinDiagram-5FMLGOSQ-C65LN46e.js} +1 -1
- package/web-shell/assets/{dagre-3AP2YEHR-WDarxgHt.js → dagre-3AP2YEHR-BdovI5E9.js} +1 -1
- package/web-shell/assets/{diagram-S7CK7UJ4-DU6-MgPI.js → diagram-S7CK7UJ4-C__1sM3W.js} +1 -1
- package/web-shell/assets/{diagram-UQ7AKVKN-DouJsGkJ.js → diagram-UQ7AKVKN-CPmRM5zO.js} +1 -1
- package/web-shell/assets/{diagram-VSXAHHWV-1KcMVF4P.js → diagram-VSXAHHWV-DqhwLyY5.js} +1 -1
- package/web-shell/assets/{diagram-VX7I27RA-qcqzMTdM.js → diagram-VX7I27RA-D2vw9R7V.js} +1 -1
- package/web-shell/assets/{diagram-Z3DM3KII-BW2msYO9.js → diagram-Z3DM3KII-DiNJsGCW.js} +1 -1
- package/web-shell/assets/{ebnfDiagram-PWID7BFC-BN_KX7H4.js → ebnfDiagram-PWID7BFC-DzQJrp__.js} +1 -1
- package/web-shell/assets/{erDiagram-SSCWMZ5O-BEPAXNfa.js → erDiagram-SSCWMZ5O-BatwnmvO.js} +1 -1
- package/web-shell/assets/{flowDiagram-A5DVABFB-J5rFRAzf.js → flowDiagram-A5DVABFB-BhzHirl4.js} +1 -1
- package/web-shell/assets/{ganttDiagram-EL5Y4UJY-DbCDbWau.js → ganttDiagram-EL5Y4UJY-C_xchuB7.js} +1 -1
- package/web-shell/assets/{gitGraphDiagram-WWUBYQGX-bqtLvLt6.js → gitGraphDiagram-WWUBYQGX-DNlzQUEd.js} +1 -1
- package/web-shell/assets/{index-CmGS1V0O.js → index-CEoLVNsR.js} +3 -3
- package/web-shell/assets/{index-oRgWK1FG.js → index-D3-F421W.js} +1 -1
- package/web-shell/assets/{infoDiagram-RXCK75RN-jD_aGraB.js → infoDiagram-RXCK75RN-BqwTMueq.js} +1 -1
- package/web-shell/assets/{ishikawaDiagram-5VMMS53U-BU_kztq1.js → ishikawaDiagram-5VMMS53U-DtO4tLwV.js} +1 -1
- package/web-shell/assets/{journeyDiagram-EYS64GPL-CEPbo8Ah.js → journeyDiagram-EYS64GPL-CFSU0yqx.js} +1 -1
- package/web-shell/assets/{kanban-definition-3QL26DDD-CPcsw8xU.js → kanban-definition-3QL26DDD-Co3XYypK.js} +1 -1
- package/web-shell/assets/{layout-g0j6TjpV.js → layout-nWXTib3H.js} +1 -1
- package/web-shell/assets/{linear-CrwOFzK9.js → linear-D-XaGQzj.js} +1 -1
- package/web-shell/assets/{mermaid.core-CBuVXhOV.js → mermaid.core-iNkpLd37.js} +6 -6
- package/web-shell/assets/{mindmap-definition-FBJOCRG2-DIyba6qt.js → mindmap-definition-FBJOCRG2-ugnDSQpM.js} +1 -1
- package/web-shell/assets/{pegDiagram-XKGWAZYB-Ca2HUoSs.js → pegDiagram-XKGWAZYB-DFsc7FgE.js} +1 -1
- package/web-shell/assets/{pieDiagram-E7YTZNPT-ByZx2omD.js → pieDiagram-E7YTZNPT-fcQtkfjw.js} +1 -1
- package/web-shell/assets/{quadrantDiagram-AXDQQJYC-mz_nwmua.js → quadrantDiagram-AXDQQJYC-Dx7rAH6a.js} +1 -1
- package/web-shell/assets/{railroadDiagram-O6MQD6OU-DNp6SMnN.js → railroadDiagram-O6MQD6OU-0nnlkbZ1.js} +1 -1
- package/web-shell/assets/{requirementDiagram-EFPCY7ZU-BjobHLzZ.js → requirementDiagram-EFPCY7ZU-B-04HJA0.js} +1 -1
- package/web-shell/assets/{sankeyDiagram-P5KCCOFB-BDIEl7pd.js → sankeyDiagram-P5KCCOFB-CLsEV75E.js} +1 -1
- package/web-shell/assets/{sequenceDiagram-WJ2MYXX4-B3bBatOA.js → sequenceDiagram-WJ2MYXX4-Cejvbn9H.js} +1 -1
- package/web-shell/assets/{sizeCapture-X5ZJPWSS-fjkL_fpm.js → sizeCapture-X5ZJPWSS-DZ3R_cCz.js} +1 -1
- package/web-shell/assets/{stateDiagram-HBIQ2CUA-DWI9ZSoH.js → stateDiagram-HBIQ2CUA-BZEDmn1B.js} +1 -1
- package/web-shell/assets/stateDiagram-v2-4QOOHH4V-Bl6xZ4cy.js +1 -0
- package/web-shell/assets/{swimlanes-XN3QIQJK-Cy8ZWCm6.js → swimlanes-XN3QIQJK-3SAiHcQZ.js} +1 -1
- package/web-shell/assets/swimlanesDiagram-VK2B7HYN-DbPmOu0B.js +8 -0
- package/web-shell/assets/{timeline-definition-24CTP7MA-DCTeUtWc.js → timeline-definition-24CTP7MA-BvRpsN9o.js} +1 -1
- package/web-shell/assets/{vennDiagram-4TSXK5OY-Bl1hF4mS.js → vennDiagram-4TSXK5OY-B_run13a.js} +1 -1
- package/web-shell/assets/{wardleyDiagram-VM6X3IG4-OwTiTsqZ.js → wardleyDiagram-VM6X3IG4-86ZF0DQ5.js} +1 -1
- package/web-shell/assets/{xychartDiagram-S5SC5T6Z-BiS3y1ib.js → xychartDiagram-S5SC5T6Z-CoxU4Yje.js} +1 -1
- package/web-shell/index.html +1 -1
- package/web-shell/sw.js +1 -1
- package/web-shell/assets/channel-JCMNEoi4.js +0 -1
- package/web-shell/assets/classDiagram-DTDB5LWJ-BUSCdUxi.js +0 -1
- package/web-shell/assets/classDiagram-v2-JRS7N3AN-BUSCdUxi.js +0 -1
- package/web-shell/assets/stateDiagram-v2-4QOOHH4V-BJW6-4yh.js +0 -1
- package/web-shell/assets/swimlanesDiagram-VK2B7HYN-b7Ml4DU9.js +0 -8
|
@@ -195,7 +195,7 @@ import {
|
|
|
195
195
|
getShellPagerEnv,
|
|
196
196
|
isSignalTermination,
|
|
197
197
|
normalizePathEnvForWindows
|
|
198
|
-
} from "./chunk-
|
|
198
|
+
} from "./chunk-3GX2JF2F.js";
|
|
199
199
|
import {
|
|
200
200
|
stripAnsi
|
|
201
201
|
} from "./chunk-WU3R2YUE.js";
|
|
@@ -236,13 +236,13 @@ import {
|
|
|
236
236
|
admitShellSandbox,
|
|
237
237
|
assertShellSandboxCwd,
|
|
238
238
|
probeShellSandbox
|
|
239
|
-
} from "./chunk-
|
|
239
|
+
} from "./chunk-XGP4RGF4.js";
|
|
240
240
|
import {
|
|
241
241
|
resolveNetworkTarget
|
|
242
242
|
} from "./chunk-HPQNI3OQ.js";
|
|
243
243
|
import {
|
|
244
244
|
isOmniDeliveryActive
|
|
245
|
-
} from "./chunk-
|
|
245
|
+
} from "./chunk-JTIB6W5A.js";
|
|
246
246
|
import {
|
|
247
247
|
MediaResourceRegistry,
|
|
248
248
|
evaluateMediaPolicyToolCall,
|
|
@@ -256,7 +256,7 @@ import {
|
|
|
256
256
|
DEFERRED_TOOL_CALL_CANCELLATION_PREFIX,
|
|
257
257
|
DEFERRED_TOOL_CALL_REFUSAL_PREFIX,
|
|
258
258
|
resolveDeferredToolCall
|
|
259
|
-
} from "./chunk-
|
|
259
|
+
} from "./chunk-6KVIR254.js";
|
|
260
260
|
import {
|
|
261
261
|
EXCLUDED_TOOLS_FOR_SUBAGENTS,
|
|
262
262
|
READ_ONLY_INSPECTION_TOOLS,
|
|
@@ -285,7 +285,7 @@ import {
|
|
|
285
285
|
splitCompoundCommand,
|
|
286
286
|
splitCompoundCommandSegments,
|
|
287
287
|
toolMatchesRuleToolName
|
|
288
|
-
} from "./chunk-
|
|
288
|
+
} from "./chunk-UYG4HVPV.js";
|
|
289
289
|
import {
|
|
290
290
|
APPROVAL_MODES
|
|
291
291
|
} from "./chunk-KQAVEXYD.js";
|
|
@@ -333,7 +333,7 @@ import {
|
|
|
333
333
|
import {
|
|
334
334
|
DashScopeOpenAICompatibleProvider,
|
|
335
335
|
selectDashScopeThinkingKnob
|
|
336
|
-
} from "./chunk-
|
|
336
|
+
} from "./chunk-UAN7WQIF.js";
|
|
337
337
|
import {
|
|
338
338
|
InvalidStreamError,
|
|
339
339
|
getToolCallPreparations,
|
|
@@ -361,7 +361,7 @@ import {
|
|
|
361
361
|
runWithAgentDisallowedTools,
|
|
362
362
|
runWithRuntimeContentGenerator,
|
|
363
363
|
spawnBlockReason
|
|
364
|
-
} from "./chunk-
|
|
364
|
+
} from "./chunk-CCGIWTGK.js";
|
|
365
365
|
import {
|
|
366
366
|
getTeammateContext,
|
|
367
367
|
isTeammate,
|
|
@@ -554,12 +554,13 @@ import {
|
|
|
554
554
|
stripSystemReminderBlocks,
|
|
555
555
|
validateForkToolList,
|
|
556
556
|
wrapSystemReminder
|
|
557
|
-
} from "./chunk-
|
|
557
|
+
} from "./chunk-C6GZRQ6A.js";
|
|
558
558
|
import {
|
|
559
|
+
EXPLICIT_TRUST_HINT,
|
|
559
560
|
clearLoadedSkillTracking,
|
|
560
561
|
collectAvailableSkillEntries,
|
|
561
562
|
renderAvailableSkillsBlock
|
|
562
|
-
} from "./chunk-
|
|
563
|
+
} from "./chunk-GVJCUUWW.js";
|
|
563
564
|
import {
|
|
564
565
|
DEFAULT_O1CODE_CUSTOM_IGNORE_FILE_NAMES,
|
|
565
566
|
O1CodeIgnoreParser,
|
|
@@ -614,7 +615,7 @@ import {
|
|
|
614
615
|
resolveReasoningCapabilities,
|
|
615
616
|
resolveReasoningForModel,
|
|
616
617
|
validateReasoningCapabilities
|
|
617
|
-
} from "./chunk-
|
|
618
|
+
} from "./chunk-7H3GMHNV.js";
|
|
618
619
|
import {
|
|
619
620
|
ResponsesHttpError,
|
|
620
621
|
classifyRetryError,
|
|
@@ -699,7 +700,7 @@ import {
|
|
|
699
700
|
resolveProviderProtocol,
|
|
700
701
|
resolveSavedModelApiKey,
|
|
701
702
|
stripRuntimeSnapshotPrefix
|
|
702
|
-
} from "./chunk-
|
|
703
|
+
} from "./chunk-H7Z2QHT6.js";
|
|
703
704
|
import {
|
|
704
705
|
DEFAULT_TOKEN_LIMIT,
|
|
705
706
|
OUTPUT_TOKEN_CEILING,
|
|
@@ -767,7 +768,7 @@ import {
|
|
|
767
768
|
createContentGenerator,
|
|
768
769
|
resetPreloadedContentGenerator,
|
|
769
770
|
resolveContentGeneratorConfigWithSources
|
|
770
|
-
} from "./chunk-
|
|
771
|
+
} from "./chunk-PGFXYKSJ.js";
|
|
771
772
|
import {
|
|
772
773
|
DEFAULT_O1CODE_MODEL
|
|
773
774
|
} from "./chunk-LEXKU5FI.js";
|
|
@@ -13334,9 +13335,9 @@ function roundMs(value) {
|
|
|
13334
13335
|
}
|
|
13335
13336
|
__name(roundMs, "roundMs");
|
|
13336
13337
|
function getAppendProfileOpenFlags() {
|
|
13337
|
-
const
|
|
13338
|
-
const noFollow = process.platform === "win32" ? 0 :
|
|
13339
|
-
return (
|
|
13338
|
+
const constants4 = fs3.constants;
|
|
13339
|
+
const noFollow = process.platform === "win32" ? 0 : constants4.O_NOFOLLOW ?? 0;
|
|
13340
|
+
return (constants4.O_APPEND ?? 0) | (constants4.O_CREAT ?? 0) | (constants4.O_WRONLY ?? 0) | noFollow;
|
|
13340
13341
|
}
|
|
13341
13342
|
__name(getAppendProfileOpenFlags, "getAppendProfileOpenFlags");
|
|
13342
13343
|
function assertSafeProfileDirectory(dir) {
|
|
@@ -15116,7 +15117,7 @@ var backgroundTurnContext = new AsyncLocalStorage();
|
|
|
15116
15117
|
// packages/core/src/services/chatRecordingService.ts
|
|
15117
15118
|
import path10 from "node:path";
|
|
15118
15119
|
import fs12 from "node:fs";
|
|
15119
|
-
import { randomUUID as
|
|
15120
|
+
import { randomUUID as randomUUID6 } from "node:crypto";
|
|
15120
15121
|
import { isDeepStrictEqual } from "node:util";
|
|
15121
15122
|
|
|
15122
15123
|
// packages/core/src/utils/toolResultDisplayCompaction.ts
|
|
@@ -16095,12 +16096,13 @@ __name(aggregateUsage, "aggregateUsage");
|
|
|
16095
16096
|
// packages/core/src/services/sessionService.ts
|
|
16096
16097
|
import path9 from "node:path";
|
|
16097
16098
|
import fs11 from "node:fs";
|
|
16098
|
-
import { randomUUID as
|
|
16099
|
+
import { randomUUID as randomUUID5 } from "node:crypto";
|
|
16099
16100
|
import readline from "node:readline";
|
|
16100
16101
|
|
|
16101
16102
|
// packages/core/src/services/fileHistoryService.ts
|
|
16102
16103
|
init_esbuild_shims();
|
|
16103
|
-
import { createHash } from "node:crypto";
|
|
16104
|
+
import { createHash, randomUUID as randomUUID2 } from "node:crypto";
|
|
16105
|
+
import { constants as constants2 } from "node:fs";
|
|
16104
16106
|
import {
|
|
16105
16107
|
chmod,
|
|
16106
16108
|
copyFile,
|
|
@@ -17038,19 +17040,54 @@ function resolveBackupPath(backupFileName, sessionId) {
|
|
|
17038
17040
|
return backupPath;
|
|
17039
17041
|
}
|
|
17040
17042
|
__name(resolveBackupPath, "resolveBackupPath");
|
|
17041
|
-
async function safeCopyFile(src, dst) {
|
|
17043
|
+
async function safeCopyFile(src, dst, mode = 0) {
|
|
17042
17044
|
try {
|
|
17043
|
-
await copyFile(src, dst);
|
|
17045
|
+
await copyFile(src, dst, mode);
|
|
17044
17046
|
return "ok";
|
|
17045
17047
|
} catch (e) {
|
|
17046
17048
|
if (!isENOENT(e)) throw e;
|
|
17047
17049
|
if (!await pathExists(src)) return "src-missing";
|
|
17048
17050
|
await mkdir2(dirname(dst), { recursive: true });
|
|
17049
|
-
await copyFile(src, dst);
|
|
17051
|
+
await copyFile(src, dst, mode);
|
|
17050
17052
|
return "ok";
|
|
17051
17053
|
}
|
|
17052
17054
|
}
|
|
17053
17055
|
__name(safeCopyFile, "safeCopyFile");
|
|
17056
|
+
var BACKUP_RENAME_RETRIES = 3;
|
|
17057
|
+
var BACKUP_RENAME_DELAY_MS = 50;
|
|
17058
|
+
async function copyBackupAtomically(filePath, backupPath, mode) {
|
|
17059
|
+
const tempPath = `${backupPath}.${randomUUID2()}.tmp`;
|
|
17060
|
+
try {
|
|
17061
|
+
const result = await safeCopyFile(
|
|
17062
|
+
filePath,
|
|
17063
|
+
tempPath,
|
|
17064
|
+
constants2.COPYFILE_EXCL
|
|
17065
|
+
);
|
|
17066
|
+
if (result === "src-missing") {
|
|
17067
|
+
await unlink3(tempPath).catch(() => void 0);
|
|
17068
|
+
return result;
|
|
17069
|
+
}
|
|
17070
|
+
await chmod(tempPath, mode & 4095 | 384);
|
|
17071
|
+
const handle = await open(tempPath, "r+");
|
|
17072
|
+
try {
|
|
17073
|
+
await handle.sync();
|
|
17074
|
+
} finally {
|
|
17075
|
+
await handle.close();
|
|
17076
|
+
}
|
|
17077
|
+
await chmod(tempPath, mode);
|
|
17078
|
+
await renameWithRetry(
|
|
17079
|
+
tempPath,
|
|
17080
|
+
backupPath,
|
|
17081
|
+
BACKUP_RENAME_RETRIES,
|
|
17082
|
+
BACKUP_RENAME_DELAY_MS
|
|
17083
|
+
);
|
|
17084
|
+
return "ok";
|
|
17085
|
+
} catch (e) {
|
|
17086
|
+
await unlink3(tempPath).catch(() => void 0);
|
|
17087
|
+
throw e;
|
|
17088
|
+
}
|
|
17089
|
+
}
|
|
17090
|
+
__name(copyBackupAtomically, "copyBackupAtomically");
|
|
17054
17091
|
async function createBackup(filePath, version2, sessionId) {
|
|
17055
17092
|
const backupFileName = getBackupFileName(filePath, version2);
|
|
17056
17093
|
const backupPath = resolveBackupPath(backupFileName, sessionId);
|
|
@@ -17063,11 +17100,14 @@ async function createBackup(filePath, version2, sessionId) {
|
|
|
17063
17100
|
}
|
|
17064
17101
|
throw e;
|
|
17065
17102
|
}
|
|
17066
|
-
const result = await
|
|
17103
|
+
const result = await copyBackupAtomically(
|
|
17104
|
+
filePath,
|
|
17105
|
+
backupPath,
|
|
17106
|
+
srcStats.mode
|
|
17107
|
+
);
|
|
17067
17108
|
if (result === "src-missing") {
|
|
17068
17109
|
return { backupFileName: null, version: version2, backupTime: /* @__PURE__ */ new Date() };
|
|
17069
17110
|
}
|
|
17070
|
-
await chmod(backupPath, srcStats.mode);
|
|
17071
17111
|
return { backupFileName, version: version2, backupTime: /* @__PURE__ */ new Date() };
|
|
17072
17112
|
}
|
|
17073
17113
|
__name(createBackup, "createBackup");
|
|
@@ -18272,7 +18312,7 @@ __name(readSessionTitleInfoFromFileSync, "readSessionTitleInfoFromFileSync");
|
|
|
18272
18312
|
|
|
18273
18313
|
// packages/core/src/services/session-organization-service.ts
|
|
18274
18314
|
init_esbuild_shims();
|
|
18275
|
-
import { randomUUID as
|
|
18315
|
+
import { randomUUID as randomUUID3 } from "node:crypto";
|
|
18276
18316
|
import * as fs7 from "node:fs/promises";
|
|
18277
18317
|
import * as path5 from "node:path";
|
|
18278
18318
|
var GROUP_COLOR_OPTIONS = [
|
|
@@ -18454,7 +18494,7 @@ var SessionOrganizationService = class {
|
|
|
18454
18494
|
}
|
|
18455
18495
|
const now = (/* @__PURE__ */ new Date()).toISOString();
|
|
18456
18496
|
const group = {
|
|
18457
|
-
id:
|
|
18497
|
+
id: randomUUID3(),
|
|
18458
18498
|
name,
|
|
18459
18499
|
color,
|
|
18460
18500
|
order: Math.min(
|
|
@@ -22733,7 +22773,7 @@ var SessionTranscriptReader = class {
|
|
|
22733
22773
|
init_esbuild_shims();
|
|
22734
22774
|
import { execFile as execFile3 } from "node:child_process";
|
|
22735
22775
|
import * as nodeConstants from "node:constants";
|
|
22736
|
-
import { createHash as createHash2, randomUUID as
|
|
22776
|
+
import { createHash as createHash2, randomUUID as randomUUID4 } from "node:crypto";
|
|
22737
22777
|
import * as nodeFs from "node:fs";
|
|
22738
22778
|
import * as fs10 from "node:fs/promises";
|
|
22739
22779
|
import * as os from "node:os";
|
|
@@ -23958,7 +23998,7 @@ var SessionWriterLease = class _SessionWriterLease {
|
|
|
23958
23998
|
schema_version: LOCK_SCHEMA_VERSION,
|
|
23959
23999
|
state: "active",
|
|
23960
24000
|
session_id: normalizedOptions.sessionId,
|
|
23961
|
-
owner_id:
|
|
24001
|
+
owner_id: randomUUID4(),
|
|
23962
24002
|
pid: process.pid,
|
|
23963
24003
|
...processStartIdentity ? { process_start_identity: processStartIdentity } : {},
|
|
23964
24004
|
...pidNamespaceId !== null ? { pid_namespace_id: pidNamespaceId } : {},
|
|
@@ -24018,7 +24058,7 @@ var SessionWriterLease = class _SessionWriterLease {
|
|
|
24018
24058
|
);
|
|
24019
24059
|
let primaryInstalled = false;
|
|
24020
24060
|
let staleMoved = false;
|
|
24021
|
-
const stalePath = `${lockPath}.stale.${process.pid}.${
|
|
24061
|
+
const stalePath = `${lockPath}.stale.${process.pid}.${randomUUID4()}`;
|
|
24022
24062
|
try {
|
|
24023
24063
|
await assertPathMissing(claimPath);
|
|
24024
24064
|
const currentState = await _SessionWriterLease.inspectExistingLock(
|
|
@@ -27550,7 +27590,7 @@ ${payload}`, "utf8");
|
|
|
27550
27590
|
}
|
|
27551
27591
|
const lastUuid = this.readLastRecordUuid(filePath);
|
|
27552
27592
|
const titleRecord = {
|
|
27553
|
-
uuid:
|
|
27593
|
+
uuid: randomUUID5(),
|
|
27554
27594
|
parentUuid: lastUuid,
|
|
27555
27595
|
sessionId,
|
|
27556
27596
|
timestamp: (/* @__PURE__ */ new Date()).toISOString(),
|
|
@@ -27651,7 +27691,7 @@ ${payload}`, "utf8");
|
|
|
27651
27691
|
throw new Error(`Source session not found or empty: ${sourceSessionId}`);
|
|
27652
27692
|
}
|
|
27653
27693
|
const sourceRecord = options2.source ? {
|
|
27654
|
-
uuid:
|
|
27694
|
+
uuid: randomUUID5(),
|
|
27655
27695
|
parentUuid: null,
|
|
27656
27696
|
sessionId: newSessionId,
|
|
27657
27697
|
timestamp: (/* @__PURE__ */ new Date()).toISOString(),
|
|
@@ -27725,7 +27765,7 @@ ${payload}`, "utf8");
|
|
|
27725
27765
|
).filter((snapshot) => !existingSnapshotPromptIds.has(snapshot.promptId));
|
|
27726
27766
|
if (remappedSnapshots?.length) {
|
|
27727
27767
|
const snapshotRecord = {
|
|
27728
|
-
uuid:
|
|
27768
|
+
uuid: randomUUID5(),
|
|
27729
27769
|
parentUuid: prevUuid,
|
|
27730
27770
|
sessionId: newSessionId,
|
|
27731
27771
|
type: "system",
|
|
@@ -27742,7 +27782,7 @@ ${payload}`, "utf8");
|
|
|
27742
27782
|
}
|
|
27743
27783
|
if (options2.title !== void 0) {
|
|
27744
27784
|
const titleRecord = {
|
|
27745
|
-
uuid:
|
|
27785
|
+
uuid: randomUUID5(),
|
|
27746
27786
|
parentUuid: prevUuid,
|
|
27747
27787
|
sessionId: newSessionId,
|
|
27748
27788
|
type: "system",
|
|
@@ -27767,7 +27807,7 @@ ${payload}`, "utf8");
|
|
|
27767
27807
|
}, "validateTargetBranchPoint");
|
|
27768
27808
|
validateTargetBranchPoint();
|
|
27769
27809
|
const body = forked.map((r) => JSON.stringify(r)).join("\n") + "\n";
|
|
27770
|
-
const operationId =
|
|
27810
|
+
const operationId = randomUUID5();
|
|
27771
27811
|
const artifactSnapshots = rebuildSessionArtifactSnapshot(forked, newSessionId)?.artifacts ?? [];
|
|
27772
27812
|
const stagedTranscriptPath = path9.join(
|
|
27773
27813
|
chatsDir,
|
|
@@ -29006,7 +29046,7 @@ var ChatRecordingService = class {
|
|
|
29006
29046
|
const backgroundTurn = background?.active && background.sessionId === this.getSessionId() && !getCurrentAgentId() ? background.turn : void 0;
|
|
29007
29047
|
return {
|
|
29008
29048
|
...backgroundTurn ? { backgroundTurn } : {},
|
|
29009
|
-
uuid:
|
|
29049
|
+
uuid: randomUUID6(),
|
|
29010
29050
|
parentUuid: this.lastRecordUuid,
|
|
29011
29051
|
sessionId: this.getSessionId(),
|
|
29012
29052
|
timestamp: (/* @__PURE__ */ new Date()).toISOString(),
|
|
@@ -29437,7 +29477,7 @@ var ChatRecordingService = class {
|
|
|
29437
29477
|
pendingCallsAtStart: input2.cursor.pendingToolCalls
|
|
29438
29478
|
});
|
|
29439
29479
|
if (!candidate) return void 0;
|
|
29440
|
-
const checkpointUuid =
|
|
29480
|
+
const checkpointUuid = randomUUID6();
|
|
29441
29481
|
const checkpoint = {
|
|
29442
29482
|
...this.createBaseRecord("system"),
|
|
29443
29483
|
uuid: checkpointUuid,
|
|
@@ -34791,7 +34831,7 @@ var LlmChat = class {
|
|
|
34791
34831
|
const degradeAttempt = omniMediaDegradeAttempts++;
|
|
34792
34832
|
let degradeOutcome;
|
|
34793
34833
|
try {
|
|
34794
|
-
const { degradeOmniMediaAfterServerReject } = await import("./reactive-degrade-
|
|
34834
|
+
const { degradeOmniMediaAfterServerReject } = await import("./reactive-degrade-RAVGIKCJ.js");
|
|
34795
34835
|
degradeOutcome = await degradeOmniMediaAfterServerReject(
|
|
34796
34836
|
self2.config,
|
|
34797
34837
|
self2.history,
|
|
@@ -38374,7 +38414,7 @@ __name(computeCharContribution, "computeCharContribution");
|
|
|
38374
38414
|
init_esbuild_shims();
|
|
38375
38415
|
import * as fs36 from "node:fs/promises";
|
|
38376
38416
|
import * as path37 from "node:path";
|
|
38377
|
-
import { randomUUID as
|
|
38417
|
+
import { randomUUID as randomUUID11 } from "node:crypto";
|
|
38378
38418
|
|
|
38379
38419
|
// packages/core/src/memory/store.ts
|
|
38380
38420
|
init_esbuild_shims();
|
|
@@ -38505,7 +38545,7 @@ init_esbuild_shims();
|
|
|
38505
38545
|
|
|
38506
38546
|
// packages/core/src/agents/forkedAgent.ts
|
|
38507
38547
|
init_esbuild_shims();
|
|
38508
|
-
import { randomUUID as
|
|
38548
|
+
import { randomUUID as randomUUID10 } from "node:crypto";
|
|
38509
38549
|
|
|
38510
38550
|
// packages/core/src/tools/agent/agent.ts
|
|
38511
38551
|
init_esbuild_shims();
|
|
@@ -38516,12 +38556,12 @@ import { AsyncLocalStorage as AsyncLocalStorage2 } from "node:async_hooks";
|
|
|
38516
38556
|
var goalTurnContext = new AsyncLocalStorage2();
|
|
38517
38557
|
|
|
38518
38558
|
// packages/core/src/tools/agent/agent.ts
|
|
38519
|
-
import { randomUUID as
|
|
38559
|
+
import { randomUUID as randomUUID9 } from "node:crypto";
|
|
38520
38560
|
import { realpath as realpath3 } from "node:fs/promises";
|
|
38521
38561
|
|
|
38522
38562
|
// packages/core/src/agents/runtime/agent-core.ts
|
|
38523
38563
|
init_esbuild_shims();
|
|
38524
|
-
import { randomUUID as
|
|
38564
|
+
import { randomUUID as randomUUID7 } from "node:crypto";
|
|
38525
38565
|
|
|
38526
38566
|
// packages/core/src/core/coreToolScheduler.ts
|
|
38527
38567
|
init_esbuild_shims();
|
|
@@ -41131,13 +41171,14 @@ function isNetworkPseudoDevice(target) {
|
|
|
41131
41171
|
return /^\/dev\/(tcp|udp)\//.test(target);
|
|
41132
41172
|
}
|
|
41133
41173
|
__name(isNetworkPseudoDevice, "isNetworkPseudoDevice");
|
|
41174
|
+
var COMBINED_REDIRECT = /^(<<-?|1>>|1>\||1>|>>|>\||>|2>>|2>\||2>|&>>|&>|<)([\s\S]+)$/;
|
|
41134
41175
|
function extractRedirects(tokens, cwd) {
|
|
41135
41176
|
const readFiles = [];
|
|
41136
41177
|
const writeFiles = [];
|
|
41137
41178
|
const toRemove = /* @__PURE__ */ new Set();
|
|
41138
41179
|
for (let i = 0; i < tokens.length; i++) {
|
|
41139
41180
|
const tok = tokens[i];
|
|
41140
|
-
if (tok === ">" || tok === "1>") {
|
|
41181
|
+
if (tok === ">" || tok === "1>" || tok === ">|" || tok === "1>|") {
|
|
41141
41182
|
const target = tokens[i + 1];
|
|
41142
41183
|
if (target && looksLikePath(target)) {
|
|
41143
41184
|
if (!isNetworkPseudoDevice(target)) {
|
|
@@ -41173,7 +41214,7 @@ function extractRedirects(tokens, cwd) {
|
|
|
41173
41214
|
toRemove.add(i + 1);
|
|
41174
41215
|
i++;
|
|
41175
41216
|
}
|
|
41176
|
-
} else if (tok === "2>" || tok === "2>>" || tok === "&>" || tok === "&>>") {
|
|
41217
|
+
} else if (tok === "2>" || tok === "2>|" || tok === "2>>" || tok === "&>" || tok === "&>>") {
|
|
41177
41218
|
const target = tokens[i + 1];
|
|
41178
41219
|
if (target) {
|
|
41179
41220
|
if (target !== "/dev/null" && looksLikePath(target) && !isNetworkPseudoDevice(target)) {
|
|
@@ -41184,14 +41225,21 @@ function extractRedirects(tokens, cwd) {
|
|
|
41184
41225
|
i++;
|
|
41185
41226
|
}
|
|
41186
41227
|
} else {
|
|
41187
|
-
const m2 = tok.match(
|
|
41228
|
+
const m2 = tok.match(COMBINED_REDIRECT);
|
|
41188
41229
|
if (m2) {
|
|
41189
41230
|
const op = m2[1];
|
|
41190
|
-
|
|
41231
|
+
let target = m2[2];
|
|
41191
41232
|
if (op.startsWith("<<")) {
|
|
41192
41233
|
toRemove.add(i);
|
|
41193
41234
|
continue;
|
|
41194
41235
|
}
|
|
41236
|
+
if (target.startsWith("&")) {
|
|
41237
|
+
target = target.slice(1);
|
|
41238
|
+
if (target === "" || /^(\d+|-)$/.test(target)) {
|
|
41239
|
+
toRemove.add(i);
|
|
41240
|
+
continue;
|
|
41241
|
+
}
|
|
41242
|
+
}
|
|
41195
41243
|
if (target !== "/dev/null" && looksLikePath(target) && !isNetworkPseudoDevice(target)) {
|
|
41196
41244
|
if (op === "<") {
|
|
41197
41245
|
readFiles.push(resolvePath2(target, cwd));
|
|
@@ -42726,6 +42774,20 @@ function getHeredocDelimiters(line) {
|
|
|
42726
42774
|
return delimiters;
|
|
42727
42775
|
}
|
|
42728
42776
|
__name(getHeredocDelimiters, "getHeredocDelimiters");
|
|
42777
|
+
function extractRedirectOperations(command, cwd) {
|
|
42778
|
+
const { readFiles, writeFiles } = extractRedirects(tokenize2(command), cwd);
|
|
42779
|
+
return [
|
|
42780
|
+
...readFiles.map((filePath) => ({
|
|
42781
|
+
virtualTool: "read_file",
|
|
42782
|
+
filePath
|
|
42783
|
+
})),
|
|
42784
|
+
...writeFiles.map((filePath) => ({
|
|
42785
|
+
virtualTool: "write_file",
|
|
42786
|
+
filePath
|
|
42787
|
+
}))
|
|
42788
|
+
];
|
|
42789
|
+
}
|
|
42790
|
+
__name(extractRedirectOperations, "extractRedirectOperations");
|
|
42729
42791
|
function walkCompoundCommand(command, cwd, depth, initialCwdUnknown) {
|
|
42730
42792
|
const subCommands = splitCompoundCommandSegments(stripHeredocBodies(command));
|
|
42731
42793
|
const ops = [];
|
|
@@ -42734,6 +42796,12 @@ function walkCompoundCommand(command, cwd, depth, initialCwdUnknown) {
|
|
|
42734
42796
|
for (const { command: sub, terminator } of subCommands) {
|
|
42735
42797
|
const backgrounded = terminator === "&";
|
|
42736
42798
|
const cdTarget = resolveCdTargetCwd(sub, effectiveCwd, cwdUnknown);
|
|
42799
|
+
if (cdTarget.kind !== "not-cd") {
|
|
42800
|
+
const redirectOps = extractRedirectOperations(sub, effectiveCwd);
|
|
42801
|
+
ops.push(
|
|
42802
|
+
...cwdUnknown ? markCwdUnknownOps(redirectOps, sub, effectiveCwd) : redirectOps
|
|
42803
|
+
);
|
|
42804
|
+
}
|
|
42737
42805
|
if (cdTarget.kind === "static") {
|
|
42738
42806
|
if (!backgrounded) {
|
|
42739
42807
|
effectiveCwd = cdTarget.cwd;
|
|
@@ -42777,9 +42845,8 @@ function walkCompoundCommand(command, cwd, depth, initialCwdUnknown) {
|
|
|
42777
42845
|
__name(walkCompoundCommand, "walkCompoundCommand");
|
|
42778
42846
|
function hasAbsolutePathTokenForOperation(command, cwd, filePath) {
|
|
42779
42847
|
for (const token of tokenize2(command)) {
|
|
42780
|
-
const
|
|
42781
|
-
|
|
42782
|
-
)?.[1];
|
|
42848
|
+
const redirect = token.match(COMBINED_REDIRECT);
|
|
42849
|
+
const redirectTarget3 = redirect?.[1]?.startsWith("<<") ? void 0 : redirect?.[2]?.replace(/^&/, "");
|
|
42783
42850
|
const candidate = redirectTarget3 ?? token;
|
|
42784
42851
|
if (looksLikePath(candidate) && isShellAbsolutePath(candidate) && resolvePath2(candidate, cwd) === filePath) {
|
|
42785
42852
|
return true;
|
|
@@ -77526,7 +77593,7 @@ var CoreToolScheduler = class _CoreToolScheduler {
|
|
|
77526
77593
|
const notices = [];
|
|
77527
77594
|
let omniProcessed = responseParts;
|
|
77528
77595
|
if (this.config.isOmniEnabled?.()) {
|
|
77529
|
-
const { processToolResultOmniMedia } = await import("./tool-result-media-
|
|
77596
|
+
const { processToolResultOmniMedia } = await import("./tool-result-media-PXJEED5J.js");
|
|
77530
77597
|
omniProcessed = await processToolResultOmniMedia(
|
|
77531
77598
|
responseParts,
|
|
77532
77599
|
this.config,
|
|
@@ -79007,7 +79074,7 @@ var CoreToolScheduler = class _CoreToolScheduler {
|
|
|
79007
79074
|
this.finalizeToolSpan(reqInfo.callId);
|
|
79008
79075
|
continue;
|
|
79009
79076
|
}
|
|
79010
|
-
if (!requiresUserInteraction && isAutoEditApproved(approvalMode, confirmationDetails)) {
|
|
79077
|
+
if (!requiresUserInteraction && !pmForcedAsk && isAutoEditApproved(approvalMode, confirmationDetails)) {
|
|
79011
79078
|
this.setToolCallOutcome(
|
|
79012
79079
|
reqInfo.callId,
|
|
79013
79080
|
"proceed_always" /* ProceedAlways */
|
|
@@ -80699,7 +80766,7 @@ ${body}
|
|
|
80699
80766
|
artifacts: toolResult.artifacts
|
|
80700
80767
|
} : void 0;
|
|
80701
80768
|
if (policyArtifacts && policyArtifacts.executionOrigin.kind !== "fixed_policy" && scheduledCall.tool.mediaPolicyDescriptor) {
|
|
80702
|
-
const { collectModelPolicyCall } = await import("./model-call-collection-
|
|
80769
|
+
const { collectModelPolicyCall } = await import("./model-call-collection-HQF2N6XF.js");
|
|
80703
80770
|
await collectModelPolicyCall({
|
|
80704
80771
|
config: this.config,
|
|
80705
80772
|
batch: policyArtifacts,
|
|
@@ -82051,7 +82118,7 @@ var AgentCore = class {
|
|
|
82051
82118
|
lastPromptTokenCount = 0;
|
|
82052
82119
|
toolUsage = /* @__PURE__ */ new Map();
|
|
82053
82120
|
constructor(name, runtimeContext, promptConfig, modelConfig, runConfig, toolConfig, eventEmitter, hooks, runtimeView, taskName, subagentId) {
|
|
82054
|
-
this.subagentId = subagentId ?? `${name}-${
|
|
82121
|
+
this.subagentId = subagentId ?? `${name}-${randomUUID7().replace(/-/g, "").slice(0, 8)}`;
|
|
82055
82122
|
this.name = name;
|
|
82056
82123
|
this.taskName = taskName;
|
|
82057
82124
|
this.runtimeContext = runtimeContext;
|
|
@@ -82423,7 +82490,7 @@ var AgentCore = class {
|
|
|
82423
82490
|
}
|
|
82424
82491
|
async _runReasoningLoopInner(chat, initialMessages, toolsList, abortController, options2) {
|
|
82425
82492
|
const startTime = options2?.startTimeMs ?? Date.now();
|
|
82426
|
-
const runId =
|
|
82493
|
+
const runId = randomUUID7();
|
|
82427
82494
|
let currentMessages = initialMessages;
|
|
82428
82495
|
let turnCounter = 0;
|
|
82429
82496
|
let finalText = "";
|
|
@@ -83033,7 +83100,7 @@ ${text}` : text;
|
|
|
83033
83100
|
}
|
|
83034
83101
|
const responseByCallId = /* @__PURE__ */ new Map();
|
|
83035
83102
|
const uniqueFunctionCalls = dedupeToolCallsById(functionCalls2);
|
|
83036
|
-
const generatedCallIdBase =
|
|
83103
|
+
const generatedCallIdBase = randomUUID7();
|
|
83037
83104
|
const callIdByFunctionCall = new Map(
|
|
83038
83105
|
uniqueFunctionCalls.map((functionCall, index) => [
|
|
83039
83106
|
functionCall,
|
|
@@ -84779,7 +84846,7 @@ __name(toModelVisibleSubagentResult, "toModelVisibleSubagentResult");
|
|
|
84779
84846
|
init_esbuild_shims();
|
|
84780
84847
|
import * as fs24 from "node:fs";
|
|
84781
84848
|
import * as path25 from "node:path";
|
|
84782
|
-
import { randomUUID as
|
|
84849
|
+
import { randomUUID as randomUUID8 } from "node:crypto";
|
|
84783
84850
|
var debugLogger35 = createDebugLogger("AGENT_TRANSCRIPT");
|
|
84784
84851
|
var MAX_PENDING_STREAM_BYTES = 64 * 1024;
|
|
84785
84852
|
var MAX_PERSISTED_RECENT_ACTIVITIES = 10;
|
|
@@ -84919,7 +84986,7 @@ function normalizeResumedAgentDepth(value) {
|
|
|
84919
84986
|
}
|
|
84920
84987
|
__name(normalizeResumedAgentDepth, "normalizeResumedAgentDepth");
|
|
84921
84988
|
function writeAgentMeta(metaPath, meta4) {
|
|
84922
|
-
const tempPath = `${metaPath}.${process.pid}.${
|
|
84989
|
+
const tempPath = `${metaPath}.${process.pid}.${randomUUID8()}.tmp`;
|
|
84923
84990
|
try {
|
|
84924
84991
|
fs24.mkdirSync(path25.dirname(metaPath), { recursive: true });
|
|
84925
84992
|
fs24.writeFileSync(tempPath, JSON.stringify(meta4, null, 2), "utf8");
|
|
@@ -85057,7 +85124,7 @@ function attachJsonlTranscriptWriter(emitter, jsonlPath, options2) {
|
|
|
85057
85124
|
let fd = null;
|
|
85058
85125
|
let streamFd = null;
|
|
85059
85126
|
const streamPath = `${jsonlPath}.stream`;
|
|
85060
|
-
const streamRunId =
|
|
85127
|
+
const streamRunId = randomUUID8();
|
|
85061
85128
|
let pendingStreamText = "";
|
|
85062
85129
|
let pendingStreamBytes = 0;
|
|
85063
85130
|
let streamFlushTimer = null;
|
|
@@ -85084,7 +85151,7 @@ function attachJsonlTranscriptWriter(emitter, jsonlPath, options2) {
|
|
|
85084
85151
|
}
|
|
85085
85152
|
}, "ensureOpen");
|
|
85086
85153
|
const baseFields = /* @__PURE__ */ __name((type) => ({
|
|
85087
|
-
uuid:
|
|
85154
|
+
uuid: randomUUID8(),
|
|
85088
85155
|
parentUuid: lastUuid,
|
|
85089
85156
|
sessionId: options2.sessionId,
|
|
85090
85157
|
timestamp: (/* @__PURE__ */ new Date()).toISOString(),
|
|
@@ -87291,7 +87358,7 @@ var AgentToolInvocation = class extends BaseToolInvocation {
|
|
|
87291
87358
|
{ externalExecutor: subagentConfig.executor !== void 0 }
|
|
87292
87359
|
);
|
|
87293
87360
|
restoreParentPM = cleanup;
|
|
87294
|
-
const agentIdSuffix = this.callId ??
|
|
87361
|
+
const agentIdSuffix = this.callId ?? randomUUID9().slice(0, 8);
|
|
87295
87362
|
const launchDepth = childLaunchDepth();
|
|
87296
87363
|
const hookOpts = {
|
|
87297
87364
|
agentId: `${subagentConfig.name}-${agentIdSuffix}`,
|
|
@@ -95272,7 +95339,7 @@ function runWithIsolatedFork(config2, runtime, fn) {
|
|
|
95272
95339
|
const run = /* @__PURE__ */ __name(() => runWithForkedModelRuntime(runtime, fn), "run");
|
|
95273
95340
|
return reachesOrganizaOne(
|
|
95274
95341
|
runtime.runtimeView?.contentGeneratorConfig ?? config2.getContentGeneratorConfig?.()
|
|
95275
|
-
) ? runWithAgentContext(`fork-${
|
|
95342
|
+
) ? runWithAgentContext(`fork-${randomUUID10()}`, run) : run();
|
|
95276
95343
|
}
|
|
95277
95344
|
__name(runWithIsolatedFork, "runWithIsolatedFork");
|
|
95278
95345
|
function extractQueryUsage(metadata) {
|
|
@@ -95392,7 +95459,7 @@ async function runForkedAgent(params) {
|
|
|
95392
95459
|
const isGateway = reachesOrganizaOne(
|
|
95393
95460
|
modelRuntime.runtimeView?.contentGeneratorConfig ?? params.config.getContentGeneratorConfig?.()
|
|
95394
95461
|
);
|
|
95395
|
-
const invocationId = isGateway ? `${params.name}-${
|
|
95462
|
+
const invocationId = isGateway ? `${params.name}-${randomUUID10()}` : void 0;
|
|
95396
95463
|
const promptConfig = {
|
|
95397
95464
|
systemPrompt: params.systemPrompt,
|
|
95398
95465
|
initialMessages: isGateway && sourceMessages ? gatewayIndependentInput(sourceMessages) : sourceMessages
|
|
@@ -98734,7 +98801,7 @@ var WRITE_TOOL_NAMES2 = /* @__PURE__ */ new Set([
|
|
|
98734
98801
|
function makeTaskRecord(type, projectRoot, sessionId) {
|
|
98735
98802
|
const now = (/* @__PURE__ */ new Date()).toISOString();
|
|
98736
98803
|
return {
|
|
98737
|
-
id:
|
|
98804
|
+
id: randomUUID11(),
|
|
98738
98805
|
taskType: type,
|
|
98739
98806
|
projectRoot,
|
|
98740
98807
|
sessionId,
|
|
@@ -99844,7 +99911,7 @@ import fsPromises2 from "node:fs/promises";
|
|
|
99844
99911
|
|
|
99845
99912
|
// packages/core/src/core/message-display-dispatcher.ts
|
|
99846
99913
|
init_esbuild_shims();
|
|
99847
|
-
import { randomUUID as
|
|
99914
|
+
import { randomUUID as randomUUID12 } from "node:crypto";
|
|
99848
99915
|
|
|
99849
99916
|
// packages/core/src/core/message-display-buffer.ts
|
|
99850
99917
|
init_esbuild_shims();
|
|
@@ -99892,7 +99959,7 @@ var MessageDisplayDispatcher = class {
|
|
|
99892
99959
|
static {
|
|
99893
99960
|
__name(this, "MessageDisplayDispatcher");
|
|
99894
99961
|
}
|
|
99895
|
-
messageId =
|
|
99962
|
+
messageId = randomUUID12();
|
|
99896
99963
|
state;
|
|
99897
99964
|
/** Newest undelivered mid-stream text, coalesced behind {@link inFlight}. */
|
|
99898
99965
|
pending = null;
|
|
@@ -111413,9 +111480,9 @@ var require_codegen = /* @__PURE__ */ __commonJSMin(((exports2) => {
|
|
|
111413
111480
|
const rhs = this.rhs === void 0 ? "" : ` = ${this.rhs}`;
|
|
111414
111481
|
return `${varKind} ${this.name}${rhs};` + _n2;
|
|
111415
111482
|
}
|
|
111416
|
-
optimizeNames(names,
|
|
111483
|
+
optimizeNames(names, constants4) {
|
|
111417
111484
|
if (!names[this.name.str]) return;
|
|
111418
|
-
if (this.rhs) this.rhs = optimizeExpr(this.rhs, names,
|
|
111485
|
+
if (this.rhs) this.rhs = optimizeExpr(this.rhs, names, constants4);
|
|
111419
111486
|
return this;
|
|
111420
111487
|
}
|
|
111421
111488
|
get names() {
|
|
@@ -111435,9 +111502,9 @@ var require_codegen = /* @__PURE__ */ __commonJSMin(((exports2) => {
|
|
|
111435
111502
|
render({ _n: _n2 }) {
|
|
111436
111503
|
return `${this.lhs} = ${this.rhs};` + _n2;
|
|
111437
111504
|
}
|
|
111438
|
-
optimizeNames(names,
|
|
111505
|
+
optimizeNames(names, constants4) {
|
|
111439
111506
|
if (this.lhs instanceof code_1.Name && !names[this.lhs.str] && !this.sideEffects) return;
|
|
111440
|
-
this.rhs = optimizeExpr(this.rhs, names,
|
|
111507
|
+
this.rhs = optimizeExpr(this.rhs, names, constants4);
|
|
111441
111508
|
return this;
|
|
111442
111509
|
}
|
|
111443
111510
|
get names() {
|
|
@@ -111511,8 +111578,8 @@ var require_codegen = /* @__PURE__ */ __commonJSMin(((exports2) => {
|
|
|
111511
111578
|
optimizeNodes() {
|
|
111512
111579
|
return `${this.code}` ? this : void 0;
|
|
111513
111580
|
}
|
|
111514
|
-
optimizeNames(names,
|
|
111515
|
-
this.code = optimizeExpr(this.code, names,
|
|
111581
|
+
optimizeNames(names, constants4) {
|
|
111582
|
+
this.code = optimizeExpr(this.code, names, constants4);
|
|
111516
111583
|
return this;
|
|
111517
111584
|
}
|
|
111518
111585
|
get names() {
|
|
@@ -111541,12 +111608,12 @@ var require_codegen = /* @__PURE__ */ __commonJSMin(((exports2) => {
|
|
|
111541
111608
|
}
|
|
111542
111609
|
return nodes.length > 0 ? this : void 0;
|
|
111543
111610
|
}
|
|
111544
|
-
optimizeNames(names,
|
|
111611
|
+
optimizeNames(names, constants4) {
|
|
111545
111612
|
const { nodes } = this;
|
|
111546
111613
|
let i = nodes.length;
|
|
111547
111614
|
while (i--) {
|
|
111548
111615
|
const n = nodes[i];
|
|
111549
|
-
if (n.optimizeNames(names,
|
|
111616
|
+
if (n.optimizeNames(names, constants4)) continue;
|
|
111550
111617
|
subtractNames(names, n.names);
|
|
111551
111618
|
nodes.splice(i, 1);
|
|
111552
111619
|
}
|
|
@@ -111605,11 +111672,11 @@ var require_codegen = /* @__PURE__ */ __commonJSMin(((exports2) => {
|
|
|
111605
111672
|
if (cond === false || !this.nodes.length) return void 0;
|
|
111606
111673
|
return this;
|
|
111607
111674
|
}
|
|
111608
|
-
optimizeNames(names,
|
|
111675
|
+
optimizeNames(names, constants4) {
|
|
111609
111676
|
var _a3;
|
|
111610
|
-
this.else = (_a3 = this.else) === null || _a3 === void 0 ? void 0 : _a3.optimizeNames(names,
|
|
111611
|
-
if (!(super.optimizeNames(names,
|
|
111612
|
-
this.condition = optimizeExpr(this.condition, names,
|
|
111677
|
+
this.else = (_a3 = this.else) === null || _a3 === void 0 ? void 0 : _a3.optimizeNames(names, constants4);
|
|
111678
|
+
if (!(super.optimizeNames(names, constants4) || this.else)) return;
|
|
111679
|
+
this.condition = optimizeExpr(this.condition, names, constants4);
|
|
111613
111680
|
return this;
|
|
111614
111681
|
}
|
|
111615
111682
|
get names() {
|
|
@@ -111637,9 +111704,9 @@ var require_codegen = /* @__PURE__ */ __commonJSMin(((exports2) => {
|
|
|
111637
111704
|
render(opts) {
|
|
111638
111705
|
return `for(${this.iteration})` + super.render(opts);
|
|
111639
111706
|
}
|
|
111640
|
-
optimizeNames(names,
|
|
111641
|
-
if (!super.optimizeNames(names,
|
|
111642
|
-
this.iteration = optimizeExpr(this.iteration, names,
|
|
111707
|
+
optimizeNames(names, constants4) {
|
|
111708
|
+
if (!super.optimizeNames(names, constants4)) return;
|
|
111709
|
+
this.iteration = optimizeExpr(this.iteration, names, constants4);
|
|
111643
111710
|
return this;
|
|
111644
111711
|
}
|
|
111645
111712
|
get names() {
|
|
@@ -111680,9 +111747,9 @@ var require_codegen = /* @__PURE__ */ __commonJSMin(((exports2) => {
|
|
|
111680
111747
|
render(opts) {
|
|
111681
111748
|
return `for(${this.varKind} ${this.name} ${this.loop} ${this.iterable})` + super.render(opts);
|
|
111682
111749
|
}
|
|
111683
|
-
optimizeNames(names,
|
|
111684
|
-
if (!super.optimizeNames(names,
|
|
111685
|
-
this.iterable = optimizeExpr(this.iterable, names,
|
|
111750
|
+
optimizeNames(names, constants4) {
|
|
111751
|
+
if (!super.optimizeNames(names, constants4)) return;
|
|
111752
|
+
this.iterable = optimizeExpr(this.iterable, names, constants4);
|
|
111686
111753
|
return this;
|
|
111687
111754
|
}
|
|
111688
111755
|
get names() {
|
|
@@ -111730,11 +111797,11 @@ var require_codegen = /* @__PURE__ */ __commonJSMin(((exports2) => {
|
|
|
111730
111797
|
(_b = this.finally) === null || _b === void 0 || _b.optimizeNodes();
|
|
111731
111798
|
return this;
|
|
111732
111799
|
}
|
|
111733
|
-
optimizeNames(names,
|
|
111800
|
+
optimizeNames(names, constants4) {
|
|
111734
111801
|
var _a3, _b;
|
|
111735
|
-
super.optimizeNames(names,
|
|
111736
|
-
(_a3 = this.catch) === null || _a3 === void 0 || _a3.optimizeNames(names,
|
|
111737
|
-
(_b = this.finally) === null || _b === void 0 || _b.optimizeNames(names,
|
|
111802
|
+
super.optimizeNames(names, constants4);
|
|
111803
|
+
(_a3 = this.catch) === null || _a3 === void 0 || _a3.optimizeNames(names, constants4);
|
|
111804
|
+
(_b = this.finally) === null || _b === void 0 || _b.optimizeNames(names, constants4);
|
|
111738
111805
|
return this;
|
|
111739
111806
|
}
|
|
111740
111807
|
get names() {
|
|
@@ -111994,7 +112061,7 @@ var require_codegen = /* @__PURE__ */ __commonJSMin(((exports2) => {
|
|
|
111994
112061
|
return from instanceof code_1._CodeOrName ? addNames(names, from.names) : names;
|
|
111995
112062
|
}
|
|
111996
112063
|
__name(addExprNames, "addExprNames");
|
|
111997
|
-
function optimizeExpr(expr, names,
|
|
112064
|
+
function optimizeExpr(expr, names, constants4) {
|
|
111998
112065
|
if (expr instanceof code_1.Name) return replaceName(expr);
|
|
111999
112066
|
if (!canOptimize(expr)) return expr;
|
|
112000
112067
|
return new code_1._Code(expr._items.reduce((items, c) => {
|
|
@@ -112004,14 +112071,14 @@ var require_codegen = /* @__PURE__ */ __commonJSMin(((exports2) => {
|
|
|
112004
112071
|
return items;
|
|
112005
112072
|
}, []));
|
|
112006
112073
|
function replaceName(n) {
|
|
112007
|
-
const c =
|
|
112074
|
+
const c = constants4[n.str];
|
|
112008
112075
|
if (c === void 0 || names[n.str] !== 1) return n;
|
|
112009
112076
|
delete names[n.str];
|
|
112010
112077
|
return c;
|
|
112011
112078
|
}
|
|
112012
112079
|
__name(replaceName, "replaceName");
|
|
112013
112080
|
function canOptimize(e) {
|
|
112014
|
-
return e instanceof code_1._Code && e._items.some((c) => c instanceof code_1.Name && names[c.str] === 1 &&
|
|
112081
|
+
return e instanceof code_1._Code && e._items.some((c) => c instanceof code_1.Name && names[c.str] === 1 && constants4[c.str] !== void 0);
|
|
112015
112082
|
}
|
|
112016
112083
|
__name(canOptimize, "canOptimize");
|
|
112017
112084
|
}
|
|
@@ -133983,14 +134050,15 @@ var PermissionManager = class _PermissionManager {
|
|
|
133983
134050
|
/**
|
|
133984
134051
|
* The session allow rules in force right now: every rule the user granted,
|
|
133985
134052
|
* plus the repository-granted (`trustGated`) ones only while the folder is
|
|
133986
|
-
* trusted. Trust is re-read on every call —
|
|
134053
|
+
* explicitly trusted. Trust is re-read on every call —
|
|
134054
|
+
* `Config.isExplicitlyTrustedFolder()` is
|
|
133987
134055
|
* live under an IDE connection — so a revocation mid-session suspends a
|
|
133988
134056
|
* project skill's grants at the next decision, and a later grant of trust
|
|
133989
134057
|
* restores them, the second side of the gate `applySideEffects` enforces
|
|
133990
134058
|
* on the way in.
|
|
133991
134059
|
*/
|
|
133992
134060
|
activeSessionAllowRules() {
|
|
133993
|
-
const trusted = this.config.
|
|
134061
|
+
const trusted = this.config.isExplicitlyTrustedFolder?.() ?? false;
|
|
133994
134062
|
return trusted ? this.sessionRules.allow : this.sessionRules.allow.filter((rule) => !rule.trustGated);
|
|
133995
134063
|
}
|
|
133996
134064
|
/**
|
|
@@ -134263,7 +134331,7 @@ var import_yaml3 = __toESM(require_dist2(), 1);
|
|
|
134263
134331
|
import * as fs46 from "fs/promises";
|
|
134264
134332
|
import * as path48 from "path";
|
|
134265
134333
|
import * as os10 from "os";
|
|
134266
|
-
import { randomUUID as
|
|
134334
|
+
import { randomUUID as randomUUID13 } from "crypto";
|
|
134267
134335
|
|
|
134268
134336
|
// packages/core/src/subagents/validation.ts
|
|
134269
134337
|
init_esbuild_shims();
|
|
@@ -135430,13 +135498,13 @@ ${config2.systemPrompt}
|
|
|
135430
135498
|
);
|
|
135431
135499
|
const { context: subagentContext, cleanup } = await this.buildSubagentContextOverride(runtimeContext, config2);
|
|
135432
135500
|
disposeSubagentRegistry = cleanup;
|
|
135433
|
-
const subagentId = options2?.subagentId ?? `${config2.name}-${
|
|
135501
|
+
const subagentId = options2?.subagentId ?? `${config2.name}-${randomUUID13().replace(/-/g, "").slice(0, 8)}`;
|
|
135434
135502
|
const hookSystem = runtimeContext.getHookSystem();
|
|
135435
135503
|
const hookRegistry = hookSystem?.getRegistry();
|
|
135436
135504
|
if (config2.hooks && Object.keys(config2.hooks).length > 0) {
|
|
135437
|
-
if (config2.level === "project" && !runtimeContext.
|
|
135505
|
+
if (config2.level === "project" && !runtimeContext.isExplicitlyTrustedFolder()) {
|
|
135438
135506
|
debugLogger82.warn(
|
|
135439
|
-
`Subagent "${config2.name}"
|
|
135507
|
+
`Subagent "${config2.name}" requires explicit folder trust; ignoring its hooks. ${EXPLICIT_TRUST_HINT}`
|
|
135440
135508
|
);
|
|
135441
135509
|
} else if (hookRegistry) {
|
|
135442
135510
|
unregisterAgentHooks = hookRegistry.addAgentHooks(
|
|
@@ -144576,7 +144644,7 @@ __name(extractZipArchive, "extractZipArchive");
|
|
|
144576
144644
|
init_esbuild_shims();
|
|
144577
144645
|
import * as fs61 from "node:fs/promises";
|
|
144578
144646
|
import * as path63 from "node:path";
|
|
144579
|
-
import { randomUUID as
|
|
144647
|
+
import { randomUUID as randomUUID14 } from "node:crypto";
|
|
144580
144648
|
var EXTENSION_GIT_CREDENTIAL_SELECTOR_FILENAME = ".o1-code-extension-git-credentials.json";
|
|
144581
144649
|
var GIT_CREDENTIAL_SERVICE_NAME = "O1-Code Extension Git Credentials";
|
|
144582
144650
|
var GIT_CREDENTIAL_KEY_PREFIX = "$o1-code:extension-git:v1:";
|
|
@@ -144654,7 +144722,7 @@ async function writeGitCredentialSelector(extensionDir, selector) {
|
|
|
144654
144722
|
__name(writeGitCredentialSelector, "writeGitCredentialSelector");
|
|
144655
144723
|
async function prepareStoredGitCredential(extensionDir, credential) {
|
|
144656
144724
|
const storage = new HybridTokenStorage(GIT_CREDENTIAL_SERVICE_NAME);
|
|
144657
|
-
const secretKey = `${GIT_CREDENTIAL_KEY_PREFIX}${
|
|
144725
|
+
const secretKey = `${GIT_CREDENTIAL_KEY_PREFIX}${randomUUID14()}`;
|
|
144658
144726
|
await storage.setSecret(secretKey, JSON.stringify(credential));
|
|
144659
144727
|
const selector = {
|
|
144660
144728
|
version: 1,
|
|
@@ -146825,7 +146893,7 @@ init_esbuild_shims();
|
|
|
146825
146893
|
var dotenv = __toESM(require_main(), 1);
|
|
146826
146894
|
import * as fs67 from "node:fs/promises";
|
|
146827
146895
|
import * as fsSync3 from "node:fs";
|
|
146828
|
-
import { randomUUID as
|
|
146896
|
+
import { randomUUID as randomUUID16 } from "node:crypto";
|
|
146829
146897
|
import * as path68 from "node:path";
|
|
146830
146898
|
var import_prompts7 = __toESM(require_prompts3(), 1);
|
|
146831
146899
|
var debugLogger98 = createDebugLogger("EXT_SETTINGS");
|
|
@@ -146974,7 +147042,7 @@ async function maybePromptForSettings(extensionConfig, extensionId, requestSetti
|
|
|
146974
147042
|
const envContent = formatEnvContent(nonSensitiveSettings);
|
|
146975
147043
|
await atomicWriteFile(envFilePath, envContent, { noFollow: true });
|
|
146976
147044
|
if (Object.keys(sensitiveSettings).length > 0) {
|
|
146977
|
-
const bundleKey = `${SETTINGS_BUNDLE_PREFIX}${
|
|
147045
|
+
const bundleKey = `${SETTINGS_BUNDLE_PREFIX}${randomUUID16()}`;
|
|
146978
147046
|
await keychain.setSecret(bundleKey, JSON.stringify(sensitiveSettings));
|
|
146979
147047
|
newSelector = {
|
|
146980
147048
|
version: 1,
|
|
@@ -153574,7 +153642,7 @@ var HookRegistry = class {
|
|
|
153574
153642
|
// packages/core/src/hooks/hookRunner.ts
|
|
153575
153643
|
init_esbuild_shims();
|
|
153576
153644
|
import { execFile as execFile8, spawn as spawn6 } from "node:child_process";
|
|
153577
|
-
import { randomUUID as
|
|
153645
|
+
import { randomUUID as randomUUID18 } from "node:crypto";
|
|
153578
153646
|
import { rmSync as rmSync6, writeFileSync as writeFileSync8 } from "node:fs";
|
|
153579
153647
|
import { platform as platform3, tmpdir as tmpdir4 } from "node:os";
|
|
153580
153648
|
import { join as join54 } from "node:path";
|
|
@@ -155566,7 +155634,7 @@ __name(terminateSurvivingHookProcessGroup, "terminateSurvivingHookProcessGroup")
|
|
|
155566
155634
|
function createSurvivingHookInputFile(input2) {
|
|
155567
155635
|
const path80 = join54(
|
|
155568
155636
|
tmpdir4(),
|
|
155569
|
-
`o1-code-hook-input-${process.pid}-${
|
|
155637
|
+
`o1-code-hook-input-${process.pid}-${randomUUID18()}.json`
|
|
155570
155638
|
);
|
|
155571
155639
|
writeFileSync8(path80, JSON.stringify(input2), {
|
|
155572
155640
|
encoding: "utf8",
|
|
@@ -157696,7 +157764,7 @@ var HookEventHandler = class {
|
|
|
157696
157764
|
const sessionHooks = registeredSessionHooks.some(
|
|
157697
157765
|
(entry) => entry.trustGated === true
|
|
157698
157766
|
) ? registeredSessionHooks.filter(
|
|
157699
|
-
(entry) => !entry.trustGated || this.config.
|
|
157767
|
+
(entry) => !entry.trustGated || this.config.isExplicitlyTrustedFolder()
|
|
157700
157768
|
) : registeredSessionHooks;
|
|
157701
157769
|
if (sessionHooks.length !== registeredSessionHooks.length) {
|
|
157702
157770
|
debugLogger115.debug(
|
|
@@ -158934,7 +159002,9 @@ function buildHooksListing(config2) {
|
|
|
158934
159002
|
hookId: entry.hookId,
|
|
158935
159003
|
skillRoot: entry.skillRoot
|
|
158936
159004
|
},
|
|
158937
|
-
|
|
159005
|
+
// A repository's own hook fires only under explicit trust, so the
|
|
159006
|
+
// listing must not show it as enabled on the weaker answer.
|
|
159007
|
+
entry.trustGated ? { ...gates, trustedFolder: config2.isExplicitlyTrustedFolder() } : gates
|
|
158938
159008
|
)
|
|
158939
159009
|
);
|
|
158940
159010
|
}
|
|
@@ -158988,7 +159058,7 @@ var HOOK_EVENT_DISPLAY = Object.freeze({
|
|
|
158988
159058
|
|
|
158989
159059
|
// packages/core/src/confirmation-bus/message-bus.ts
|
|
158990
159060
|
init_esbuild_shims();
|
|
158991
|
-
import { randomUUID as
|
|
159061
|
+
import { randomUUID as randomUUID19 } from "node:crypto";
|
|
158992
159062
|
import { EventEmitter as EventEmitter6 } from "node:events";
|
|
158993
159063
|
var debugLogger118 = createDebugLogger("TRUSTED_HOOKS");
|
|
158994
159064
|
var MessageBus = class extends EventEmitter6 {
|
|
@@ -159049,7 +159119,7 @@ var MessageBus = class extends EventEmitter6 {
|
|
|
159049
159119
|
* The correlation ID is generated internally and added to the request
|
|
159050
159120
|
*/
|
|
159051
159121
|
async request(request, responseType, timeoutMs = 6e4, signal) {
|
|
159052
|
-
const correlationId =
|
|
159122
|
+
const correlationId = randomUUID19();
|
|
159053
159123
|
return new Promise((resolve34, reject) => {
|
|
159054
159124
|
if (signal?.aborted) {
|
|
159055
159125
|
reject(new Error("Request aborted"));
|
|
@@ -159181,7 +159251,7 @@ function isSdkMcpServerConfig(config2) {
|
|
|
159181
159251
|
__name(isSdkMcpServerConfig, "isSdkMcpServerConfig");
|
|
159182
159252
|
|
|
159183
159253
|
// packages/core/src/config/config.ts
|
|
159184
|
-
import { createHash as createHash12, randomUUID as
|
|
159254
|
+
import { createHash as createHash12, randomUUID as randomUUID20 } from "node:crypto";
|
|
159185
159255
|
|
|
159186
159256
|
// packages/core/src/memory/memoryDiscovery.ts
|
|
159187
159257
|
init_esbuild_shims();
|
|
@@ -161964,7 +162034,7 @@ async function getMemoryFilePathsInternalForEachDir(dir, userHomePath, fileServi
|
|
|
161964
162034
|
logger4.debug(`Determined project root: ${projectRoot ?? "None"}`);
|
|
161965
162035
|
const upwardPaths = [];
|
|
161966
162036
|
let currentDir = resolvedCwd;
|
|
161967
|
-
const ultimateStopDir = projectRoot
|
|
162037
|
+
const ultimateStopDir = projectRoot ?? path76.dirname(resolvedHome);
|
|
161968
162038
|
while (currentDir && currentDir !== path76.dirname(currentDir)) {
|
|
161969
162039
|
if (currentDir === globalO1CodeDir || currentDir === path76.join(resolvedHome, O1CODE_DIR)) {
|
|
161970
162040
|
break;
|
|
@@ -163748,7 +163818,7 @@ var Config = class _Config {
|
|
|
163748
163818
|
Storage.getGlobalO1CodeDir()
|
|
163749
163819
|
);
|
|
163750
163820
|
this.provisionalWorkspace = params.provisionalWorkspace === true;
|
|
163751
|
-
this.sessionId = params.sessionId ??
|
|
163821
|
+
this.sessionId = params.sessionId ?? randomUUID20();
|
|
163752
163822
|
if (!sessionEnvClaimed && process6.env) {
|
|
163753
163823
|
process6.env["O1CODE_SESSION_ID"] = this.sessionId;
|
|
163754
163824
|
sessionEnvClaimed = true;
|
|
@@ -164272,7 +164342,7 @@ var Config = class _Config {
|
|
|
164272
164342
|
await this.proxyDispatcherReady;
|
|
164273
164343
|
options2?.signal?.throwIfAborted();
|
|
164274
164344
|
if (this.isOmniEnabled()) {
|
|
164275
|
-
const { normalizeDedicatedOmniUploadConfig } = await import("./upload-config-
|
|
164345
|
+
const { normalizeDedicatedOmniUploadConfig } = await import("./upload-config-GAXSQ3UL.js");
|
|
164276
164346
|
this.omniUploadConfig = normalizeDedicatedOmniUploadConfig({
|
|
164277
164347
|
baseUrl: this.omniUploadBaseUrl,
|
|
164278
164348
|
apiKeyEnv: this.omniUploadApiKeyEnv,
|
|
@@ -165462,7 +165532,7 @@ var Config = class _Config {
|
|
|
165462
165532
|
void outgoingChatRecordingService?.flush().catch(() => {
|
|
165463
165533
|
});
|
|
165464
165534
|
const previousSessionId = this.sessionId;
|
|
165465
|
-
const nextSessionId = sessionId ??
|
|
165535
|
+
const nextSessionId = sessionId ?? randomUUID20();
|
|
165466
165536
|
const isSessionTransition = nextSessionId !== previousSessionId;
|
|
165467
165537
|
if (isSessionTransition) {
|
|
165468
165538
|
logSessionEnd(this);
|
|
@@ -168186,7 +168256,7 @@ var Config = class _Config {
|
|
|
168186
168256
|
return this.omniPolicyTools;
|
|
168187
168257
|
}
|
|
168188
168258
|
async loadOmniMediaReader() {
|
|
168189
|
-
return import("./omni-
|
|
168259
|
+
return import("./omni-MLLL6UUM.js");
|
|
168190
168260
|
}
|
|
168191
168261
|
/** Normalized `omni.processing` view. Undefined until tool warmup
|
|
168192
168262
|
* completes (or when omni is disabled). */
|
|
@@ -169072,6 +169142,17 @@ var Config = class _Config {
|
|
|
169072
169142
|
}
|
|
169073
169143
|
return this.trustedFolder ?? !this.folderTrust;
|
|
169074
169144
|
}
|
|
169145
|
+
/**
|
|
169146
|
+
* Whether someone actually said this folder is trusted: the folder-trust
|
|
169147
|
+
* feature is on and the folder passed it, or the IDE reports the workspace
|
|
169148
|
+
* as trusted. With the feature off every folder counts as trusted, which is
|
|
169149
|
+
* not a decision anyone made; commands a repository supplies (frontmatter
|
|
169150
|
+
* hooks, tool grants, its own language servers) need this stronger answer.
|
|
169151
|
+
*/
|
|
169152
|
+
isExplicitlyTrustedFolder() {
|
|
169153
|
+
const ideTrust = ideContextStore.get()?.workspaceState?.isTrusted;
|
|
169154
|
+
return (this.folderTrust || ideTrust !== void 0) && this.isTrustedFolder();
|
|
169155
|
+
}
|
|
169075
169156
|
setIdeMode(value) {
|
|
169076
169157
|
if (this.shellExecutionSandbox && value)
|
|
169077
169158
|
throw new Error(
|
|
@@ -169859,7 +169940,7 @@ var Config = class _Config {
|
|
|
169859
169940
|
async registerWorkflowTool(registry2) {
|
|
169860
169941
|
if (registry2.getAllToolNames().includes(ToolNames.WORKFLOW)) return true;
|
|
169861
169942
|
await this.registerLazyTool(registry2, ToolNames.WORKFLOW, async () => {
|
|
169862
|
-
const { WorkflowTool } = await import("./workflow-
|
|
169943
|
+
const { WorkflowTool } = await import("./workflow-V26XKAXG.js");
|
|
169863
169944
|
return new WorkflowTool(this);
|
|
169864
169945
|
});
|
|
169865
169946
|
return registry2.getAllToolNames().includes(ToolNames.WORKFLOW);
|
|
@@ -169908,7 +169989,7 @@ var Config = class _Config {
|
|
|
169908
169989
|
return;
|
|
169909
169990
|
}
|
|
169910
169991
|
const factory = /* @__PURE__ */ __name(async () => {
|
|
169911
|
-
const { RecordSourceTool } = await import("./record-source-
|
|
169992
|
+
const { RecordSourceTool } = await import("./record-source-4K4EQAX7.js");
|
|
169912
169993
|
return new RecordSourceTool(this);
|
|
169913
169994
|
}, "factory");
|
|
169914
169995
|
if (status === "deferred") {
|
|
@@ -169939,16 +170020,16 @@ var Config = class _Config {
|
|
|
169939
170020
|
const registerGoalWorkerTools = /* @__PURE__ */ __name(async () => {
|
|
169940
170021
|
if (options2?.forSubAgent) return;
|
|
169941
170022
|
await registerLazy(ToolNames.GET_GOAL, async () => {
|
|
169942
|
-
const { GetGoalTool: GetGoalTool2 } = await import("./goal-tools-
|
|
170023
|
+
const { GetGoalTool: GetGoalTool2 } = await import("./goal-tools-LZLIELOL.js");
|
|
169943
170024
|
return new GetGoalTool2(this);
|
|
169944
170025
|
});
|
|
169945
170026
|
await registerLazy(ToolNames.UPDATE_GOAL, async () => {
|
|
169946
|
-
const { UpdateGoalTool: UpdateGoalTool2 } = await import("./goal-tools-
|
|
170027
|
+
const { UpdateGoalTool: UpdateGoalTool2 } = await import("./goal-tools-LZLIELOL.js");
|
|
169947
170028
|
return new UpdateGoalTool2(this);
|
|
169948
170029
|
});
|
|
169949
170030
|
if (this.getModelProposedGoals() !== "disabled" && (resolveInteractionMode(this) === "interactive" || this.goalProposalHostSupported)) {
|
|
169950
170031
|
await registerLazy(ToolNames.PROPOSE_GOAL, async () => {
|
|
169951
|
-
const { ProposeGoalTool: ProposeGoalTool2 } = await import("./goal-tools-
|
|
170032
|
+
const { ProposeGoalTool: ProposeGoalTool2 } = await import("./goal-tools-LZLIELOL.js");
|
|
169952
170033
|
return new ProposeGoalTool2(this);
|
|
169953
170034
|
});
|
|
169954
170035
|
}
|
|
@@ -169968,16 +170049,16 @@ var Config = class _Config {
|
|
|
169968
170049
|
});
|
|
169969
170050
|
}
|
|
169970
170051
|
await registerLazy(ToolNames.WEB_FETCH, async () => {
|
|
169971
|
-
const { WebFetchTool } = await import("./web-fetch-
|
|
170052
|
+
const { WebFetchTool } = await import("./web-fetch-XIUI6SSS.js");
|
|
169972
170053
|
return new WebFetchTool(this);
|
|
169973
170054
|
});
|
|
169974
170055
|
const hasExplicitWebSearchBackend = !!this.webSearchSettings?.model?.trim() || !!this.webSearchSettings?.baseUrl;
|
|
169975
170056
|
if (!this.getBareMode() && !this.isSafeMode() && this.webSearchSettings?.enabled !== false && (this.webSearchSettings?.enabled === true || !hasExplicitWebSearchBackend)) {
|
|
169976
|
-
const { evaluateWebSearchGate } = await import("./web-search-
|
|
170057
|
+
const { evaluateWebSearchGate } = await import("./web-search-53FZUSEO.js");
|
|
169977
170058
|
const gate = evaluateWebSearchGate(this);
|
|
169978
170059
|
if (gate.ok) {
|
|
169979
170060
|
await registerLazy(ToolNames.WEB_SEARCH, async () => {
|
|
169980
|
-
const { WebSearchTool } = await import("./web-search-
|
|
170061
|
+
const { WebSearchTool } = await import("./web-search-53FZUSEO.js");
|
|
169981
170062
|
return new WebSearchTool(this);
|
|
169982
170063
|
});
|
|
169983
170064
|
} else if (!gate.silent && !this.webSearchNoticeEmitted && !options2?.forSubAgent) {
|
|
@@ -169994,8 +170075,8 @@ var Config = class _Config {
|
|
|
169994
170075
|
);
|
|
169995
170076
|
}
|
|
169996
170077
|
const [{ createExecutionTools }, { wrapExecutionTool }] = await Promise.all([
|
|
169997
|
-
import("./local-execution-environment-
|
|
169998
|
-
import("./execution-tool-
|
|
170078
|
+
import("./local-execution-environment-W6RR5CM2.js"),
|
|
170079
|
+
import("./execution-tool-IEMS4OMY.js")
|
|
169999
170080
|
]);
|
|
170000
170081
|
for (const [name, tool] of createExecutionTools(this)) {
|
|
170001
170082
|
if (environment.toolNames && !environment.toolNames.has(name)) continue;
|
|
@@ -170006,11 +170087,11 @@ var Config = class _Config {
|
|
|
170006
170087
|
);
|
|
170007
170088
|
}
|
|
170008
170089
|
await registerLazy(ToolNames.TOOL_CALL, async () => {
|
|
170009
|
-
const { ToolCallTool } = await import("./tool-call-
|
|
170090
|
+
const { ToolCallTool } = await import("./tool-call-ZR564L2K.js");
|
|
170010
170091
|
return new ToolCallTool(registry2);
|
|
170011
170092
|
});
|
|
170012
170093
|
await registerLazy(ToolNames.TOOL_SEARCH, async () => {
|
|
170013
|
-
const { ToolSearchTool } = await import("./tool-search-
|
|
170094
|
+
const { ToolSearchTool } = await import("./tool-search-5GZKW7RO.js");
|
|
170014
170095
|
return new ToolSearchTool(this);
|
|
170015
170096
|
});
|
|
170016
170097
|
if (this.executionEnvironment && !options2?.forSubAgent) {
|
|
@@ -170022,7 +170103,7 @@ var Config = class _Config {
|
|
|
170022
170103
|
}
|
|
170023
170104
|
if (this.shellExecutionSandbox) {
|
|
170024
170105
|
await registerLazy(ToolNames.SHELL, async () => {
|
|
170025
|
-
const { ShellTool: ShellTool2 } = await import("./shell-
|
|
170106
|
+
const { ShellTool: ShellTool2 } = await import("./shell-PEPAVCLP.js");
|
|
170026
170107
|
return new ShellTool2(this);
|
|
170027
170108
|
});
|
|
170028
170109
|
await registerLazy(ToolNames.TASK_STOP, async () => {
|
|
@@ -170030,27 +170111,27 @@ var Config = class _Config {
|
|
|
170030
170111
|
return new TaskStopTool(this);
|
|
170031
170112
|
});
|
|
170032
170113
|
await registerLazy(ToolNames.READ_FILE, async () => {
|
|
170033
|
-
const { ReadFileTool } = await import("./read-file-
|
|
170114
|
+
const { ReadFileTool } = await import("./read-file-BTMZPG5O.js");
|
|
170034
170115
|
return new ReadFileTool(this);
|
|
170035
170116
|
});
|
|
170036
170117
|
await registerLazy(ToolNames.WRITE_FILE, async () => {
|
|
170037
|
-
const { WriteFileTool } = await import("./write-file-
|
|
170118
|
+
const { WriteFileTool } = await import("./write-file-OA3YWX4Z.js");
|
|
170038
170119
|
return new WriteFileTool(this);
|
|
170039
170120
|
});
|
|
170040
170121
|
await registerLazy(ToolNames.EDIT, async () => {
|
|
170041
|
-
const { EditTool } = await import("./edit-
|
|
170122
|
+
const { EditTool } = await import("./edit-EI2QZFML.js");
|
|
170042
170123
|
return new EditTool(this);
|
|
170043
170124
|
});
|
|
170044
170125
|
await registerLazy(ToolNames.MONITOR, async () => {
|
|
170045
|
-
const { MonitorTool } = await import("./monitor-
|
|
170126
|
+
const { MonitorTool } = await import("./monitor-4DJ5VKXK.js");
|
|
170046
170127
|
return new MonitorTool(this);
|
|
170047
170128
|
});
|
|
170048
170129
|
await registerLazy(ToolNames.AGENT, async () => {
|
|
170049
|
-
const { AgentTool: AgentTool2 } = await import("./agent-
|
|
170130
|
+
const { AgentTool: AgentTool2 } = await import("./agent-O6PLYNPF.js");
|
|
170050
170131
|
return new AgentTool2(this);
|
|
170051
170132
|
});
|
|
170052
170133
|
await registerLazy(ToolNames.GLOB, async () => {
|
|
170053
|
-
const { GlobTool } = await import("./glob-
|
|
170134
|
+
const { GlobTool } = await import("./glob-QZSWKHOW.js");
|
|
170054
170135
|
return new GlobTool(this);
|
|
170055
170136
|
});
|
|
170056
170137
|
await registerLazy(ToolNames.LS, async () => {
|
|
@@ -170069,19 +170150,19 @@ var Config = class _Config {
|
|
|
170069
170150
|
}
|
|
170070
170151
|
if (this.getBareMode()) {
|
|
170071
170152
|
await registerLazy(ToolNames.READ_FILE, async () => {
|
|
170072
|
-
const { ReadFileTool } = await import("./read-file-
|
|
170153
|
+
const { ReadFileTool } = await import("./read-file-BTMZPG5O.js");
|
|
170073
170154
|
return new ReadFileTool(this);
|
|
170074
170155
|
});
|
|
170075
170156
|
await registerLazy(ToolNames.EDIT, async () => {
|
|
170076
|
-
const { EditTool } = await import("./edit-
|
|
170157
|
+
const { EditTool } = await import("./edit-EI2QZFML.js");
|
|
170077
170158
|
return new EditTool(this);
|
|
170078
170159
|
});
|
|
170079
170160
|
await registerLazy(ToolNames.NOTEBOOK_EDIT, async () => {
|
|
170080
|
-
const { NotebookEditTool } = await import("./notebook-edit-
|
|
170161
|
+
const { NotebookEditTool } = await import("./notebook-edit-EOFZ4EKN.js");
|
|
170081
170162
|
return new NotebookEditTool(this);
|
|
170082
170163
|
});
|
|
170083
170164
|
await registerLazy(ToolNames.SHELL, async () => {
|
|
170084
|
-
const { ShellTool: ShellTool2 } = await import("./shell-
|
|
170165
|
+
const { ShellTool: ShellTool2 } = await import("./shell-PEPAVCLP.js");
|
|
170085
170166
|
return new ShellTool2(this);
|
|
170086
170167
|
});
|
|
170087
170168
|
await registerGoalWorkerTools();
|
|
@@ -170096,11 +170177,11 @@ var Config = class _Config {
|
|
|
170096
170177
|
await registerExecIfEnabled();
|
|
170097
170178
|
await registerGoalWorkerTools();
|
|
170098
170179
|
await registerLazy(ToolNames.TOOL_CALL, async () => {
|
|
170099
|
-
const { ToolCallTool } = await import("./tool-call-
|
|
170180
|
+
const { ToolCallTool } = await import("./tool-call-ZR564L2K.js");
|
|
170100
170181
|
return new ToolCallTool(registry2);
|
|
170101
170182
|
});
|
|
170102
170183
|
await registerLazy(ToolNames.TOOL_SEARCH, async () => {
|
|
170103
|
-
const { ToolSearchTool } = await import("./tool-search-
|
|
170184
|
+
const { ToolSearchTool } = await import("./tool-search-5GZKW7RO.js");
|
|
170104
170185
|
return new ToolSearchTool(this);
|
|
170105
170186
|
});
|
|
170106
170187
|
await registerLazy(ToolNames.READ_MCP_RESOURCE, async () => {
|
|
@@ -170108,7 +170189,7 @@ var Config = class _Config {
|
|
|
170108
170189
|
return new ReadMcpResourceTool(this);
|
|
170109
170190
|
});
|
|
170110
170191
|
await registerLazy(ToolNames.AGENT, async () => {
|
|
170111
|
-
const { AgentTool: AgentTool2 } = await import("./agent-
|
|
170192
|
+
const { AgentTool: AgentTool2 } = await import("./agent-O6PLYNPF.js");
|
|
170112
170193
|
return new AgentTool2(this);
|
|
170113
170194
|
});
|
|
170114
170195
|
await registerLazy(ToolNames.LIST_AGENTS, async () => {
|
|
@@ -170120,11 +170201,11 @@ var Config = class _Config {
|
|
|
170120
170201
|
return new TaskStopTool(this);
|
|
170121
170202
|
});
|
|
170122
170203
|
await registerLazy(ToolNames.SEND_MESSAGE, async () => {
|
|
170123
|
-
const { SendMessageTool } = await import("./send-message-
|
|
170204
|
+
const { SendMessageTool } = await import("./send-message-CD2AOPQD.js");
|
|
170124
170205
|
return new SendMessageTool(this);
|
|
170125
170206
|
});
|
|
170126
170207
|
await registerLazy(ToolNames.SKILL, async () => {
|
|
170127
|
-
const { SkillTool } = await import("./skill-
|
|
170208
|
+
const { SkillTool } = await import("./skill-KYZIZDCI.js");
|
|
170128
170209
|
return new SkillTool(this);
|
|
170129
170210
|
});
|
|
170130
170211
|
if (this.isLsToolEnabled()) {
|
|
@@ -170134,11 +170215,11 @@ var Config = class _Config {
|
|
|
170134
170215
|
});
|
|
170135
170216
|
}
|
|
170136
170217
|
await registerLazy(ToolNames.READ_FILE, async () => {
|
|
170137
|
-
const { ReadFileTool } = await import("./read-file-
|
|
170218
|
+
const { ReadFileTool } = await import("./read-file-BTMZPG5O.js");
|
|
170138
170219
|
return new ReadFileTool(this);
|
|
170139
170220
|
});
|
|
170140
170221
|
await registerLazy(ToolNames.ZOOM_IMAGE, async () => {
|
|
170141
|
-
const { ZoomImageTool } = await import("./zoom-image-
|
|
170222
|
+
const { ZoomImageTool } = await import("./zoom-image-2FAU5GG7.js");
|
|
170142
170223
|
return new ZoomImageTool(this);
|
|
170143
170224
|
});
|
|
170144
170225
|
if (this.getUseRipgrep()) {
|
|
@@ -170153,7 +170234,7 @@ var Config = class _Config {
|
|
|
170153
170234
|
recordStartupEvent("config_initialize_ripgrep_probe_end");
|
|
170154
170235
|
if (useRipgrep) {
|
|
170155
170236
|
await registerLazy(ToolNames.GREP, async () => {
|
|
170156
|
-
const { RipGrepTool } = await import("./ripGrep-
|
|
170237
|
+
const { RipGrepTool } = await import("./ripGrep-N425H66N.js");
|
|
170157
170238
|
return new RipGrepTool(this);
|
|
170158
170239
|
});
|
|
170159
170240
|
} else {
|
|
@@ -170179,23 +170260,23 @@ var Config = class _Config {
|
|
|
170179
170260
|
});
|
|
170180
170261
|
}
|
|
170181
170262
|
await registerLazy(ToolNames.GLOB, async () => {
|
|
170182
|
-
const { GlobTool } = await import("./glob-
|
|
170263
|
+
const { GlobTool } = await import("./glob-QZSWKHOW.js");
|
|
170183
170264
|
return new GlobTool(this);
|
|
170184
170265
|
});
|
|
170185
170266
|
await registerLazy(ToolNames.EDIT, async () => {
|
|
170186
|
-
const { EditTool } = await import("./edit-
|
|
170267
|
+
const { EditTool } = await import("./edit-EI2QZFML.js");
|
|
170187
170268
|
return new EditTool(this);
|
|
170188
170269
|
});
|
|
170189
170270
|
await registerLazy(ToolNames.NOTEBOOK_EDIT, async () => {
|
|
170190
|
-
const { NotebookEditTool } = await import("./notebook-edit-
|
|
170271
|
+
const { NotebookEditTool } = await import("./notebook-edit-EOFZ4EKN.js");
|
|
170191
170272
|
return new NotebookEditTool(this);
|
|
170192
170273
|
});
|
|
170193
170274
|
await registerLazy(ToolNames.WRITE_FILE, async () => {
|
|
170194
|
-
const { WriteFileTool } = await import("./write-file-
|
|
170275
|
+
const { WriteFileTool } = await import("./write-file-OA3YWX4Z.js");
|
|
170195
170276
|
return new WriteFileTool(this);
|
|
170196
170277
|
});
|
|
170197
170278
|
await registerLazy(ToolNames.SHELL, async () => {
|
|
170198
|
-
const { ShellTool: ShellTool2 } = await import("./shell-
|
|
170279
|
+
const { ShellTool: ShellTool2 } = await import("./shell-PEPAVCLP.js");
|
|
170199
170280
|
return new ShellTool2(this);
|
|
170200
170281
|
});
|
|
170201
170282
|
await registerLazy(ToolNames.REPORT_FINDINGS, async () => {
|
|
@@ -170211,13 +170292,13 @@ var Config = class _Config {
|
|
|
170211
170292
|
}
|
|
170212
170293
|
if (!this.sdkMode && (supportsUserInteraction || options2?.forSubAgent)) {
|
|
170213
170294
|
await registerLazy(ToolNames.EXIT_PLAN_MODE, async () => {
|
|
170214
|
-
const { ExitPlanModeTool: ExitPlanModeTool2 } = await import("./exitPlanMode-
|
|
170295
|
+
const { ExitPlanModeTool: ExitPlanModeTool2 } = await import("./exitPlanMode-46FWANRT.js");
|
|
170215
170296
|
return new ExitPlanModeTool2(this);
|
|
170216
170297
|
});
|
|
170217
170298
|
}
|
|
170218
170299
|
if (!this.sdkMode && supportsUserInteraction) {
|
|
170219
170300
|
await registerLazy(ToolNames.ENTER_PLAN_MODE, async () => {
|
|
170220
|
-
const { EnterPlanModeTool } = await import("./enterPlanMode-
|
|
170301
|
+
const { EnterPlanModeTool } = await import("./enterPlanMode-HZIALG5T.js");
|
|
170221
170302
|
return new EnterPlanModeTool(this);
|
|
170222
170303
|
});
|
|
170223
170304
|
}
|
|
@@ -170231,7 +170312,7 @@ var Config = class _Config {
|
|
|
170231
170312
|
});
|
|
170232
170313
|
if (resolveInteractionMode(this) === "interactive" && !this.sdkMode && !this.getScreenReader() && !options2?.forSubAgent) {
|
|
170233
170314
|
await registerLazy(ToolNames.DISPLAY_IMAGE, async () => {
|
|
170234
|
-
const { DisplayImageTool } = await import("./display-image-
|
|
170315
|
+
const { DisplayImageTool } = await import("./display-image-Y35PSJXX.js");
|
|
170235
170316
|
return new DisplayImageTool(this);
|
|
170236
170317
|
});
|
|
170237
170318
|
}
|
|
@@ -170284,7 +170365,7 @@ var Config = class _Config {
|
|
|
170284
170365
|
}
|
|
170285
170366
|
if (this.isAgentTeamEnabled()) {
|
|
170286
170367
|
await registerLazy(ToolNames.TEAM_CREATE, async () => {
|
|
170287
|
-
const { TeamCreateTool } = await import("./team-create-
|
|
170368
|
+
const { TeamCreateTool } = await import("./team-create-O66TUESF.js");
|
|
170288
170369
|
return new TeamCreateTool(this);
|
|
170289
170370
|
});
|
|
170290
170371
|
await registerLazy(ToolNames.TEAM_DELETE, async () => {
|
|
@@ -170292,21 +170373,21 @@ var Config = class _Config {
|
|
|
170292
170373
|
return new TeamDeleteTool(this);
|
|
170293
170374
|
});
|
|
170294
170375
|
await registerLazy(ToolNames.TEAM_PLAN_APPROVAL, async () => {
|
|
170295
|
-
const { TeamPlanApprovalTool } = await import("./team-plan-approval-
|
|
170376
|
+
const { TeamPlanApprovalTool } = await import("./team-plan-approval-667K2B3B.js");
|
|
170296
170377
|
return new TeamPlanApprovalTool(this);
|
|
170297
170378
|
});
|
|
170298
170379
|
if (!options2?.forSubAgent) {
|
|
170299
170380
|
await registerLazy(ToolNames.REQUEST_SHUTDOWN, async () => {
|
|
170300
|
-
const { RequestShutdownTool } = await import("./request-shutdown-
|
|
170381
|
+
const { RequestShutdownTool } = await import("./request-shutdown-4LPYJZTK.js");
|
|
170301
170382
|
return new RequestShutdownTool(this);
|
|
170302
170383
|
});
|
|
170303
170384
|
}
|
|
170304
170385
|
await registerLazy(ToolNames.TASK_CREATE, async () => {
|
|
170305
|
-
const { TaskCreateTool } = await import("./task-create-
|
|
170386
|
+
const { TaskCreateTool } = await import("./task-create-W3R3G7FM.js");
|
|
170306
170387
|
return new TaskCreateTool(this);
|
|
170307
170388
|
});
|
|
170308
170389
|
await registerLazy(ToolNames.TASK_UPDATE, async () => {
|
|
170309
|
-
const { TaskUpdateTool } = await import("./task-update-
|
|
170390
|
+
const { TaskUpdateTool } = await import("./task-update-JQOO6HUS.js");
|
|
170310
170391
|
return new TaskUpdateTool(this);
|
|
170311
170392
|
});
|
|
170312
170393
|
await registerLazy(ToolNames.TASK_LIST, async () => {
|
|
@@ -170388,7 +170469,7 @@ var Config = class _Config {
|
|
|
170388
170469
|
}
|
|
170389
170470
|
}
|
|
170390
170471
|
await registerLazy(ToolNames.MONITOR, async () => {
|
|
170391
|
-
const { MonitorTool } = await import("./monitor-
|
|
170472
|
+
const { MonitorTool } = await import("./monitor-4DJ5VKXK.js");
|
|
170392
170473
|
return new MonitorTool(this);
|
|
170393
170474
|
});
|
|
170394
170475
|
if (this.pendingMcpBudgetCallback) {
|
|
@@ -171252,6 +171333,7 @@ export {
|
|
|
171252
171333
|
ToolMode,
|
|
171253
171334
|
isCodeModeToolCallAllowed,
|
|
171254
171335
|
getOptInToolNotFoundMessage,
|
|
171336
|
+
TRUNCATION_EDIT_REJECTION,
|
|
171255
171337
|
convertToFunctionResponse,
|
|
171256
171338
|
convertToFunctionErrorResponse,
|
|
171257
171339
|
isToolCallConcurrencySafe,
|