@hostclubeos/miraos 0.0.7-beta → 0.0.8-beta
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/chunks/{MaxSizedBox-CBUPHLMW.js → MaxSizedBox-YR2SA5XW.js} +1 -1
- package/chunks/{StandaloneSessionPicker-EXZJQKTK.js → StandaloneSessionPicker-VEXSGLU4.js} +1 -1
- package/chunks/{acp-subagent-executor-BMIXP52W.js → acp-subagent-executor-ATOLWCVC.js} +1 -1
- package/chunks/{acpAgent-JC4KGTLW.js → acpAgent-DN46FTZ2.js} +3 -3
- package/chunks/{advisor-5RUG3VFZ.js → advisor-6MI5JQGC.js} +1 -1
- package/chunks/{agent-SGQ7AEZI.js → agent-6HPQ4XCT.js} +1 -1
- package/chunks/{agent-headless-ZGCZ2DA7.js → agent-headless-KXAJBOPG.js} +1 -1
- package/chunks/{agent-host-client-HY5GPSHM.js → agent-host-client-NOZRE2ZR.js} +1 -1
- package/chunks/{agent-host-connections-KGTBS37X.js → agent-host-connections-6FOSHEWD.js} +1 -1
- package/chunks/{autofix-pr-E62FC67X.js → autofix-pr-IMJA2KZF.js} +1 -1
- package/chunks/{batch-OUC6FGCQ.js → batch-L5VJ4XGP.js} +1 -1
- package/chunks/{bridge-FLEIBB5V.js → bridge-CCRTJSIM.js} +1 -1
- package/chunks/{channel-settings-store-QG6HREVH.js → channel-settings-store-SB7BP6XT.js} +1 -1
- package/chunks/{chunk-BSLIVO6O.js → chunk-2DPE27WB.js} +1 -1
- package/chunks/{chunk-JJDF5FHA.js → chunk-32DLSPV5.js} +1 -1
- package/chunks/{chunk-2PB6TEZU.js → chunk-3NA5O4QO.js} +1 -1
- package/chunks/{chunk-RBA3TP7L.js → chunk-3VKLOQ2P.js} +1 -1
- package/chunks/{chunk-3KFLO5W3.js → chunk-4C5BOFDC.js} +1 -1
- package/chunks/{chunk-TFITRCIC.js → chunk-4RRQ7CPF.js} +1 -1
- package/chunks/{chunk-YN6WXB6B.js → chunk-5AJKMBPM.js} +1 -1
- package/chunks/{chunk-SCHCTQCG.js → chunk-5BWVS5D3.js} +1 -1
- package/chunks/{chunk-5RYDKYIR.js → chunk-5SX4UPMN.js} +1 -1
- package/chunks/{chunk-FK5L2WVV.js → chunk-5YULNQF3.js} +1 -1
- package/chunks/{chunk-T3A53XMM.js → chunk-66N3SLXJ.js} +1 -1
- package/chunks/{chunk-4WYKHP7Q.js → chunk-6AAVML2M.js} +1 -1
- package/chunks/{chunk-N7WQH6L4.js → chunk-6STDVRH5.js} +2 -2
- package/chunks/{chunk-VRAHMOQQ.js → chunk-6TNX3S5H.js} +2 -2
- package/chunks/{chunk-ZOWMHZWO.js → chunk-77GGGTWS.js} +1 -1
- package/chunks/{chunk-KNW2OD46.js → chunk-7DJYSBNJ.js} +1 -1
- package/chunks/{chunk-MYS5NQXO.js → chunk-7EEWU6XO.js} +1 -1
- package/chunks/{chunk-VJUTDS6C.js → chunk-7GU7HKIT.js} +1 -1
- package/chunks/{chunk-UWMLSAQY.js → chunk-7HO5DQ6V.js} +1 -1
- package/chunks/{chunk-SHKSVOTG.js → chunk-7L4MR4QM.js} +1 -1
- package/chunks/{chunk-RWFOQXPU.js → chunk-7Q6RNE77.js} +1 -1
- package/chunks/{chunk-FC7SJIAS.js → chunk-AHV4IMUX.js} +1 -1
- package/chunks/{chunk-2QYFSBJY.js → chunk-ARILWFTZ.js} +1 -1
- package/chunks/{chunk-TXL535SJ.js → chunk-BWFZEDYG.js} +1 -1
- package/chunks/chunk-BWLMXGA2.js +13 -0
- package/chunks/{chunk-GN7ODRDE.js → chunk-C3ZJUOTJ.js} +1 -1
- package/chunks/{chunk-WJLHLFIR.js → chunk-CEVKKM22.js} +1 -1
- package/chunks/{chunk-K7KY7FIB.js → chunk-CJLKKIUW.js} +1 -1
- package/chunks/{chunk-HASJX2YS.js → chunk-CLLQQMTU.js} +1 -1
- package/chunks/{chunk-7F5IYTVE.js → chunk-CNGBG3X5.js} +1 -1
- package/chunks/{chunk-RNPVWQ3V.js → chunk-CNZS2RPX.js} +1 -1
- package/chunks/{chunk-WC72OWF2.js → chunk-D4WMUCSK.js} +2 -2
- package/chunks/{chunk-W2ZVZ6LS.js → chunk-DNCXESHL.js} +1 -1
- package/chunks/{chunk-HSN5QUS7.js → chunk-DNXQKR5E.js} +1 -1
- package/chunks/{chunk-H65ZVST6.js → chunk-DTNW2CM3.js} +1 -1
- package/chunks/{chunk-3NB3FFLR.js → chunk-DTRSC73M.js} +3 -3
- package/chunks/{chunk-2VW4HXVF.js → chunk-E743PFSX.js} +1 -1
- package/chunks/{chunk-P5543CFV.js → chunk-EHM4KL2U.js} +1 -1
- package/chunks/{chunk-PQOQONLN.js → chunk-FC5IAX56.js} +1 -1
- package/chunks/{chunk-3MBYQYPC.js → chunk-G3COGFSZ.js} +1 -1
- package/chunks/{chunk-67PM7M5R.js → chunk-G4OSEVOV.js} +2 -2
- package/chunks/{chunk-SOCXRMZM.js → chunk-G7D42XGP.js} +2 -2
- package/chunks/{chunk-IF3SWUYT.js → chunk-GBEQD55S.js} +1 -1
- package/chunks/{chunk-EW3EVEYN.js → chunk-GM6YF6IS.js} +1 -1
- package/chunks/{chunk-UOYXBAN7.js → chunk-GS4FZF6I.js} +1 -1
- package/chunks/{chunk-2ZWVSKPK.js → chunk-HCCONFJY.js} +1 -1
- package/chunks/{chunk-GY4ID3EB.js → chunk-HCKF74X7.js} +1 -1
- package/chunks/{chunk-6RDYPRV6.js → chunk-IJH5HZTB.js} +1 -1
- package/chunks/{chunk-MMGNOY3U.js → chunk-IJIQDCNJ.js} +5 -5
- package/chunks/{chunk-TLZM3DMY.js → chunk-IK5TB2CB.js} +1 -1
- package/chunks/{chunk-JDABSS6M.js → chunk-IWIGJDPL.js} +1 -1
- package/chunks/{chunk-VBJV7T47.js → chunk-JCWNB45W.js} +1 -1
- package/chunks/{chunk-GTQULDIL.js → chunk-JHGMLUAL.js} +1 -1
- package/chunks/{chunk-23543L6E.js → chunk-JRIVHFCG.js} +1 -1
- package/chunks/{chunk-7SAR6NXA.js → chunk-JT5EN5MI.js} +1 -1
- package/chunks/{chunk-JDHMSERR.js → chunk-K2PGOAJP.js} +1 -1
- package/chunks/{chunk-O6Z3KO6R.js → chunk-K3RWL2YH.js} +1 -1
- package/chunks/{chunk-7W5DOBKY.js → chunk-KZZ5ZQHX.js} +1 -1
- package/chunks/{chunk-H2QXWIRZ.js → chunk-LRXYXGMT.js} +1 -1
- package/chunks/{chunk-YVN32EUM.js → chunk-LTXZHHNK.js} +1 -1
- package/chunks/{chunk-TU5QHOJC.js → chunk-M3IQE5G4.js} +1 -1
- package/chunks/{chunk-RRMTSVGU.js → chunk-MCHMWRNO.js} +1 -1
- package/chunks/{chunk-JJQJFMPL.js → chunk-MCY3IS2E.js} +1 -1
- package/chunks/{chunk-WCLAVBNR.js → chunk-MOXZO5PM.js} +1 -1
- package/chunks/{chunk-TWJ4XBED.js → chunk-MV7LX23I.js} +1 -1
- package/chunks/{chunk-66DZADDA.js → chunk-MXFS555I.js} +1 -1
- package/chunks/{chunk-USR2Y7B3.js → chunk-NNYAXFFN.js} +1 -1
- package/chunks/{chunk-NGH27AWP.js → chunk-NUDHRTIM.js} +1 -1
- package/chunks/{chunk-G35E5UB3.js → chunk-NYGJ53Y7.js} +1 -1
- package/chunks/chunk-OHOG4HSN.js +31 -0
- package/chunks/{chunk-JQOLNQQN.js → chunk-OPFBBIAQ.js} +1 -1
- package/chunks/{chunk-KYK53GFP.js → chunk-OXG4BLFF.js} +1 -1
- package/chunks/{chunk-GLQWA4W2.js → chunk-PGKVSOWW.js} +1 -1
- package/chunks/{chunk-PFKTTUGS.js → chunk-POMEWCFJ.js} +6 -6
- package/chunks/{chunk-6T25QVBX.js → chunk-Q4NEZZ6L.js} +1 -1
- package/chunks/{chunk-Z4JY3HGO.js → chunk-QCSGHQ2P.js} +1 -1
- package/chunks/{chunk-VF2UWWI2.js → chunk-QWNTORRT.js} +1 -1
- package/chunks/{chunk-3GJ56V2J.js → chunk-QZNCYZ7H.js} +1 -1
- package/chunks/{chunk-T5PDEAU5.js → chunk-S5NTCBEI.js} +1 -1
- package/chunks/{chunk-AIAYQAPA.js → chunk-SK5C26Y6.js} +1 -1
- package/chunks/{chunk-ATVRF62A.js → chunk-SMO4PEHK.js} +1 -1
- package/chunks/{chunk-AE6E2YKY.js → chunk-SPCIIUIG.js} +1 -1
- package/chunks/{chunk-CUY6CVSL.js → chunk-SVNSF5ZH.js} +1 -1
- package/chunks/{chunk-K7VOBDFT.js → chunk-UC455ZS7.js} +1 -1
- package/chunks/{chunk-J773THNP.js → chunk-UZAFPEVN.js} +1 -1
- package/chunks/{chunk-PVHBBTAU.js → chunk-V3ASW57P.js} +1 -1
- package/chunks/{chunk-4MGTY3CJ.js → chunk-VAFRD2H4.js} +1 -1
- package/chunks/{chunk-PSSJDUZB.js → chunk-VOCM2M4K.js} +1 -1
- package/chunks/{chunk-W6IOHGWW.js → chunk-VOIC5ZW2.js} +1 -1
- package/chunks/{chunk-V5Z6OEKJ.js → chunk-W4M6JXZB.js} +1 -1
- package/chunks/{chunk-4KIFAVR2.js → chunk-WJXADORN.js} +1 -1
- package/chunks/{chunk-P42MFWO2.js → chunk-WN6Z3J27.js} +1 -1
- package/chunks/{chunk-FS67DOZQ.js → chunk-WOMJLK3E.js} +1 -1
- package/chunks/{chunk-NVD63O5H.js → chunk-WSXRO2YB.js} +1 -1
- package/chunks/{chunk-DF6TBGS2.js → chunk-WUZ53TKN.js} +1 -1
- package/chunks/{chunk-724YPZRX.js → chunk-WW43VZ6O.js} +1 -1
- package/chunks/{chunk-PFECH6U6.js → chunk-WZAUO3LV.js} +1 -1
- package/chunks/{chunk-EF3HUB7S.js → chunk-XGPGIMZK.js} +1 -1
- package/chunks/{chunk-PGKFDR73.js → chunk-XJKDC7OE.js} +1 -1
- package/chunks/{chunk-HZ4L4MDM.js → chunk-XNP5JXCS.js} +1 -1
- package/chunks/{chunk-4346FNTB.js → chunk-YELFN6AG.js} +1 -1
- package/chunks/{chunk-WZTO3EYG.js → chunk-YFXKRGHT.js} +1 -1
- package/chunks/{chunk-E6LRCLLE.js → chunk-YOBM4ZFW.js} +2 -2
- package/chunks/{chunk-7VP4KALB.js → chunk-ZJOVJLIH.js} +1 -1
- package/chunks/{chunk-KK6SQPYG.js → chunk-ZQZK267X.js} +1 -1
- package/chunks/{codex-subagent-executor-UCDGQFTR.js → codex-subagent-executor-TPO62HU5.js} +1 -1
- package/chunks/{config-utils-Z6F4DVLG.js → config-utils-6GWIYBUK.js} +1 -1
- package/chunks/{contextCommand-HMVZT56Y.js → contextCommand-WWVGDTOL.js} +1 -1
- package/chunks/{core-runtime-AV7CJXOL.js → core-runtime-ASQR33TV.js} +1 -1
- package/chunks/{create-sub-session-NNKVHZKT.js → create-sub-session-XY2FXSPE.js} +1 -1
- package/chunks/{cron-create-HWZDFVPA.js → cron-create-HY3TLNV2.js} +1 -1
- package/chunks/{daemon-git-worktree-guard-Q3C45X7T.js → daemon-git-worktree-guard-ILW3NJJC.js} +1 -1
- package/chunks/{daemon-status-provider-UX574XBB.js → daemon-status-provider-JVOGEKWY.js} +1 -1
- package/chunks/{daemon-trust-policy-6D4KJANB.js → daemon-trust-policy-XXRBG4JE.js} +1 -1
- package/chunks/{daemon-trust-policy-monitor-BZ46W4IA.js → daemon-trust-policy-monitor-UL73ADOZ.js} +1 -1
- package/chunks/{deferred-core-runtime-YC5XIWEI.js → deferred-core-runtime-PT747R7S.js} +1 -1
- package/chunks/{edit-LOWDEKPX.js → edit-4PJ3NPFA.js} +1 -1
- package/chunks/{enterPlanMode-NGSATDRH.js → enterPlanMode-KQ62QN7S.js} +1 -1
- package/chunks/{environment-CVIB5DW4.js → environment-H4HADXGA.js} +1 -1
- package/chunks/{errors-USKSVZFO.js → errors-OSD4ZZGR.js} +1 -1
- package/chunks/{execution-tool-QSJLRU5N.js → execution-tool-PHHGLKWC.js} +1 -1
- package/chunks/{execution-worker-TQEIC4AJ.js → execution-worker-MH3CV66T.js} +1 -1
- package/chunks/{exitPlanMode-AW2HOTIK.js → exitPlanMode-OU5YP4XN.js} +1 -1
- package/chunks/{fast-path-OQWHYDXC.js → fast-path-WKOMHBWN.js} +1 -1
- package/chunks/{glob-7U6FQSWZ.js → glob-FYCOEQPM.js} +1 -1
- package/chunks/{goal-tools-5ZB6GPCJ.js → goal-tools-T27GSDNM.js} +1 -1
- package/chunks/{handleAutoUpdate-MLUFTWFP.js → handleAutoUpdate-XXCPJLKO.js} +1 -1
- package/chunks/{i18n-QAPQLOC3.js → i18n-3B2PRJM2.js} +1 -1
- package/chunks/{initializer-B27IZ7K4.js → initializer-HSFVDRTR.js} +1 -1
- package/chunks/{installationInfo-SAMHABWV.js → installationInfo-SJJ2DYZ6.js} +1 -1
- package/chunks/{interactive-mod-session-7LQ5CYUR.js → interactive-mod-session-BWY2JRSQ.js} +1 -1
- package/chunks/{list-TDMJQDQO.js → list-TGCI3MBM.js} +1 -1
- package/chunks/{llm-R2RFT63S.js → llm-FYR73GKD.js} +4 -4
- package/chunks/{loadedSettingsAdapter-ZQK5KMEW.js → loadedSettingsAdapter-DUDCINQL.js} +1 -1
- package/chunks/{local-AONDQYFL.js → local-7PEOBJKE.js} +1 -1
- package/chunks/{local-execution-environment-WJVCE26F.js → local-execution-environment-Q4OOA7BL.js} +1 -1
- package/chunks/{loggingContentGenerator-ALSG42YA.js → loggingContentGenerator-VVESQOIQ.js} +1 -1
- package/chunks/{loop-wakeup-LFU4LDJM.js → loop-wakeup-M2XLAAKZ.js} +1 -1
- package/chunks/{manage-memory-FBL6CHX2.js → manage-memory-FRVWHM2C.js} +1 -1
- package/chunks/{managed-execution-engine-FX7FDAWW.js → managed-execution-engine-AVIM6AQU.js} +1 -1
- package/chunks/{managed-local-serve-DRNC6PTL.js → managed-local-serve-GIXHGFIU.js} +1 -1
- package/chunks/{managed-npm-update-2MKV7UOI.js → managed-npm-update-3QSXGSHW.js} +1 -1
- package/chunks/{managed-runtime-attestation-worker-DBAHM5MN.js → managed-runtime-attestation-worker-ML4TCRAW.js} +1 -1
- package/chunks/{managed-runtime-bootstrap-K3GRKDNQ.js → managed-runtime-bootstrap-JWJFGLBM.js} +1 -1
- package/chunks/{managed-runtime-session-worker-YN4KML7A.js → managed-runtime-session-worker-4ISKROGZ.js} +1 -1
- package/chunks/{managed-runtime-ssh-worker-AVNBWFYC.js → managed-runtime-ssh-worker-C44V2CPM.js} +1 -1
- package/chunks/{managed-session-authority-MFEINLXC.js → managed-session-authority-UJ3FSKMD.js} +1 -1
- package/chunks/{mcp-TS5PX5FY.js → mcp-BWCLHHZ6.js} +1 -1
- package/chunks/{memory-JVT5LAWJ.js → memory-5XQ2JVNS.js} +1 -1
- package/chunks/{model-call-collection-TNBMD3YL.js → model-call-collection-DXK2SIDR.js} +1 -1
- package/chunks/{model-configuration-6KTQQTMO.js → model-configuration-6OLZS4C3.js} +1 -1
- package/chunks/{modelConfigUtils-LCZZ3EQU.js → modelConfigUtils-5S5PC2RR.js} +1 -1
- package/chunks/{monitor-KCCNIKLE.js → monitor-6GKCWWUI.js} +1 -1
- package/chunks/{nonInteractiveCli-2GHQYHGW.js → nonInteractiveCli-ROHAB2H7.js} +1 -1
- package/chunks/{nonInteractiveToolExecutor-R5CTTWKD.js → nonInteractiveToolExecutor-OWCCSC5Y.js} +1 -1
- package/chunks/{notebook-edit-KIWE2XOA.js → notebook-edit-WNRQ3QJZ.js} +1 -1
- package/chunks/{omni-IFTMWBMU.js → omni-DJ5RGNKA.js} +1 -1
- package/chunks/{openaiContentGenerator-XP3VPU6C.js → openaiContentGenerator-237NVB63.js} +1 -1
- package/chunks/{openaiResponsesContentGenerator-ZJ6C22EA.js → openaiResponsesContentGenerator-J33TCZKQ.js} +1 -1
- package/chunks/{pidfile-42P24JIA.js → pidfile-F7IYTFLX.js} +1 -1
- package/chunks/{processUtils-I2XOO5U2.js → processUtils-C6CSXITS.js} +1 -1
- package/chunks/{prompt-terminal-ledger-7EW46VQ4.js → prompt-terminal-ledger-ZGYWPFJF.js} +1 -1
- package/chunks/{reactive-degrade-O4JO7MOX.js → reactive-degrade-QKXPZQ3W.js} +1 -1
- package/chunks/{read-file-VGC4O7F2.js → read-file-GSNUMHRE.js} +1 -1
- package/chunks/{resumeHistoryUtils-QMVIHQRW.js → resumeHistoryUtils-4GUCHQGU.js} +1 -1
- package/chunks/{review-NDK2B7XI.js → review-M2QGZFIO.js} +1 -1
- package/chunks/{ripGrep-JY4PZABK.js → ripGrep-X4JTJZC6.js} +1 -1
- package/chunks/{run-qwen-serve-P5X5OZUH.js → run-qwen-serve-4WW37RL2.js} +1 -1
- package/chunks/{runtime-OL7B72CH.js → runtime-EFHJ6REE.js} +1 -1
- package/chunks/{sandboxConfig-EJTMWZHD.js → sandboxConfig-5XMIRDS4.js} +1 -1
- package/chunks/{scheduled-tasks-XQSZWZXG.js → scheduled-tasks-ZCYM5YQJ.js} +1 -1
- package/chunks/{scheduler-3TIRZEVB.js → scheduler-5UAKCD5Z.js} +1 -1
- package/chunks/{search-memory-P5KOTUVV.js → search-memory-KKPYK33Q.js} +1 -1
- package/chunks/{send-message-KFSKFXLX.js → send-message-KOZRSWXO.js} +1 -1
- package/chunks/{serve-UHEH433U.js → serve-5HSHEBMT.js} +1 -1
- package/chunks/{server-ARYDETSZ.js → server-MC6KHP3G.js} +3 -3
- package/chunks/{session-HKWGCZF2.js → session-Z5HFG4IQ.js} +1 -1
- package/chunks/{session-attachments-root-O3YQ7HWD.js → session-attachments-root-K2E5ETD4.js} +1 -1
- package/chunks/{session-execution-engine-selector-LZBHS3UO.js → session-execution-engine-selector-NZA6CAJB.js} +1 -1
- package/chunks/{session-pr-refresh-L5Z5WCXS.js → session-pr-refresh-OYJ56U3L.js} +1 -1
- package/chunks/{sessionService-MMPZUN5X.js → sessionService-BC56MX3G.js} +1 -1
- package/chunks/{settings-7PYHXPN4.js → settings-OHB77GXH.js} +1 -1
- package/chunks/{shell-E6QLKRVU.js → shell-VKSH7JVL.js} +1 -1
- package/chunks/{skill-55IZUUM5.js → skill-HQ4C2C3X.js} +1 -1
- package/chunks/{skill-settings-A2M5BPH7.js → skill-settings-6WPQFE3V.js} +1 -1
- package/chunks/{spawnChannel-KWU26CB7.js → spawnChannel-MXKVLS24.js} +1 -1
- package/chunks/{standalone-update-32WYZ3BJ.js → standalone-update-NZP3OAZZ.js} +1 -1
- package/chunks/{start-opentui-ui-S7A4FBGP.js → start-opentui-ui-25YQQD3O.js} +1 -1
- package/chunks/{startInteractiveUI-DY6DWFW7.js → startInteractiveUI-DWQJNIIV.js} +1 -1
- package/chunks/{team-create-ARICYIQB.js → team-create-RSD7IADX.js} +1 -1
- package/chunks/{team-plan-approval-JPRE6Q3R.js → team-plan-approval-XAOKZ6BR.js} +1 -1
- package/chunks/{terminal-image-renderer-HVIZ2VNE.js → terminal-image-renderer-P5AGEOYS.js} +1 -1
- package/chunks/{theme-manager-UEPLIBUP.js → theme-manager-YBKJYPVQ.js} +1 -1
- package/chunks/{tool-call-EFJKXI3Z.js → tool-call-HJCSPR6N.js} +1 -1
- package/chunks/{tool-result-media-LMIYNXSD.js → tool-result-media-SPWVV3OS.js} +1 -1
- package/chunks/{tool-search-D7HQTRQG.js → tool-search-YWCOODLL.js} +1 -1
- package/chunks/{total-session-admission-67QMR44O.js → total-session-admission-HKACVEI2.js} +1 -1
- package/chunks/{trustedFolders-HARYVS3F.js → trustedFolders-BXLZULWO.js} +1 -1
- package/chunks/{update-relaunch-NVNPOK5J.js → update-relaunch-CBJVLG6S.js} +1 -1
- package/chunks/{updateCheck-7NMXUCTN.js → updateCheck-2J6RY3L3.js} +1 -1
- package/chunks/{upload-config-W2SICJ32.js → upload-config-EN5XYA3V.js} +1 -1
- package/chunks/{useAutoAcceptIndicator-ELMIP4TJ.js → useAutoAcceptIndicator-LF7VIUER.js} +1 -1
- package/chunks/{validateNonInterActiveAuth-P2F6MYO6.js → validateNonInterActiveAuth-63TR5JOG.js} +1 -1
- package/chunks/{version-2ZFKVIIW.js → version-F22SKNME.js} +1 -1
- package/chunks/{web-fetch-537RS6IX.js → web-fetch-ULH7TOLR.js} +1 -1
- package/chunks/{web-search-O27MYFSW.js → web-search-C3ORWAWR.js} +1 -1
- package/chunks/{workflow-6QF4RMYM.js → workflow-4ATPGZ5N.js} +1 -1
- package/chunks/{workflow-ancestor-trust-CABLU3VV.js → workflow-ancestor-trust-AJ27EBZD.js} +1 -1
- package/chunks/{workspace-agents-5WP3PY7W.js → workspace-agents-VLAJGYJF.js} +1 -1
- package/chunks/{workspace-providers-status-7G2EJJEO.js → workspace-providers-status-TFAXNJ6L.js} +1 -1
- package/chunks/{workspace-recovery-worker-ICCIDEWU.js → workspace-recovery-worker-GKYYJPXV.js} +1 -1
- package/chunks/{workspace-registration-store-WHXMNQQQ.js → workspace-registration-store-ANR3STGQ.js} +1 -1
- package/chunks/{workspace-registry-NXBODLYH.js → workspace-registry-OVHNLVBM.js} +1 -1
- package/chunks/{workspace-runtime-coordinator-CJXS273B.js → workspace-runtime-coordinator-IEN2G7JP.js} +1 -1
- package/chunks/{workspace-service-HUDE2RXN.js → workspace-service-NISFZTBE.js} +1 -1
- package/chunks/{workspace-skills-status-FJC6U62F.js → workspace-skills-status-QRF5ZXMT.js} +1 -1
- package/chunks/{workspace-trust-reconciler-ZIQ3A5ZB.js → workspace-trust-reconciler-X3XMX2GJ.js} +1 -1
- package/chunks/{write-file-652YGG7I.js → write-file-SF42KZAH.js} +1 -1
- package/chunks/{zoom-image-YEH4O74G.js → zoom-image-4UMB6G3P.js} +1 -1
- package/cli.js +2 -2
- package/execution-worker.js +1 -1
- package/package.json +2 -2
- package/chunks/chunk-56PVVXUG.js +0 -8
- package/chunks/chunk-AJ75BPTA.js +0 -31
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// Force strict mode and setup for ESM
|
|
2
2
|
"use strict";
|
|
3
|
-
import{getPackageJson}from"./chunk-6KMPLONS.js";import{init_esbuild_shims}from"./chunk-VKDAXTCZ.js";import{__name}from"./chunk-KBWJGX7I.js";init_esbuild_shims();async function getCliVersion(){const pkgJson=await getPackageJson();return"0.0.
|
|
3
|
+
import{getPackageJson}from"./chunk-6KMPLONS.js";import{init_esbuild_shims}from"./chunk-VKDAXTCZ.js";import{__name}from"./chunk-KBWJGX7I.js";init_esbuild_shims();async function getCliVersion(){const pkgJson=await getPackageJson();return"0.0.8-beta"}__name(getCliVersion,"getCliVersion");function formatVersionLabel(version){return/^\d/.test(version)?`v${version}`:version}__name(formatVersionLabel,"formatVersionLabel");export{getCliVersion,formatVersionLabel};
|
|
4
4
|
/**
|
|
5
5
|
* @license
|
|
6
6
|
* Copyright 2025 Google LLC
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// Force strict mode and setup for ESM
|
|
2
2
|
"use strict";
|
|
3
|
-
import{HOSTNAME_RE,isOwnerRepo,normalizeGhHostForUrl,normalizeSegment,shellQuotePath}from"./chunk-F2L3WXJO.js";import{GIT_TIMEOUT_MS,git,gitOpt,gitProbe,gitRaw,redirectedAncestor,refExists,releaseWorktree,repoRoot,sanitizedGitEnv}from"./chunk-
|
|
3
|
+
import{HOSTNAME_RE,isOwnerRepo,normalizeGhHostForUrl,normalizeSegment,shellQuotePath}from"./chunk-F2L3WXJO.js";import{GIT_TIMEOUT_MS,git,gitOpt,gitProbe,gitRaw,redirectedAncestor,refExists,releaseWorktree,repoRoot,sanitizedGitEnv}from"./chunk-MCHMWRNO.js";import{isWithinRoot}from"./chunk-IDXJIDME.js";import{atomicWriteFileSync}from"./chunk-2GF3E5MI.js";import{writeStderrLine,writeStdoutLine}from"./chunk-M4ECEHLX.js";import{init_esbuild_shims}from"./chunk-VKDAXTCZ.js";import{__name}from"./chunk-KBWJGX7I.js";init_esbuild_shims();import{stripVTControlCharacters}from"node:util";var ROUND_COMMANDS=new Set(["sync","snapshot","ci-log","push","reply","rerun"]);function nextStep(command,code){switch(code){case"busy":case"partial":return"retry";case"pr_closed":return command==="prepare"?"report":"stop";case"watched_elsewhere":if(command==="prepare")return"take_over";return ROUND_COMMANDS.has(command)?"end_task":"report";case"not_prepared":case"watch_stopped":case"task_replaced":return ROUND_COMMANDS.has(command)?"end_task":"report";case"worktree_dirty":if(command==="sync")return"discard";return command==="push"?"needs_human":"report";case"no_failed_job":return"rerun";case"no_background_fix":return"foreground";case"rerun_failed":case"push_failed":return"needs_human";case"plan_invalid":return"fix_plan";case"fix_in_flight":return"report";case"failed":if(command==="push"||command==="rerun")return"needs_human";return command==="reply"?"retry":"report";default:{const unknown=code;return unknown}}}__name(nextStep,"nextStep");var AutofixPrRefusal=class extends Error{constructor(code,message){super(message);this.code=code;this.name="AutofixPrRefusal"}static{__name(this,"AutofixPrRefusal")}};var MAX_REFUSAL_MESSAGE=8e3;var UNSAFE=/[\u0000-\u0008\u000b-\u001f\u007f-\u009f\u200b-\u200f\u2028-\u202e\u2066-\u2069\ufeff]/g;function refusalOf(command,error){const code=error instanceof AutofixPrRefusal?error.code:"failed";const whole=stripVTControlCharacters(error instanceof Error?error.message:String(error??"unknown error")).replace(UNSAFE,"");let message=whole;for(let half=MAX_REFUSAL_MESSAGE/2;JSON.stringify(message).length>MAX_REFUSAL_MESSAGE&&half>=1;half=Math.floor(half/2)){message=`${whole.slice(0,half)} \u2026 ${whole.slice(-half)}`}return{refused:code,next:nextStep(command,code),message}}__name(refusalOf,"refusalOf");function withRefusals(command){const name=String(command.command).split(" ")[0];return{...command,handler:__name(async argv=>{try{await command.handler(argv)}catch(error){if(!(error instanceof AutofixPrRefusal)&&error instanceof Error){const frames=(error.stack??"").split("\n").filter(line=>/^\s+at /.test(line));if(frames.length>0)writeStderrLine(frames.join("\n"))}writeStderrLine(JSON.stringify(refusalOf(name,error)));process.exitCode=1}},"handler")}}__name(withRefusals,"withRefusals");init_esbuild_shims();import{lstatSync as lstatSync2,readFileSync as readFileSync2,renameSync as renameSync2,rmSync as rmSync2}from"node:fs";import{dirname as dirname2,join as join2}from"node:path";init_esbuild_shims();import{createHash,randomUUID}from"node:crypto";import{homedir}from"node:os";import{closeSync,constants,existsSync,fstatSync,linkSync,lstatSync,mkdirSync,openSync,readFileSync,readlinkSync,realpathSync,renameSync,rmSync,statSync,unlinkSync,writeFileSync}from"node:fs";import{basename,dirname,isAbsolute,join,resolve}from"node:path";var REPLY_MARKER="<!-- qwen-autofix-pr:v1 -->";var WATCH_INTERVALS=[1,2,5,10,15,30,60];var MAX_NEEDS_HUMAN=20;var MAX_INSTRUCTIONS_CHARS=2e3;function rerunFloors(state){return[...state.rerunChecks??[],...(state.heldChecks??[]).map(entry=>entry.replace(/^\d+:/,""))]}__name(rerunFloors,"rerunFloors");var MAX_PUSHES=10;var MAX_CHECK_FIX_PUSHES=3;var MAX_FAILING_CHECKS=100;function withKnownHead(state,head){if(state.pushedShas.includes(head)||!state.failingChecks?.length){return{...state,lastKnownHeadSha:head}}const lastPush=state.pushedShas.at(-1);return{...state,lastKnownHeadSha:head,failingChecks:state.failingChecks.map(record=>({identity:record.identity,check:record.check,head:record.head,pushes:0,...lastPush===void 0?{}:{lastPush}}))}}__name(withKnownHead,"withKnownHead");function checkAttemptKey(check,headSha,attempt){return`${check}@${headSha}@${attempt}`}__name(checkAttemptKey,"checkAttemptKey");function watchRoot(){if(process.env["QWEN_CODE_SERVE"]==="1"){return git("rev-parse","--show-toplevel")}return repoRoot()}__name(watchRoot,"watchRoot");function parseWorktreePaths(nulOutput){const paths=[];for(const field of nulOutput.split("\0")){if(field.startsWith("worktree ")){paths.push(field.slice("worktree ".length))}}return paths}__name(parseWorktreePaths,"parseWorktreePaths");function cloneWorktreeRoots(){const z=gitOpt("worktree","list","--porcelain","-z");if(z!==null)return parseWorktreePaths(z);return[repoRoot()]}__name(cloneWorktreeRoots,"cloneWorktreeRoots");function findWatchRoot(prNumber){assertPositiveInteger(prNumber,"PR number");let found=null;for(const root of vouchedScanRoots(cloneWorktreeRoots())){const paths=autofixPrPaths(root,prNumber);let hasState;try{hasState=isRegularFile(paths.statePath)}catch{continue}if(!hasState)continue;if(found===null||!existsSync(autofixPrPaths(found,prNumber).worktreePath)&&existsSync(paths.worktreePath)){found=root}}return found}__name(findWatchRoot,"findWatchRoot");function resolveWatchRoot(prNumber){return findWatchRoot(prNumber)??watchRoot()}__name(resolveWatchRoot,"resolveWatchRoot");function anchorStoreRoot(){return process.env["QWEN_AUTOFIX_ANCHOR_DIR"]??join(homedir(),".qwen","autofix-anchors")}__name(anchorStoreRoot,"anchorStoreRoot");function anchorPath(repository,prNumber,cloneRoot){assertPositiveInteger(prNumber,"PR number");const slug=[normalizeGhHostForUrl(repository.host).replace(/:/g,"@"),normalizeSegment(repository.owner),normalizeSegment(repository.repo)].join("+").replace(/[^a-z0-9._@+-]/g,"_");const cloneKey=createHash("sha256").update(resolve(cloneRoot)).digest("hex").slice(0,16);return join(anchorStoreRoot(),slug,`${cloneKey}-pr-${prNumber}.json`)}__name(anchorPath,"anchorPath");function writeAnchor(repository,prNumber,trustRoot){const path=anchorPath(repository,prNumber,trustRoot);mkdirSync(dirname(path),{recursive:true});const anchor={trustRoot,...repository};atomicWriteFileSync(path,`${JSON.stringify(anchor,null,2)}
|
|
4
4
|
`,NO_FOLLOW)}__name(writeAnchor,"writeAnchor");function readAnchor(repository,prNumber){const path=anchorPath(repository,prNumber,repoRoot());if(!isRegularFile(path))return null;try{const parsed=JSON.parse(readRegularFile(path)??"null");if(parsed&&typeof parsed.trustRoot==="string"&&typeof parsed.host==="string"&&typeof parsed.owner==="string"&&typeof parsed.repo==="string"){return parsed}return null}catch{return null}}__name(readAnchor,"readAnchor");function trustAnchor(state){const anchor=readAnchor(state,state.prNumber);if(!anchor){throw new Error(`PR #${state.prNumber} has no confirmed trust anchor; re-run \`qwen autofix-pr prepare ${state.prNumber}\` (or resume it) to confirm the clone before its worktree can be validated`)}return anchor.trustRoot}__name(trustAnchor,"trustAnchor");function vouchedScanRoots(roots){if(roots.length===0)return[];const main=roots[0];const notNested=roots.filter(r=>!roots.some(other=>other!==r&&isWithinRoot(r,join(other,".qwen","tmp"))));let genuineCommon;let genuineWorktrees;try{const dotGit=join(main,".git");genuineCommon=realpathSync(existsSync(dotGit)?dotGit:main);genuineWorktrees=realpathSync(join(genuineCommon,"worktrees"))}catch{return notNested.slice(0,1)}return notNested.filter(r=>r===main||vouchesForClone(r,genuineCommon,genuineWorktrees))}__name(vouchedScanRoots,"vouchedScanRoots");function vouchesForClone(root,genuineCommon,genuineWorktrees){const dotGit=join(root,".git");let st;try{st=lstatSync(dotGit)}catch{return false}if(st.isDirectory()){try{return realpathSync(dotGit)===genuineCommon}catch{return false}}if(!st.isFile())return false;let text;try{text=readFileSync(dotGit,"utf8")}catch{return false}if(!text.startsWith("gitdir: "))return false;const pointer=text.slice("gitdir: ".length).replace(/[\r\n]+$/,"");let entry;try{entry=realpathSync(isAbsolute(pointer)?pointer:join(root,pointer))}catch{return false}if(dirname(entry)!==genuineWorktrees)return false;let back;try{back=readFileSync(join(entry,"gitdir"),"utf8").replace(/[\r\n]+$/,"")}catch{return false}try{return realpathSync(isAbsolute(back)?back:join(entry,back))===realpathSync(dotGit)}catch{return false}}__name(vouchesForClone,"vouchesForClone");function assertPositiveInteger(value,what){if(!Number.isInteger(value)||value<1){throw new TypeError(`${what} must be a positive integer, got ${value}`)}}__name(assertPositiveInteger,"assertPositiveInteger");function statePaths(root,state){const paths=autofixPrPaths(root,state.prNumber);return state.inPlace?{...paths,worktreePath:state.worktreePath,branch:state.branch}:paths}__name(statePaths,"statePaths");function autofixPrPaths(root,prNumber){assertPositiveInteger(prNumber,"PR number");const tmp=join(root,".qwen","tmp");return{worktreePath:join(tmp,`autofix-pr-${prNumber}`),statePath:join(tmp,`autofix-pr-${prNumber}-state.json`),gatePath:join(tmp,`autofix-pr-${prNumber}-gate.json`),checkedPath:join(tmp,`autofix-pr-${prNumber}-gate.checked`),snapshotPath:join(tmp,`autofix-pr-${prNumber}-snapshot.json`),repliesPath:join(tmp,`autofix-pr-${prNumber}-replies.json`),lockPath:join(tmp,`autofix-pr-${prNumber}.lock`),instructionsPath:join(tmp,`autofix-pr-${prNumber}-instructions.txt`),fixPath:join(tmp,`autofix-pr-${prNumber}-fix.json`),branch:`qwen-autofix/pr-${prNumber}`,headRef:`refs/qwen-autofix/pr-${prNumber}/head`}}__name(autofixPrPaths,"autofixPrPaths");function isRegularFile(path){return lstatSync(path,{throwIfNoEntry:false})?.isFile()===true}__name(isRegularFile,"isRegularFile");function readRegularFile(path){let fd;try{fd=openSync(path,constants.O_RDONLY|(constants.O_NOFOLLOW??0)|(constants.O_NONBLOCK??0))}catch(err){if(err.code==="ENOENT")return null;throw err}try{if(!fstatSync(fd).isFile()){throw new Error(`${path} is not a regular file`)}return readFileSync(fd,"utf8")}finally{closeSync(fd)}}__name(readRegularFile,"readRegularFile");function readGateCursor(gatePath){if(lstatSync(gatePath,{throwIfNoEntry:false})===void 0){return null}if(!isRegularFile(gatePath)){throw new Error(`${gatePath} is not a regular file`)}const text=readRegularFile(gatePath);if(text===null)return null;const parsed=JSON.parse(text);if(parsed.version!==1){throw new Error(`unsupported autofix-pr gate cursor version in ${gatePath}: ${String(parsed.version)}`)}return{...parsed,reportedTruncated:parsed.reportedTruncated??[]}}__name(readGateCursor,"readGateCursor");function writeGateCursor(gatePath,cursor){atomicWriteFileSync(gatePath,`${JSON.stringify(cursor,null,2)}
|
|
5
5
|
`,{noFollow:true})}__name(writeGateCursor,"writeGateCursor");function sameRepository(a,b){return normalizeGhHostForUrl(a.host)===normalizeGhHostForUrl(b.host)&&normalizeSegment(a.owner)===normalizeSegment(b.owner)&&normalizeSegment(a.repo)===normalizeSegment(b.repo)}__name(sameRepository,"sameRepository");var SHA_RE=/^[0-9a-f]{40,64}$/;function isBranchName(name){return!(name===""||name==="@"||name.startsWith("-")||name.endsWith("/")||name.endsWith(".")||[...name].some(char=>char.charCodeAt(0)<=32||char==="\x7F")||/[~^:?*[\\]/.test(name)||name.includes("..")||name.includes("@{")||name.includes("//")||name.split("/").some(part=>part.startsWith(".")||part.endsWith(".lock")))}__name(isBranchName,"isBranchName");var SHELL_SPECIAL=/[;&|$`<>()'"{}!#]/;function isCommandSafeName(name){return!SHELL_SPECIAL.test(name)}__name(isCommandSafeName,"isCommandSafeName");function stringList(value){return Array.isArray(value)?value.filter(item=>typeof item==="string"):[]}__name(stringList,"stringList");var isStringList=__name(value=>Array.isArray(value)&&value.every(item=>typeof item==="string"),"isStringList");var isRunList=__name(value=>Array.isArray(value)&&value.every(item=>Number.isInteger(item)),"isRunList");function isPendingPost(value){const post=value;return typeof post==="object"&&post!==null&&(post.where==="summary"||Number.isInteger(post.where))&&isStringList(post.handled)&&typeof post.bodyHash==="string"&&typeof post.sha==="string"&&(post.needsHuman===void 0||isStringList(post.needsHuman))}__name(isPendingPost,"isPendingPost");function stateDefect(state){const word=__name(value=>typeof value==="string"&&value!==""&&!value.startsWith("-"),"word");if(!word(state.remote)||!isBranchName(state.remote)||!isCommandSafeName(state.remote)){return"remote"}if(!word(state.pushTarget))return"pushTarget";if(!word(state.headRefName)||!isBranchName(state.headRefName)){return"headRefName"}if(!word(state.baseRefName)||!isBranchName(state.baseRefName)||!isCommandSafeName(state.baseRefName)){return"baseRefName"}if(!isOwnerRepo(`${state.owner}/${state.repo}`))return"owner/repo";if(typeof state.host!=="string"||!HOSTNAME_RE.test(state.host)){return"host"}if(!Number.isInteger(state.prNumber)||state.prNumber<1){return"prNumber"}if(typeof state.lastKnownHeadSha!=="string"||!SHA_RE.test(state.lastKnownHeadSha)){return"lastKnownHeadSha"}if(!Array.isArray(state.pushedShas)||!state.pushedShas.every(sha=>typeof sha==="string"&&SHA_RE.test(sha))){return"pushedShas"}if(!isStringList(state.handledCommentIds))return"handledCommentIds";if(!isStringList(state.postedCommentIds))return"postedCommentIds";if(state.handledChecks!==void 0&&!isStringList(state.handledChecks)){return"handledChecks"}if(state.rerunChecks!==void 0&&!isStringList(state.rerunChecks)){return"rerunChecks"}if(state.deferredRuns!==void 0&&!isRunList(state.deferredRuns)){return"deferredRuns"}if(state.heldChecks!==void 0&&!isStringList(state.heldChecks)){return"heldChecks"}if(state.pendingPosts!==void 0&&!(Array.isArray(state.pendingPosts)&&state.pendingPosts.every(isPendingPost))){return"pendingPosts"}if(state.pushCount!==void 0&&!(Number.isInteger(state.pushCount)&&state.pushCount>=0)){return"pushCount"}if(state.watch!==void 0&&!isWatchOptions(state.watch)){return"watch"}if(state.needsHuman!==void 0&&!(Array.isArray(state.needsHuman)&&state.needsHuman.every(isNeedsHumanItem))){return"needsHuman"}if(state.reportedNeedsHuman!==void 0&&!(typeof state.reportedNeedsHuman==="object"&&state.reportedNeedsHuman!==null&&typeof state.reportedNeedsHuman.sha==="string"&&SHA_RE.test(state.reportedNeedsHuman.sha)&&isStringList(state.reportedNeedsHuman.texts))){return"reportedNeedsHuman"}if(state.preparedAt!==void 0&&typeof state.preparedAt!=="string"){return"preparedAt"}if(state.ended!==void 0&&!(typeof state.ended==="object"&&state.ended!==null&&typeof state.ended.at==="string"&&typeof state.ended.reason==="string")){return"ended"}if(state.failingChecks!==void 0&&!(Array.isArray(state.failingChecks)&&state.failingChecks.every(isFailingCheck))){return"failingChecks"}return null}__name(stateDefect,"stateDefect");function isFailingCheck(value){const check=value;return typeof check==="object"&&check!==null&&typeof check.identity==="string"&&typeof check.check==="string"&&typeof check.head==="string"&&Number.isInteger(check.pushes)&&check.pushes>=0&&SHA_RE.test(check.head)&&(check.lastPush===void 0||SHA_RE.test(check.lastPush))&&(check.unanswered===void 0||Array.isArray(check.unanswered)&&check.unanswered.every(entry=>typeof entry==="object"&&entry!==null&&typeof entry.sha==="string"&&SHA_RE.test(entry.sha)&&Number.isInteger(entry.pushes)&&entry.pushes>=0))}__name(isFailingCheck,"isFailingCheck");function isWatchOptions(value){const watch=value;return typeof watch==="object"&&watch!==null&&WATCH_INTERVALS.includes(watch.every)&&typeof watch.reply==="boolean"&&typeof watch.instructions==="string"&&watch.instructions.length<=MAX_INSTRUCTIONS_CHARS&&!/[\p{Cc}\p{Cf}\u2028\u2029]/u.test(watch.instructions)&&(watch.task===void 0||/^[0-9a-f]{12}$/.test(watch.task))}__name(isWatchOptions,"isWatchOptions");function isNeedsHumanItem(value){const item=value;return typeof item==="object"&&item!==null&&typeof item.sha==="string"&&typeof item.at==="string"&&typeof item.text==="string"}__name(isNeedsHumanItem,"isNeedsHumanItem");function readState(statePath){const entry=lstatSync(statePath,{throwIfNoEntry:false});if(entry===void 0)return null;if(!entry.isFile()){throw new Error(`${statePath} is not a regular file; \`qwen autofix-pr cleanup <pr> --force\` discards it.`)}let text;try{text=readRegularFile(statePath)}catch{throw new Error(`${statePath} is not a regular file; \`qwen autofix-pr cleanup <pr> --force\` discards it.`)}if(text===null)return null;const parsed=JSON.parse(text);if(parsed.version!==1){throw new Error(`unsupported autofix-pr state version in ${statePath}: ${String(parsed.version)}`)}const defect=stateDefect(parsed);if(defect){throw new Error(`${statePath} has an invalid ${defect}; run \`qwen autofix-pr cleanup ${String(parsed.prNumber)} --force\` and prepare the watch again.`)}const{watch,ended,needsHuman,reportedNeedsHuman,failingChecks}=parsed;return{...parsed,...watch?{watch:{every:watch.every,reply:watch.reply,instructions:watch.instructions,...watch.task!==void 0?{task:watch.task}:{}}}:{},...ended?{ended:{at:ended.at,reason:ended.reason}}:{},...needsHuman?{needsHuman:needsHuman.map(({sha,at,text:text2})=>({sha,at,text:text2}))}:{},...reportedNeedsHuman?{reportedNeedsHuman:{sha:reportedNeedsHuman.sha,texts:[...reportedNeedsHuman.texts]}}:{},...failingChecks?{failingChecks:failingChecks.map(({identity,check,head,pushes,lastPush,unanswered})=>({identity,check,head,pushes,...lastPush===void 0?{}:{lastPush},...unanswered===void 0?{}:{unanswered:unanswered.map(({sha,pushes:pushes2})=>({sha,pushes:pushes2}))}}))}:{}}}__name(readState,"readState");var NO_FOLLOW={noFollow:true};function writeState(statePath,state){atomicWriteFileSync(statePath,`${JSON.stringify(state,null,2)}
|
|
6
6
|
`,NO_FOLLOW)}__name(writeState,"writeState");function historyPath(paths,repository){const slug=[normalizeGhHostForUrl(repository.host).replace(/:/g,"@"),normalizeSegment(repository.owner),normalizeSegment(repository.repo)].join("+").replace(/[^a-z0-9._@+-]/g,"_");return join(dirname(paths.statePath),`${historyPrefix(paths)}${slug}.history.json`)}__name(historyPath,"historyPath");function historyPrefix(paths){return basename(paths.statePath).replace(/-state\.json$/,"-history-")}__name(historyPrefix,"historyPrefix");function readHistory(path){if(lstatSync(path,{throwIfNoEntry:false})===void 0)return null;if(!isRegularFile(path))throw new Error(`${path} is not a regular file`);const parsed=JSON.parse(readFileSync(path,"utf8"));if(parsed.version!==1){throw new Error(`unsupported autofix-pr history version in ${path}: ${String(parsed.version)}`)}return{...parsed,handledCommentIds:stringList(parsed.handledCommentIds),postedCommentIds:stringList(parsed.postedCommentIds),handledChecks:stringList(parsed.handledChecks),rerunChecks:stringList(parsed.rerunChecks),handledConflictSha:typeof parsed.handledConflictSha==="string"&&SHA_RE.test(parsed.handledConflictSha)?parsed.handledConflictSha:null,pendingPosts:Array.isArray(parsed.pendingPosts)?parsed.pendingPosts.filter(isPendingPost):[],deferredRuns:Array.isArray(parsed.deferredRuns)?parsed.deferredRuns.filter(run=>Number.isInteger(run)):[],heldChecks:stringList(parsed.heldChecks)}}__name(readHistory,"readHistory");function keepHistory(paths,state){const path=historyPath(paths,state);let earlier=null;try{earlier=readHistory(path)}catch{}if(earlier&&!sameRepository(earlier,state))earlier=null;const union=__name((a,b)=>[...new Set([...stringList(a),...stringList(b)])],"union");const history={version:1,host:state.host,owner:state.owner,repo:state.repo,prNumber:state.prNumber,handledCommentIds:union(earlier?.handledCommentIds,state.handledCommentIds),postedCommentIds:union(earlier?.postedCommentIds,state.postedCommentIds),handledChecks:union(earlier?.handledChecks,state.handledChecks),rerunChecks:union(earlier?.rerunChecks,state.rerunChecks),handledConflictSha:state.handledConflictSha??earlier?.handledConflictSha??null,pendingPosts:state.pendingPosts??earlier?.pendingPosts??[],deferredRuns:state.deferredRuns??earlier?.deferredRuns??[],heldChecks:state.heldChecks??earlier?.heldChecks??[]};const entry=lstatSync(path,{throwIfNoEntry:false});if(entry&&!entry.isFile()&&!entry.isSymbolicLink()){rmSync(path,{recursive:true,force:true})}atomicWriteFileSync(path,`${JSON.stringify(history,null,2)}
|