@testmuai/kane-cli 0.10.4 → 0.10.5
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/dist/{ChatSurface-DN7VVN3Y.js → ChatSurface-WKYH5MYP.js} +1 -1
- package/dist/{ChromeProfilePicker-TVGWXTUU.js → ChromeProfilePicker-ROQIRMWR.js} +1 -1
- package/dist/{CliFeedbackPrompt-L5ILK66U.js → CliFeedbackPrompt-55OKAT4W.js} +1 -1
- package/dist/{CliUploadProgress-IU6BQLMV.js → CliUploadProgress-NK2U3CKQ.js} +1 -1
- package/dist/{ConfigView-LU5IRRQU.js → ConfigView-7A5JTKLF.js} +1 -1
- package/dist/{EvidenceViewOffer-DNTARDEL.js → EvidenceViewOffer-U7J5ZRVK.js} +1 -1
- package/dist/{FolderPicker-6E5GE2K2.js → FolderPicker-R4QDIFTW.js} +1 -1
- package/dist/{InfoBox-SFFPLWCV.js → InfoBox-SRQ4TSUT.js} +1 -1
- package/dist/{LinksBox-6YDTIO6I.js → LinksBox-7BWLLQVR.js} +1 -1
- package/dist/{ProfilesView-6C5HJQ3Y.js → ProfilesView-TQTJR4WQ.js} +1 -1
- package/dist/{ProjectPicker-YIQIVXGK.js → ProjectPicker-A5SXNDUL.js} +1 -1
- package/dist/{SaveSessionPrompt-X3N6OGYB.js → SaveSessionPrompt-IECYZMXW.js} +1 -1
- package/dist/SingleShotApp-MN5IE6EU.js +2 -0
- package/dist/{SummaryBox-T7PDXDKS.js → SummaryBox-WFOS6GON.js} +1 -1
- package/dist/{TestMdRunView-HRJSBP2C.js → TestMdRunView-URNSXIVC.js} +1 -1
- package/dist/TestrunEvidenceTable-SZPZMW3J.js +2 -0
- package/dist/{WhoamiView-WGCWD7GP.js → WhoamiView-G6QP4SID.js} +1 -1
- package/dist/{app-download-ZS6ZMX2Z.js → app-download-UGLDWWTX.js} +1 -1
- package/dist/{assurance-job-QO4VJJCL.js → assurance-job-V5QB36WJ.js} +1 -1
- package/dist/{binary-CCCTW3QQ.js → binary-32FXH6PQ.js} +1 -1
- package/dist/{bind-JU4XPDN3.js → bind-3PB77PWJ.js} +1 -1
- package/dist/{bootstrap-BV7HAARR.js → bootstrap-A2O4UZUJ.js} +1 -1
- package/dist/{catalog-ZAROGOJA.js → catalog-P5IOIVYP.js} +1 -1
- package/dist/{catalog-client-QLHCEPPZ.js → catalog-client-LR2KPSU7.js} +1 -1
- package/dist/{changelog-6L7W76ZH.js → changelog-GKIKDJ32.js} +1 -1
- package/dist/{chunk-FTP2K6RS.js → chunk-2AHQ3D3D.js} +1 -1
- package/dist/{chunk-SZQNYDST.js → chunk-2G7UYQOW.js} +1 -1
- package/dist/{chunk-3O2RPYPM.js → chunk-2MBNAW2G.js} +1 -1
- package/dist/{chunk-SO3IXFAJ.js → chunk-2NP3THOE.js} +1 -1
- package/dist/{chunk-YZP4F23B.js → chunk-37KFCYHG.js} +1 -1
- package/dist/{chunk-Z4O5HOFX.js → chunk-3RJRCAUX.js} +3 -3
- package/dist/{chunk-PBVNX43X.js → chunk-4DM5EWEV.js} +1 -1
- package/dist/{chunk-QYWWL7M7.js → chunk-5K7PCSTP.js} +1 -1
- package/dist/{chunk-LCBDNZL3.js → chunk-5LKDOE3P.js} +1 -1
- package/dist/{chunk-ZVSZ6DIQ.js → chunk-5OFHMBZC.js} +2 -2
- package/dist/{chunk-SMSQVGLH.js → chunk-63BFLTJI.js} +1 -1
- package/dist/{chunk-PMYN3XMN.js → chunk-642GD7E6.js} +1 -1
- package/dist/{chunk-HMGM4KO6.js → chunk-66C5A2F5.js} +1 -1
- package/dist/{chunk-3HGKFRFL.js → chunk-6OL5EVRC.js} +1 -1
- package/dist/{chunk-LLDEAV3W.js → chunk-6PZ3SVWE.js} +1 -1
- package/dist/{chunk-7V6JPZBM.js → chunk-6VG2FG67.js} +1 -1
- package/dist/{chunk-Q5B54TR5.js → chunk-6WN4WSXR.js} +1 -1
- package/dist/{chunk-TO2ROHIJ.js → chunk-76MKY7FG.js} +2 -2
- package/dist/{chunk-2CJ75THZ.js → chunk-77BZTEHJ.js} +1 -1
- package/dist/chunk-7TSM2FCL.js +5 -0
- package/dist/{chunk-ECPSBI2Z.js → chunk-A5C7HIAH.js} +1 -1
- package/dist/{chunk-BV7NUIRT.js → chunk-AXOSLGQ4.js} +1 -1
- package/dist/{chunk-DJ76NDW6.js → chunk-BDZWRJAL.js} +1 -1
- package/dist/{chunk-6PURZLKM.js → chunk-BFRWZPIK.js} +1 -1
- package/dist/{chunk-MWLRLQ27.js → chunk-BLHFNL5K.js} +1 -1
- package/dist/chunk-BRWCWZE3.js +2 -0
- package/dist/{chunk-IQMJJN52.js → chunk-BZEW7CSM.js} +1 -1
- package/dist/{chunk-TXRWH6HL.js → chunk-C466XER3.js} +2 -2
- package/dist/{chunk-55W3WAAL.js → chunk-C4UME2PA.js} +1 -1
- package/dist/{chunk-ZHENGHYZ.js → chunk-CBPACEYQ.js} +1 -1
- package/dist/{chunk-IDWAG6L4.js → chunk-CJGQFKLJ.js} +1 -1
- package/dist/{chunk-4G2T54FE.js → chunk-CQBLJTDU.js} +1 -1
- package/dist/{chunk-BPTWMV5L.js → chunk-CVVUBCB7.js} +1 -1
- package/dist/{chunk-4WFN23DE.js → chunk-EIQSXD7B.js} +1 -1
- package/dist/{chunk-AFOP7DVG.js → chunk-EP4WGGMY.js} +1 -1
- package/dist/{chunk-S5PIVHPC.js → chunk-F4GWIX66.js} +1 -1
- package/dist/{chunk-GMSWZIAS.js → chunk-FHULYIG3.js} +1 -1
- package/dist/{chunk-JE5M5QIK.js → chunk-FKA5SWWF.js} +1 -1
- package/dist/{chunk-WHMCVH3T.js → chunk-FLGOQ6Q6.js} +1 -1
- package/dist/{chunk-ABNQL3PQ.js → chunk-FNBHP75S.js} +1 -1
- package/dist/{chunk-GJYMR4RT.js → chunk-FOURJ24E.js} +1 -1
- package/dist/{chunk-UZKVV3LW.js → chunk-FOUUD3LI.js} +1 -1
- package/dist/{chunk-CVVZ6NWR.js → chunk-FP6JCXOS.js} +1 -1
- package/dist/{chunk-WMIR4UXG.js → chunk-H23ZMHHC.js} +1 -1
- package/dist/{chunk-ZFKR5I3J.js → chunk-HHF7AM3D.js} +1 -1
- package/dist/{chunk-6CMBA5SG.js → chunk-HTJDMLZS.js} +1 -1
- package/dist/{chunk-DRWHVVW6.js → chunk-HY5BBSYX.js} +1 -1
- package/dist/{chunk-RG3FNO37.js → chunk-IPXITNFD.js} +1 -1
- package/dist/{chunk-EWSNJ3IX.js → chunk-IT6M7OMG.js} +1 -1
- package/dist/{chunk-5OGYXLOR.js → chunk-ITG5WMQG.js} +1 -1
- package/dist/{chunk-MZ4GTIO2.js → chunk-J3YID4A5.js} +1 -1
- package/dist/{chunk-TELSHQ3W.js → chunk-J44FV6CH.js} +1 -1
- package/dist/{chunk-JYSIPTX3.js → chunk-J5D4IGAM.js} +1 -1
- package/dist/{chunk-WB4JZ67W.js → chunk-J5QFO7LW.js} +1 -1
- package/dist/{chunk-EOLMWSLX.js → chunk-JGQ3VB44.js} +1 -1
- package/dist/{chunk-MOAZZKIZ.js → chunk-JVXEAO62.js} +1 -1
- package/dist/{chunk-YWQNZRJG.js → chunk-JYH7CTF7.js} +1 -1
- package/dist/{chunk-FH4FWIET.js → chunk-JZ7GFPKZ.js} +1 -1
- package/dist/{chunk-I3G3IUKY.js → chunk-KUSHV5SR.js} +1 -1
- package/dist/{chunk-NMCE7VR2.js → chunk-LMOW4NM5.js} +1 -1
- package/dist/{chunk-UVBPUZC4.js → chunk-LPJX5L3F.js} +1 -1
- package/dist/{chunk-4FA44D6S.js → chunk-LWP7E5FU.js} +1 -1
- package/dist/{chunk-MQU6EA44.js → chunk-LXYXCANZ.js} +1 -1
- package/dist/{chunk-5HJRYEOT.js → chunk-MAQVRBUQ.js} +1 -1
- package/dist/{chunk-4WKFM72U.js → chunk-MBNSCXVK.js} +1 -1
- package/dist/{chunk-P7V24ZXP.js → chunk-MIQ6J5YG.js} +1 -1
- package/dist/{chunk-454IWKHT.js → chunk-MUL2QFG2.js} +1 -1
- package/dist/{chunk-DBMDAWTA.js → chunk-N4XUGIAK.js} +1 -1
- package/dist/{chunk-ACBNVGVJ.js → chunk-NAUIJF72.js} +1 -1
- package/dist/{chunk-QFA6JPVE.js → chunk-NFDVDEOH.js} +2 -2
- package/dist/{chunk-BIXABKSK.js → chunk-NGBXXBHP.js} +1 -1
- package/dist/{chunk-RNKJXVG2.js → chunk-NIBNVPAE.js} +1 -1
- package/dist/{chunk-DAV4ONGS.js → chunk-NNVHWFLI.js} +1 -1
- package/dist/{chunk-QOXUGYEA.js → chunk-NZ7UCAN6.js} +1 -1
- package/dist/{chunk-HGKAUG7L.js → chunk-OPR5XIPT.js} +1 -1
- package/dist/{chunk-QXZGBYGQ.js → chunk-PCL2FYPE.js} +1 -1
- package/dist/{chunk-KJZD2ADR.js → chunk-PE3CEG6E.js} +1 -1
- package/dist/{chunk-3VSAAB2W.js → chunk-PKXWYYVK.js} +1 -1
- package/dist/{chunk-56NUPYFG.js → chunk-PSBR2LVL.js} +1 -1
- package/dist/{chunk-H6QHG62O.js → chunk-PZOQ2IQK.js} +1 -1
- package/dist/{chunk-2VLM4L3S.js → chunk-Q4QCSO6Y.js} +1 -1
- package/dist/{chunk-MNELOQ4J.js → chunk-QJ5XHVS5.js} +1 -1
- package/dist/{chunk-JJDD4HPX.js → chunk-QRUAI2ST.js} +1 -1
- package/dist/{chunk-2KPJ62RZ.js → chunk-QWEQ742S.js} +1 -1
- package/dist/{chunk-DXXHCLFC.js → chunk-R6S4EJ5R.js} +1 -1
- package/dist/{chunk-7WWCIS2B.js → chunk-RHQLDNZL.js} +1 -1
- package/dist/{chunk-X3O4VGTM.js → chunk-RM5ZVDVR.js} +1 -1
- package/dist/{chunk-4KFSSETE.js → chunk-RU3SWHRE.js} +1 -1
- package/dist/{chunk-662MCICY.js → chunk-S5UITUBB.js} +1 -1
- package/dist/{chunk-T5FQRUI2.js → chunk-SACFQNUH.js} +7 -7
- package/dist/{chunk-EG3B52WU.js → chunk-SDIHDYWT.js} +1 -1
- package/dist/{chunk-GPIVYCHQ.js → chunk-SFHDRKUX.js} +1 -1
- package/dist/{chunk-EWK3UPEN.js → chunk-SLISNOG6.js} +1 -1
- package/dist/{chunk-OSEXVHEN.js → chunk-TC2PHBPH.js} +1 -1
- package/dist/{chunk-FQ2AMM3E.js → chunk-TPCW5OU5.js} +1 -1
- package/dist/{chunk-P43YHCF3.js → chunk-UJYC2XDD.js} +1 -1
- package/dist/chunk-UV7FPIBL.js +2 -0
- package/dist/{chunk-A74JRNNX.js → chunk-UWEBI76C.js} +1 -1
- package/dist/{chunk-LV7OWLJK.js → chunk-UWQ4KXLB.js} +1 -1
- package/dist/{chunk-73EHVDL5.js → chunk-V24LUINK.js} +1 -1
- package/dist/{chunk-OX3ZAGCH.js → chunk-V3IWCGZT.js} +1 -1
- package/dist/{chunk-4QV2RL6P.js → chunk-VEE2O524.js} +1 -1
- package/dist/{chunk-3JATEWA5.js → chunk-VJRXJJML.js} +2 -2
- package/dist/{chunk-JM45SLKV.js → chunk-VKIUHHNT.js} +2 -2
- package/dist/{chunk-7KASYSFM.js → chunk-W3PQMIXE.js} +1 -1
- package/dist/{chunk-S74NLCFZ.js → chunk-WAC5WISH.js} +1 -1
- package/dist/{chunk-KLY6IQD5.js → chunk-XJV5SF3X.js} +3 -3
- package/dist/{chunk-ATCJ7EHL.js → chunk-XRJH4UF3.js} +1 -1
- package/dist/{chunk-SBW3QVHN.js → chunk-Y3RDLUH5.js} +5 -5
- package/dist/{chunk-BXAPTB2H.js → chunk-YF22VTR5.js} +3 -3
- package/dist/{chunk-TLYFHPNM.js → chunk-YLI7DQMJ.js} +2 -2
- package/dist/{chunk-BK3LWNKB.js → chunk-YQXOD7SV.js} +3 -3
- package/dist/{chunk-PHKJIJ7D.js → chunk-YTWBNACA.js} +1 -1
- package/dist/{chunk-QEBVYQNC.js → chunk-YUFXE6WU.js} +1 -1
- package/dist/{commands-X5T6YANK.js → commands-TRAUFCRZ.js} +1 -1
- package/dist/{config-F5Q6QX27.js → config-O3BWQUP4.js} +1 -1
- package/dist/{cover-cmd-PWUZU4HK.js → cover-cmd-SAWVP7TL.js} +1 -1
- package/dist/{credentials-D5KQMHCK.js → credentials-NNNODDXF.js} +1 -1
- package/dist/{deps-bundle-R7FNIV4M.js → deps-bundle-CXKBCA7W.js} +1 -1
- package/dist/{deps-resolve-IF6P6NWI.js → deps-resolve-K7XNTRZX.js} +1 -1
- package/dist/{design-chat-HYK3HNIM.js → design-chat-S4KYE6PP.js} +1 -1
- package/dist/{design-headless-DR7WB37W.js → design-headless-DDAFAJNR.js} +1 -1
- package/dist/{design-remote-TGUNEWEM.js → design-remote-UITWJ72Q.js} +2 -2
- package/dist/device-env-SBTHFSVK.js +2 -0
- package/dist/doctor-SRMLENYN.js +2 -0
- package/dist/{evidence-SRWISQMQ.js → evidence-FOWW3MOS.js} +1 -1
- package/dist/{evolve-cmd-2BALEYZU.js → evolve-cmd-MDK2H4JY.js} +1 -1
- package/dist/{evolve-remote-OHOUWO65.js → evolve-remote-4G7YFC5H.js} +1 -1
- package/dist/{explain-cmd-VTDAMXAW.js → explain-cmd-Q4NLNJFB.js} +1 -1
- package/dist/{explore-UZWQRJ7H.js → explore-MWUMVGRM.js} +1 -1
- package/dist/{explore-context-tty-PAKJVDJU.js → explore-context-tty-QLMZGYBX.js} +1 -1
- package/dist/{explore-entry-ZOPO7DBZ.js → explore-entry-QMCVGRP4.js} +4 -4
- package/dist/{explore-live-RUAAZGX4.js → explore-live-QIET6WO4.js} +1 -1
- package/dist/{explore-run-tty-DYLMHI7F.js → explore-run-tty-6UTBRCEF.js} +2 -2
- package/dist/{extract-bind-WPICR4IC.js → extract-bind-UTERWZMW.js} +3 -3
- package/dist/{extract-chat-KVUB5HPM.js → extract-chat-4WBNRVPG.js} +1 -1
- package/dist/{extract-cmd-OJ7LXSKL.js → extract-cmd-SYZX6CML.js} +2 -2
- package/dist/{extract-headless-OQJSUSG4.js → extract-headless-QBF77JWP.js} +1 -1
- package/dist/{folder-flags-MEZUAXTT.js → folder-flags-IJ556UET.js} +1 -1
- package/dist/{gaps-cmd-2R4RMWN6.js → gaps-cmd-E55OGZ7P.js} +1 -1
- package/dist/{gate-SM4HPJLA.js → gate-5UIJVMHL.js} +1 -1
- package/dist/{generate-headless-XR3RVULC.js → generate-headless-VYD2QIUO.js} +2 -2
- package/dist/{impact-cmd-EL3QSOAF.js → impact-cmd-3P6SKFJC.js} +2 -2
- package/dist/index.js +20 -20
- package/dist/{ingest-cmd-N3USC7TW.js → ingest-cmd-HMTLO5MB.js} +3 -3
- package/dist/{ingest-remote-2VKWAFJZ.js → ingest-remote-NIW5VAGW.js} +1 -1
- package/dist/install-KJDAGU2R.js +2 -0
- package/dist/{interactive-bind-F7QTQOKC.js → interactive-bind-K3ZQFHLH.js} +2 -2
- package/dist/{interactive-remote-A33J4KMP.js → interactive-remote-SGM76D6M.js} +1 -1
- package/dist/{lattice-auth-IJT542IF.js → lattice-auth-DCAVEQKY.js} +1 -1
- package/dist/{lifecycle-cmd-OKUFZKEX.js → lifecycle-cmd-Y5DH2PL5.js} +1 -1
- package/dist/{list-cmd-7OTI66MQ.js → list-cmd-RYHICCUV.js} +1 -1
- package/dist/{list-commands-FZPVH76I.js → list-commands-QFTIQE6Q.js} +1 -1
- package/dist/{list-remote-BQ4NILCA.js → list-remote-PWAQBF57.js} +1 -1
- package/dist/login-flow-W7RAVXSD.js +2 -0
- package/dist/{maintenance-cmd-BLV7K4RK.js → maintenance-cmd-JNP2KCSI.js} +1 -1
- package/dist/{mobile-prompts-5TGLJUBV.js → mobile-prompts-SP2RULD7.js} +1 -1
- package/dist/{onboarding-F4EIJ4GD.js → onboarding-YPIKXNYA.js} +1 -1
- package/dist/{persist-recorded-session-WYMOHDTB.js → persist-recorded-session-BWGA7WXR.js} +1 -1
- package/dist/{pipeline-XYM6HIDZ.js → pipeline-YE4IRKQX.js} +1 -1
- package/dist/{policy-commands-AOLVAZZD.js → policy-commands-MSJIPHDB.js} +1 -1
- package/dist/{prepare-target-P4AZWC37.js → prepare-target-G7LU4LYX.js} +1 -1
- package/dist/{pull-cmd-C4HMYD4I.js → pull-cmd-G3PVSSFP.js} +1 -1
- package/dist/{pull-route-MHW5PWDW.js → pull-route-5JQUUSU7.js} +1 -1
- package/dist/real-device-run-425XK527.js +2 -0
- package/dist/{reconcile-cmd-VXY737OT.js → reconcile-cmd-QJBYZVUB.js} +4 -4
- package/dist/{reconcile-remote-UGW2433E.js → reconcile-remote-JMV26DLX.js} +2 -2
- package/dist/{recording-banner-EPOTSMYF.js → recording-banner-VZ67EWWQ.js} +1 -1
- package/dist/{registry-WTWTFRXD.js → registry-3YMKU5GC.js} +1 -1
- package/dist/{remote-entry-SPA4CSJJ.js → remote-entry-6LQRYR5F.js} +1 -1
- package/dist/{remote-mode-QO6BDGXM.js → remote-mode-35BQUMEL.js} +1 -1
- package/dist/{remote-words-TAZT4YBT.js → remote-words-QXVFVHOB.js} +1 -1
- package/dist/{require-project-folder-WBCAVVMB.js → require-project-folder-O2XCXDRE.js} +1 -1
- package/dist/{resolve-run-intent-RBOCIYEA.js → resolve-run-intent-QCRZPYXM.js} +1 -1
- package/dist/{resolver-3BGIXYYJ.js → resolver-LWXOB7PH.js} +1 -1
- package/dist/{review-cmd-WE6I5XTY.js → review-cmd-PYU7YCAC.js} +1 -1
- package/dist/{run-remote-6Y62RWMJ.js → run-remote-PS45MTHW.js} +1 -1
- package/dist/{run-startup-gate-Q7FP2IRE.js → run-startup-gate-YBQB2JLF.js} +1 -1
- package/dist/{run-test-md-24MBKBC6.js → run-test-md-XYOCVA6F.js} +2 -2
- package/dist/session-worker.js +2 -2
- package/dist/{sessions-cmd-5NS5P4CP.js → sessions-cmd-WUWZYZJW.js} +1 -1
- package/dist/{sessions-remote-75PDRPOY.js → sessions-remote-4J7ITZB4.js} +1 -1
- package/dist/{skill-installer-7PK64TZE.js → skill-installer-54ZAFNOB.js} +1 -1
- package/dist/{store-AVYBL5HB.js → store-2F26FIUS.js} +1 -1
- package/dist/{store-choice-ZWU3PDNL.js → store-choice-ZE7AZMRC.js} +1 -1
- package/dist/{store-guard-ETUXXG7X.js → store-guard-X5FIEZWZ.js} +1 -1
- package/dist/{sync-cmd-CSTMT6E6.js → sync-cmd-TAVE44DU.js} +1 -1
- package/dist/{sync-setup-Y53K6TJ6.js → sync-setup-M65RX34Y.js} +1 -1
- package/dist/tcg-generate-OXZF7TNQ.js +2 -0
- package/dist/{testmd-actions-BE4YJ6ZZ.js → testmd-actions-4OHRME2Z.js} +1 -1
- package/dist/{testmd-sync-QZWVWTZZ.js → testmd-sync-HM24JCS7.js} +1 -1
- package/dist/token-refresh-3SEDPIXO.js +2 -0
- package/dist/{validate-basic-QWPESO74.js → validate-basic-HWDR665U.js} +1 -1
- package/dist/{version-check-EOYWTY3Z.js → version-check-DRE5KT7F.js} +1 -1
- package/dist/{view-cmd-KG4HI334.js → view-cmd-3UKV3YEX.js} +1 -1
- package/dist/{walk-session-WM4S2JMV.js → walk-session-W6OLG5NT.js} +1 -1
- package/dist/{with-telemetry-RJM3JKL6.js → with-telemetry-BF4BGK5S.js} +1 -1
- package/package.json +11 -11
- package/dist/SingleShotApp-MXNJPU6A.js +0 -2
- package/dist/TestrunEvidenceTable-OGMWTJQF.js +0 -2
- package/dist/chunk-APXJRWIJ.js +0 -2
- package/dist/chunk-V57R4X3O.js +0 -5
- package/dist/chunk-YKOZBFR3.js +0 -2
- package/dist/device-env-LZB3PKMA.js +0 -2
- package/dist/doctor-PLFEA2HM.js +0 -2
- package/dist/install-3IEM3I3X.js +0 -2
- package/dist/login-flow-BYQ7SYGB.js +0 -2
- package/dist/real-device-run-WAOWKEFJ.js +0 -2
- package/dist/tcg-generate-VQLI6NGK.js +0 -2
- package/dist/token-refresh-PZ3TOKAL.js +0 -2
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { createRequire } from 'module'; const require = createRequire(import.meta.url);
|
|
2
|
-
import{a,b,c}from"./chunk-
|
|
2
|
+
import{a,b,c}from"./chunk-FKA5SWWF.js";import"./chunk-J5QFO7LW.js";import"./chunk-H23ZMHHC.js";import"./chunk-AL6IAMYV.js";import"./chunk-JGQ3VB44.js";import"./chunk-LXYXCANZ.js";import"./chunk-3AGP2BVN.js";import"./chunk-FNBHP75S.js";import"./chunk-5Y2G4NC7.js";import"./chunk-SMXABALN.js";import"./chunk-V3IWCGZT.js";import"./chunk-WN5VKKJ3.js";import"./chunk-HCBYKLMW.js";import"./chunk-HD6NR44L.js";import"./chunk-BWXLZS5O.js";import"./chunk-63EKRZKI.js";import"./chunk-3JLEDSG5.js";import"./chunk-77BZTEHJ.js";import"./chunk-3A4KK22B.js";import"./chunk-RHQLDNZL.js";import"./chunk-GFLB2SHW.js";import"./chunk-2TVPA3LL.js";import"./chunk-VJGWVBZR.js";import"./chunk-22PIMG52.js";import"./chunk-4C7WVQOD.js";import"./chunk-5EAJO372.js";import"./chunk-DBMW3VUN.js";import"./chunk-KU3YHPWZ.js";import"./chunk-7V4BQSSV.js";import"./chunk-QXQ7KVEN.js";import"./chunk-R6S4EJ5R.js";import"./chunk-BZEW7CSM.js";import"./chunk-QSCXXNC2.js";import"./chunk-UV7FPIBL.js";import"./chunk-CBEMXSWF.js";import"./chunk-G4K3TP2I.js";import"./chunk-YJAQZMJT.js";import"./chunk-6PIIUAZF.js";import"./chunk-ZAQGIC33.js";import"./chunk-HYJVYYAZ.js";import"./chunk-XTQUCCJH.js";import"./chunk-BRWCWZE3.js";import"./chunk-WTMCDYR3.js";import"./chunk-WMXBRC4B.js";import"./chunk-ZCRZFAOT.js";import"./chunk-RZ4F3BHX.js";import"./chunk-U5V3L5QH.js";import"./chunk-33DWJV67.js";import"./chunk-FOJHSG5M.js";import"./chunk-6YGTRKDT.js";import"./chunk-UR6MHSHU.js";export{c as ChatSurface,b as reviewReadLine,a as tailVisualRows};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { createRequire } from 'module'; const require = createRequire(import.meta.url);
|
|
2
|
-
import{a,b,c}from"./chunk-
|
|
2
|
+
import{a,b,c}from"./chunk-2MBNAW2G.js";import"./chunk-NIBNVPAE.js";import"./chunk-HCBYKLMW.js";import"./chunk-BRWCWZE3.js";import"./chunk-33DWJV67.js";import"./chunk-FOJHSG5M.js";import"./chunk-6YGTRKDT.js";import"./chunk-UR6MHSHU.js";export{c as ChromeProfilePicker,b as formatChromeProfileLine,a as listChromeProfiles};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { createRequire } from 'module'; const require = createRequire(import.meta.url);
|
|
2
|
-
import{a as r}from"./chunk-
|
|
2
|
+
import{a as r}from"./chunk-IPXITNFD.js";import"./chunk-NIBNVPAE.js";import"./chunk-HCBYKLMW.js";import"./chunk-BRWCWZE3.js";import{c as e}from"./chunk-33DWJV67.js";import"./chunk-FOJHSG5M.js";import{a as i}from"./chunk-6YGTRKDT.js";import{e as m}from"./chunk-UR6MHSHU.js";var t=m(i(),1);async function d(){return new Promise(o=>{let c=e(t.default.createElement(r,{onSubmit:n=>{c.unmount(),o(n)}}),{stdout:process.stderr,exitOnCtrlC:!1})})}export{d as renderFeedbackPrompt};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { createRequire } from 'module'; const require = createRequire(import.meta.url);
|
|
2
|
-
import{a as P,b as g,c as f}from"./chunk-
|
|
2
|
+
import{a as P,b as g,c as f}from"./chunk-J3YID4A5.js";import"./chunk-Q4QCSO6Y.js";import"./chunk-5Y2G4NC7.js";import{a as c}from"./chunk-HCBYKLMW.js";import"./chunk-BRWCWZE3.js";import{c as d}from"./chunk-33DWJV67.js";import"./chunk-FOJHSG5M.js";import{a as h}from"./chunk-6YGTRKDT.js";import{e as p}from"./chunk-UR6MHSHU.js";var e=p(h(),1);var m=p(c(),1);function w({pipeline:t,buildShareUrl:r,onDone:o}){let[n,i]=(0,e.useState)(P()),[S,l]=(0,e.useState)("uploading"),[U,R]=(0,e.useState)(),[C,E]=(0,e.useState)();return(0,e.useEffect)(()=>{let x=t.config.onProgress;t.config.onProgress=(s,u,a)=>{x(s,u,a),i(y=>g(y,s,u,a))},t.execute().then(s=>{s.success?(R(r?.(s)),l("success")):(E(s.error),l("failed")),setTimeout(()=>o(s),1500)})},[]),(0,m.jsx)(f,{steps:n,status:S,testUrl:U,error:C})}async function O(t,r){return new Promise(o=>{let n=d(e.default.createElement(w,{pipeline:t,buildShareUrl:r,onDone:i=>{n.unmount(),o(i)}}),{stdout:process.stderr,exitOnCtrlC:!1})})}export{O as renderUploadProgress};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { createRequire } from 'module'; const require = createRequire(import.meta.url);
|
|
2
|
-
import{a as h,b as l,c as i}from"./chunk-
|
|
2
|
+
import{a as h,b as l,c as i}from"./chunk-V3IWCGZT.js";import{a as x}from"./chunk-HCBYKLMW.js";import{A as n}from"./chunk-BRWCWZE3.js";import{a as s,j as C}from"./chunk-33DWJV67.js";import"./chunk-FOJHSG5M.js";import{a as S}from"./chunk-6YGTRKDT.js";import{e as u}from"./chunk-UR6MHSHU.js";var B=u(S(),1);var e=u(x(),1);function T({model:D,authLabel:w,profile:$,env:y,defaultUrl:d,projectId:a,projectName:v,folderId:t,folderName:g,windowSize:P,chromeProfile:R,target:r,deviceName:m,osVersion:f,appLabel:b,deviceSettings:c=[]}){let V=a?v?`${v} (${a})`:a:"(none)",A=t?g?`${g} (${t})`:t:"(none)",{exit:p}=C();return(0,B.useEffect)(()=>{let o=setTimeout(()=>p(),50);return()=>clearTimeout(o)},[p]),(0,e.jsx)(s,{flexDirection:"column",children:(0,e.jsx)(h,{title:"Configuration",children:(0,e.jsxs)(s,{flexDirection:"column",paddingY:1,children:[(0,e.jsx)(i,{label:"Auth"}),(0,e.jsx)(l,{label:" method",value:w}),(0,e.jsx)(l,{label:" profile",value:$}),(0,e.jsx)(l,{label:" env",value:y}),(0,e.jsx)(i,{label:"Defaults"}),(0,e.jsx)(l,{label:" url",value:d??"(none)",valueColor:d?n.orange:n.dim}),(0,e.jsx)(l,{label:" model",value:D}),(0,e.jsx)(l,{label:" window",value:P}),(0,e.jsx)(l,{label:" project",value:V}),(0,e.jsx)(l,{label:" folder",value:A}),r!==void 0&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(l,{label:" target",value:r}),r!=="desktop"&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(l,{label:" device_name",value:m??"(not set)",valueColor:m?void 0:n.dim}),(0,e.jsx)(l,{label:" os_version",value:f??"(not set)",valueColor:f?void 0:n.dim}),(0,e.jsx)(l,{label:" app",value:b??"(not set)",valueColor:b?void 0:n.dim})]})]}),c.length>0&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(i,{label:"Device settings"}),c.map(o=>(0,e.jsx)(l,{label:` ${o.label}`,value:o.value},o.label))]}),(0,e.jsx)(i,{label:"Paths"}),(0,e.jsx)(l,{label:" chrome",value:R,valueColor:n.dim})]})})})}export{T as ConfigView};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { createRequire } from 'module'; const require = createRequire(import.meta.url);
|
|
2
|
-
import{a}from"./chunk-
|
|
2
|
+
import{a}from"./chunk-BDZWRJAL.js";import"./chunk-76MKY7FG.js";import"./chunk-MAQVRBUQ.js";import"./chunk-FP6JCXOS.js";import"./chunk-PEHVBCXM.js";import"./chunk-ZIRSTOEV.js";import"./chunk-TCK7WR3M.js";import"./chunk-WMGKUERB.js";import"./chunk-QLGQDNA3.js";import"./chunk-2EKLTUY2.js";import"./chunk-IINZZ4BZ.js";import"./chunk-IT6M7OMG.js";import"./chunk-RM5ZVDVR.js";import"./chunk-73Y6T2UK.js";import"./chunk-XMPTFXPW.js";import"./chunk-YLI7DQMJ.js";import"./chunk-Z36KVIRR.js";import"./chunk-Q4JV4U65.js";import"./chunk-RFHMDQXZ.js";import"./chunk-63BFLTJI.js";import"./chunk-2AHQ3D3D.js";import"./chunk-WLEWXE6L.js";import"./chunk-LMOW4NM5.js";import"./chunk-MTMHB5LF.js";import"./chunk-FHULYIG3.js";import"./chunk-SB26HQO7.js";import"./chunk-3G2LSTK5.js";import"./chunk-MMBBQ4OZ.js";import"./chunk-VKIUHHNT.js";import"./chunk-HCBYKLMW.js";import"./chunk-4JOD47QI.js";import"./chunk-TFSWG7AS.js";import"./chunk-JBUKEIYL.js";import"./chunk-W5EDS4DF.js";import"./chunk-XB6BJPDL.js";import"./chunk-ZCIWQHCO.js";import"./chunk-5ORBAYTU.js";import"./chunk-XRJH4UF3.js";import"./chunk-PVN64537.js";import"./chunk-RHQLDNZL.js";import"./chunk-GFLB2SHW.js";import"./chunk-2TVPA3LL.js";import"./chunk-VJGWVBZR.js";import"./chunk-22PIMG52.js";import"./chunk-4C7WVQOD.js";import"./chunk-5EAJO372.js";import"./chunk-DBMW3VUN.js";import"./chunk-KU3YHPWZ.js";import"./chunk-OKCVG7AG.js";import"./chunk-XDAFRUAJ.js";import"./chunk-7V4BQSSV.js";import"./chunk-QXQ7KVEN.js";import"./chunk-R6S4EJ5R.js";import"./chunk-BZEW7CSM.js";import"./chunk-QSCXXNC2.js";import"./chunk-UV7FPIBL.js";import"./chunk-CBEMXSWF.js";import"./chunk-G4K3TP2I.js";import"./chunk-YJAQZMJT.js";import"./chunk-6PIIUAZF.js";import"./chunk-ZAQGIC33.js";import"./chunk-HYJVYYAZ.js";import"./chunk-XTQUCCJH.js";import"./chunk-VZ7KXRXB.js";import"./chunk-4QTH7VYE.js";import"./chunk-GMTHZUZ3.js";import"./chunk-V24LUINK.js";import"./chunk-JYH7CTF7.js";import"./chunk-BRWCWZE3.js";import"./chunk-WTMCDYR3.js";import"./chunk-WMXBRC4B.js";import"./chunk-ZCRZFAOT.js";import"./chunk-RZ4F3BHX.js";import"./chunk-U5V3L5QH.js";import"./chunk-33DWJV67.js";import"./chunk-FOJHSG5M.js";import"./chunk-6YGTRKDT.js";import"./chunk-7HO4NX5W.js";import"./chunk-A7RJQJNT.js";import"./chunk-UR6MHSHU.js";export{a as EvidenceViewOffer};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { createRequire } from 'module'; const require = createRequire(import.meta.url);
|
|
2
|
-
import{a,b}from"./chunk-
|
|
2
|
+
import{a,b}from"./chunk-5LKDOE3P.js";import"./chunk-UJYC2XDD.js";import"./chunk-SMXABALN.js";import"./chunk-SB26HQO7.js";import"./chunk-3G2LSTK5.js";import"./chunk-NIBNVPAE.js";import"./chunk-HCBYKLMW.js";import"./chunk-4QTH7VYE.js";import"./chunk-V24LUINK.js";import"./chunk-JYH7CTF7.js";import"./chunk-BRWCWZE3.js";import"./chunk-RZ4F3BHX.js";import"./chunk-33DWJV67.js";import"./chunk-FOJHSG5M.js";import"./chunk-6YGTRKDT.js";import"./chunk-UR6MHSHU.js";export{b as FolderPicker,a as formatFolderLine};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { createRequire } from 'module'; const require = createRequire(import.meta.url);
|
|
2
|
-
import{a}from"./chunk-
|
|
2
|
+
import{a}from"./chunk-CQBLJTDU.js";import"./chunk-V3IWCGZT.js";import"./chunk-HCBYKLMW.js";import"./chunk-BRWCWZE3.js";import"./chunk-33DWJV67.js";import"./chunk-FOJHSG5M.js";import"./chunk-6YGTRKDT.js";import"./chunk-UR6MHSHU.js";export{a as InfoBox};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { createRequire } from 'module'; const require = createRequire(import.meta.url);
|
|
2
|
-
import{a}from"./chunk-
|
|
2
|
+
import{a}from"./chunk-YTWBNACA.js";import"./chunk-HCBYKLMW.js";import"./chunk-BRWCWZE3.js";import"./chunk-33DWJV67.js";import"./chunk-FOJHSG5M.js";import"./chunk-6YGTRKDT.js";import"./chunk-UR6MHSHU.js";export{a as LinksBox};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { createRequire } from 'module'; const require = createRequire(import.meta.url);
|
|
2
|
-
import{a,b}from"./chunk-
|
|
2
|
+
import{a,b}from"./chunk-PE3CEG6E.js";import"./chunk-NIBNVPAE.js";import"./chunk-HCBYKLMW.js";import"./chunk-BRWCWZE3.js";import"./chunk-33DWJV67.js";import"./chunk-FOJHSG5M.js";import"./chunk-6YGTRKDT.js";import"./chunk-UR6MHSHU.js";export{b as ProfilesView,a as formatProfileLine};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { createRequire } from 'module'; const require = createRequire(import.meta.url);
|
|
2
|
-
import{a,b,c}from"./chunk-
|
|
2
|
+
import{a,b,c}from"./chunk-LPJX5L3F.js";import"./chunk-UJYC2XDD.js";import"./chunk-SMXABALN.js";import"./chunk-SB26HQO7.js";import"./chunk-3G2LSTK5.js";import"./chunk-NIBNVPAE.js";import"./chunk-HCBYKLMW.js";import"./chunk-4QTH7VYE.js";import"./chunk-V24LUINK.js";import"./chunk-JYH7CTF7.js";import"./chunk-BRWCWZE3.js";import"./chunk-RZ4F3BHX.js";import"./chunk-33DWJV67.js";import"./chunk-FOJHSG5M.js";import"./chunk-6YGTRKDT.js";import"./chunk-UR6MHSHU.js";export{c as ProjectPicker,b as RUN_GATE_PICKER,a as formatProjectLine};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { createRequire } from 'module'; const require = createRequire(import.meta.url);
|
|
2
|
-
import{a,b,c}from"./chunk-
|
|
2
|
+
import{a,b,c}from"./chunk-UWEBI76C.js";import"./chunk-S3DAAAE5.js";import"./chunk-CQBLJTDU.js";import"./chunk-V3IWCGZT.js";import"./chunk-HCBYKLMW.js";import"./chunk-BRWCWZE3.js";import"./chunk-33DWJV67.js";import"./chunk-FOJHSG5M.js";import"./chunk-6YGTRKDT.js";import"./chunk-UR6MHSHU.js";export{a as SaveSessionPrompt,b as defaultSessionTimestamp,c as renderSavePrompt};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import { createRequire } from 'module'; const require = createRequire(import.meta.url);
|
|
2
|
+
import{a,b}from"./chunk-NGBXXBHP.js";import"./chunk-6VG2FG67.js";import"./chunk-CJGQFKLJ.js";import"./chunk-37KFCYHG.js";import"./chunk-72KYMWQ5.js";import"./chunk-CCOD4GQJ.js";import"./chunk-JQ64X2TO.js";import"./chunk-TDPWFYTJ.js";import"./chunk-SDIHDYWT.js";import"./chunk-LPJX5L3F.js";import"./chunk-5LKDOE3P.js";import"./chunk-UJYC2XDD.js";import"./chunk-SMXABALN.js";import"./chunk-PCL2FYPE.js";import"./chunk-VE3SUJMA.js";import"./chunk-5D7ENQTQ.js";import"./chunk-2AHQ3D3D.js";import"./chunk-WLEWXE6L.js";import"./chunk-LMOW4NM5.js";import"./chunk-MTMHB5LF.js";import"./chunk-SB26HQO7.js";import"./chunk-HTJDMLZS.js";import"./chunk-FCD3NYOM.js";import"./chunk-3G2LSTK5.js";import"./chunk-TZXXJWHA.js";import"./chunk-NIBNVPAE.js";import"./chunk-HCBYKLMW.js";import"./chunk-Z7S3IWUX.js";import"./chunk-VZ7KXRXB.js";import"./chunk-4QTH7VYE.js";import"./chunk-V24LUINK.js";import"./chunk-JYH7CTF7.js";import"./chunk-BRWCWZE3.js";import"./chunk-WMXBRC4B.js";import"./chunk-ZCRZFAOT.js";import"./chunk-RZ4F3BHX.js";import"./chunk-U5V3L5QH.js";import"./chunk-33DWJV67.js";import"./chunk-FOJHSG5M.js";import"./chunk-6YGTRKDT.js";import"./chunk-2XW33VOK.js";import"./chunk-7HO4NX5W.js";import"./chunk-A7RJQJNT.js";import"./chunk-UR6MHSHU.js";export{b as SingleShotApp,a as phaseAfterAuth};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { createRequire } from 'module'; const require = createRequire(import.meta.url);
|
|
2
|
-
import{a,b,c,d}from"./chunk-
|
|
2
|
+
import{a,b,c,d}from"./chunk-LWP7E5FU.js";import"./chunk-CQBLJTDU.js";import"./chunk-V3IWCGZT.js";import"./chunk-HCBYKLMW.js";import"./chunk-BRWCWZE3.js";import"./chunk-33DWJV67.js";import"./chunk-FOJHSG5M.js";import"./chunk-6YGTRKDT.js";import"./chunk-UR6MHSHU.js";export{d as AutoExitSummaryBox,c as SummaryBox,b as buildSummaryEvent,a as buildSummaryRendered};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { createRequire } from 'module'; const require = createRequire(import.meta.url);
|
|
2
|
-
import{g as a}from"./chunk-
|
|
2
|
+
import{g as a}from"./chunk-C4UME2PA.js";import"./chunk-5K7PCSTP.js";import"./chunk-Y3RDLUH5.js";import"./chunk-Q4QCSO6Y.js";import"./chunk-5Y2G4NC7.js";import"./chunk-IINZZ4BZ.js";import"./chunk-TDPWFYTJ.js";import"./chunk-PCL2FYPE.js";import"./chunk-F2F257PU.js";import"./chunk-5D7ENQTQ.js";import"./chunk-QWEQ742S.js";import"./chunk-MMBBQ4OZ.js";import"./chunk-VKIUHHNT.js";import"./chunk-CQBLJTDU.js";import"./chunk-V3IWCGZT.js";import"./chunk-WN5VKKJ3.js";import"./chunk-HCBYKLMW.js";import"./chunk-Z7S3IWUX.js";import"./chunk-4JOD47QI.js";import"./chunk-TD6GCEIK.js";import"./chunk-UV7FPIBL.js";import"./chunk-HYJVYYAZ.js";import"./chunk-GMTHZUZ3.js";import"./chunk-V24LUINK.js";import"./chunk-JYH7CTF7.js";import"./chunk-BRWCWZE3.js";import"./chunk-WMXBRC4B.js";import"./chunk-ZCRZFAOT.js";import"./chunk-RZ4F3BHX.js";import"./chunk-U5V3L5QH.js";import"./chunk-33DWJV67.js";import"./chunk-FOJHSG5M.js";import"./chunk-6YGTRKDT.js";import"./chunk-2XW33VOK.js";import"./chunk-7HO4NX5W.js";import"./chunk-A7RJQJNT.js";import"./chunk-UR6MHSHU.js";export{a as TestMdRunView};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import { createRequire } from 'module'; const require = createRequire(import.meta.url);
|
|
2
|
+
import{a,b}from"./chunk-ITG5WMQG.js";import"./chunk-MAQVRBUQ.js";import"./chunk-RFHMDQXZ.js";import"./chunk-V3IWCGZT.js";import"./chunk-HCBYKLMW.js";import"./chunk-V24LUINK.js";import"./chunk-JYH7CTF7.js";import"./chunk-BRWCWZE3.js";import"./chunk-33DWJV67.js";import"./chunk-FOJHSG5M.js";import"./chunk-6YGTRKDT.js";import"./chunk-UR6MHSHU.js";export{a as buildServeMap,b as renderTestrunEvidenceTable};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { createRequire } from 'module'; const require = createRequire(import.meta.url);
|
|
2
|
-
import{a as f,b as r}from"./chunk-
|
|
2
|
+
import{a as f,b as r}from"./chunk-V3IWCGZT.js";import{a as s}from"./chunk-HCBYKLMW.js";import{A as o}from"./chunk-BRWCWZE3.js";import{a as i,b as l,j as x}from"./chunk-33DWJV67.js";import"./chunk-FOJHSG5M.js";import{a as B}from"./chunk-6YGTRKDT.js";import{e as a}from"./chunk-UR6MHSHU.js";var p=a(B(),1);var e=a(s(),1);function V({profile:b,env:g,authenticated:n,authMethod:v,username:c,tokenStatus:t,serverStatus:d,detail:u}){let{exit:m}=x();return(0,p.useEffect)(()=>{let h=setTimeout(()=>m(),50);return()=>clearTimeout(h)},[m]),(0,e.jsx)(i,{flexDirection:"column",children:(0,e.jsx)(f,{title:"Identity",variant:n?"success":"warning",children:(0,e.jsxs)(i,{flexDirection:"column",paddingY:1,children:[(0,e.jsx)(i,{children:d==="rejected"?(0,e.jsx)(l,{color:o.red,bold:!0,children:"\u2717 Not authenticated"}):d==="unreachable"?(0,e.jsx)(l,{color:o.orange,bold:!0,children:"\u26A0 Couldn't verify"}):n?(0,e.jsx)(l,{color:o.green,bold:!0,children:"\u2713 Authenticated"}):(0,e.jsx)(l,{color:o.orange,bold:!0,children:"\u26A0 Not logged in"})}),(0,e.jsxs)(i,{flexDirection:"column",marginTop:1,children:[(0,e.jsx)(r,{label:"Profile",value:b}),(0,e.jsx)(r,{label:"Environment",value:g}),(0,e.jsx)(r,{label:"Method",value:v}),c&&(0,e.jsx)(r,{label:"User",value:c}),t&&(0,e.jsx)(r,{label:"Token",value:t,valueColor:t==="valid"?o.green:t==="expired"?o.red:o.dim}),u&&(0,e.jsx)(r,{label:"Detail",value:u})]})]})})})}export{V as WhoamiView};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { createRequire } from 'module'; const require = createRequire(import.meta.url);
|
|
2
|
-
import{b as a,c as b}from"./chunk-
|
|
2
|
+
import{b as a,c as b}from"./chunk-LMOW4NM5.js";import"./chunk-MTMHB5LF.js";import"./chunk-BRWCWZE3.js";import"./chunk-RZ4F3BHX.js";import"./chunk-7HO4NX5W.js";import"./chunk-A7RJQJNT.js";import"./chunk-UR6MHSHU.js";export{a as isAppId,b as resolveCloudApp};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { createRequire } from 'module'; const require = createRequire(import.meta.url);
|
|
2
|
-
import{a as q,b as Ne}from"./chunk-DBMDAWTA.js";import{d as $e}from"./chunk-I3G3IUKY.js";import"./chunk-HGKAUG7L.js";import{c as Ae,e as Ie,f as ve}from"./chunk-BXAPTB2H.js";import{f as Ee,k as ye}from"./chunk-QOXUGYEA.js";import"./chunk-LLDEAV3W.js";import"./chunk-3VSAAB2W.js";import"./chunk-GJYMR4RT.js";import"./chunk-BV7NUIRT.js";import"./chunk-QLGQDNA3.js";import"./chunk-EWSNJ3IX.js";import{g as le}from"./chunk-X3O4VGTM.js";import"./chunk-73Y6T2UK.js";import{e as ue}from"./chunk-XMPTFXPW.js";import"./chunk-EUGFABAS.js";import"./chunk-U2VYTVKV.js";import"./chunk-HIUAUZNL.js";import"./chunk-BPTWMV5L.js";import"./chunk-FH4FWIET.js";import"./chunk-2CJ75THZ.js";import"./chunk-3A4KK22B.js";import"./chunk-CB344EDO.js";import"./chunk-FNUGDPTS.js";import{a as pe}from"./chunk-6KUUSONE.js";import{a as H,b as j,d as ge,e as me,f as he,g as _e,i as we}from"./chunk-56NUPYFG.js";import"./chunk-LZPYIFHZ.js";import{h as fe}from"./chunk-GRQKMOKE.js";import"./chunk-3CFAE36M.js";import"./chunk-GBQ4K25P.js";import"./chunk-PGESS7BW.js";import"./chunk-FWGUISUG.js";import"./chunk-C3DMMAFP.js";import"./chunk-AQ2OG2EF.js";import"./chunk-REKHAN53.js";import"./chunk-32MFECUA.js";import"./chunk-4IEQNX7F.js";import"./chunk-UVL6XQHU.js";import"./chunk-VRIZDOO5.js";import"./chunk-ZHWU6L2G.js";import"./chunk-EHB55V23.js";import"./chunk-TD6GCEIK.js";import"./chunk-5ORBAYTU.js";import{c as B}from"./chunk-ATCJ7EHL.js";import"./chunk-PVN64537.js";import{a as V,ba as de,c as G,e as ie,f as ae,fa as ce}from"./chunk-7WWCIS2B.js";import"./chunk-GFLB2SHW.js";import"./chunk-2TVPA3LL.js";import"./chunk-VJGWVBZR.js";import"./chunk-22PIMG52.js";import{a as I}from"./chunk-4C7WVQOD.js";import"./chunk-5EAJO372.js";import"./chunk-DBMW3VUN.js";import"./chunk-KU3YHPWZ.js";import"./chunk-OKCVG7AG.js";import"./chunk-XDAFRUAJ.js";import"./chunk-7V4BQSSV.js";import"./chunk-QXQ7KVEN.js";import"./chunk-DXXHCLFC.js";import"./chunk-IQMJJN52.js";import"./chunk-QSCXXNC2.js";import"./chunk-APXJRWIJ.js";import"./chunk-CBEMXSWF.js";import"./chunk-G4K3TP2I.js";import"./chunk-YJAQZMJT.js";import"./chunk-6PIIUAZF.js";import"./chunk-ZAQGIC33.js";import"./chunk-HYJVYYAZ.js";import"./chunk-XTQUCCJH.js";import"./chunk-VZ7KXRXB.js";import{a as oe}from"./chunk-4QTH7VYE.js";import{a as ne,c as re}from"./chunk-73EHVDL5.js";import"./chunk-YWQNZRJG.js";import{a as x}from"./chunk-YKOZBFR3.js";import"./chunk-WTMCDYR3.js";import"./chunk-WMXBRC4B.js";import"./chunk-ZCRZFAOT.js";import"./chunk-RZ4F3BHX.js";import"./chunk-U5V3L5QH.js";import"./chunk-FOJHSG5M.js";import"./chunk-A7RJQJNT.js";import"./chunk-UR6MHSHU.js";import{mkdtempSync as We}from"fs";import{tmpdir as Xe}from"os";import{join as Ye}from"path";function W(e){if(e<1e3)return`${Math.max(0,Math.round(e))}ms`;let t=Math.round(e/1e3);if(t<60)return`${t}s`;let n=Math.floor(t/60);return n<60?`${n}m${String(t%60).padStart(2,"0")}s`:`${Math.floor(n/60)}h${String(n%60).padStart(2,"0")}m`}var be=e=>e===null?"none":`${e.run}@v${e.run_version}+${e.deltas}${e.cut!==void 0?` cut ${String(e.cut)}`:""}`;function Te(e,t){return[`assurance-job: job ${e.jobId} \xB7 attempt ${e.attempt} \xB7 trigger ${e.trigger} \xB7 kane-cli ${t} \xB7 ${e.env}`,`assurance-job: exploration ${e.explorationId} \xB7 run ${e.runId} \xB7 cut ${String(e.cut)} \xB7 project ${e.projectId}`,`assurance-job: cursor ${be(e.cursorFrom)} \u2192 ${be(e.cursorTo)}${e.cursorFromUnreadable?" (KANE_AJ_CURSOR_FROM unreadable: ignored)":""}`]}function Be(e){return e==null?null:typeof e=="string"?e.length>120?`${JSON.stringify(e.slice(0,117))}\u2026`:/[\s"]/.test(e)?JSON.stringify(e):e:typeof e=="number"||typeof e=="boolean"?String(e):Array.isArray(e)?`[${e.length}]`:typeof e=="object"?"{\u2026}":null}var He=new Set(["type","v","ts","kind","verb"]);function O(e,t){if(typeof t=="string")return`${e} ${t.length>400?`${t.slice(0,397)}\u2026`:t}`;let n=typeof t.type=="string"?t.type:typeof t.kind=="string"?t.kind:"line",o=[];for(let[s,r]of Object.entries(t)){if(He.has(s))continue;let u=Be(r);if(u!==null&&(o.push(`${s}=${u}`),o.length===8))break}return`${e} ${n}${o.length?` ${o.join(" ")}`:""}`}function Re(e){if(e.length===0)return["assurance-job: summary: no session ran"];let t=e.map(r=>[r.verb,r.target,r.status,r.tests===null?"-":String(r.tests),r.ms===null?"-":`${Math.round(r.ms/100)/10}s`]),n=["verb","target","status","tests","seconds"],o=n.map((r,u)=>Math.max(r.length,...t.map(a=>a[u].length))),s=r=>`assurance-job: ${r.map((u,a)=>u.padEnd(o[a])).join(" ").trimEnd()}`;return["assurance-job: summary",s(n),...t.map(s)]}var je="assurance-job-outcome/1",Se=["run_end","checkpoint","manual","catch_up"],X=e=>typeof e=="number"&&Number.isInteger(e)&&e>=0,U=/^[A-Za-z0-9][A-Za-z0-9_-]{0,127}$/;function J(e){let t;try{t=JSON.parse(e)}catch{return null}if(Array.isArray(t)){let[s,r,u,a,i,c]=t;t={export_version:s,run:r,run_version:u,deltas:a,...t.length>=6?{cut:i,provisional:c}:{}}}if(typeof t!="object"||t===null)return null;let n=t;if(typeof n.export_version!="string"||n.export_version===""||typeof n.run!="string"||n.run===""||!X(n.run_version)||!X(n.deltas))return null;let o={export_version:n.export_version,run:n.run,run_version:n.run_version,deltas:n.deltas};if(n.cut!==void 0||n.provisional!==void 0){if(n.cut!=="end"&&!X(n.cut)||typeof n.provisional!="boolean")return null;o.cut=n.cut,o.provisional=n.provisional}return o}var xe=new Set(["exploration-export/1","exploration-export/2"]);function v(e,t){return!xe.has(e.export_version)||!xe.has(t.export_version)?"unordered":e.run_version<t.run_version?"older":e.run_version>t.run_version?"at-or-past":e.deltas<t.deltas?"older":e.deltas>t.deltas?"at-or-past":!Oe(e)&&Oe(t)?"older":"at-or-past"}var Oe=e=>e.cut===void 0||e.cut==="end";function Je(e,t){let n=[],o={KANE_AJ_JOB_ID:e.KANE_AJ_JOB_ID,KANE_AJ_ATTEMPT:e.KANE_AJ_ATTEMPT,KANE_AJ_TRIGGER:e.KANE_AJ_TRIGGER,KANE_AJ_EXPLORATION_ID:e.KANE_AJ_EXPLORATION_ID,KANE_AJ_RUN_ID:e.KANE_AJ_RUN_ID,KANE_AJ_CUT:e.KANE_AJ_CUT,KANE_AJ_PROJECT_ID:e.KANE_AJ_PROJECT_ID,KANE_AJ_CURSOR_FROM:e.KANE_AJ_CURSOR_FROM,KANE_AJ_CURSOR_TO:e.KANE_AJ_CURSOR_TO,KANE_AJ_REPORT_URL:e.KANE_AJ_REPORT_URL,TESTMUAI_ENV:e.TESTMUAI_ENV,LT_USERNAME:e.LT_USERNAME,LT_ACCESS_KEY:e.LT_ACCESS_KEY},s=$=>{let S=o[$];return S===void 0||S.trim()===""?(n.push(`${$} is not set`),null):S.trim()},r={},u=s("KANE_AJ_JOB_ID");u!==null&&(U.test(u)?r.jobId=u:n.push("KANE_AJ_JOB_ID is not an id"));let a=s("KANE_AJ_ATTEMPT");a!==null&&(a==="1"||a==="2"?r.attempt=Number(a):n.push("KANE_AJ_ATTEMPT is not 1 or 2"));let i=s("KANE_AJ_TRIGGER");i!==null&&(Se.includes(i)?r.trigger=i:n.push(`KANE_AJ_TRIGGER is not one of ${Se.join(" | ")}`));let c=s("KANE_AJ_EXPLORATION_ID");c!==null&&(U.test(c)?r.explorationId=c:n.push("KANE_AJ_EXPLORATION_ID is not an id"));let f=s("KANE_AJ_RUN_ID");f!==null&&(U.test(f)?r.runId=f:n.push("KANE_AJ_RUN_ID is not an id"));let g=s("KANE_AJ_CUT");g!==null&&(g==="end"?r.cut="end":/^\d{1,9}$/.test(g)?r.cut=Number(g):n.push('KANE_AJ_CUT is not a whole number or "end"'));let h=s("KANE_AJ_PROJECT_ID");h!==null&&!U.test(h)&&n.push("KANE_AJ_PROJECT_ID is not an id");let d=o.KANE_AJ_CURSOR_FROM?.trim()??"",_=d===""?null:J(d),l=s("KANE_AJ_CURSOR_TO"),m=l===null?null:J(l);l!==null&&m===null&&n.push("KANE_AJ_CURSOR_TO is not a cursor"),m!==null&&r.runId!==void 0&&m.run!==r.runId&&n.push("KANE_AJ_CURSOR_TO names another run than KANE_AJ_RUN_ID");let p=s("TESTMUAI_ENV"),y=p==="prod"||p==="stage";p!==null&&!y&&n.push("TESTMUAI_ENV is not prod or stage");let w=s("KANE_AJ_REPORT_URL"),R=!1;if(w!==null){let $=null;try{$=new URL(w)}catch{$=null}let S=M=>M==="localhost"||M==="127.0.0.1"||M==="[::1]",P=null;if(y)try{P=t(p)}catch{P=null}$===null||!($.protocol==="https:"||$.protocol==="http:"&&S($.hostname))?n.push("KANE_AJ_REPORT_URL is not an https address"):y?P===null?n.push("TESTMUAI_BASE_URL is not a URL, so KANE_AJ_REPORT_URL can't be checked"):$.origin!==P?n.push("KANE_AJ_REPORT_URL is not on the controller's origin"):R=!0:n.push("KANE_AJ_REPORT_URL can't be checked without a valid TESTMUAI_ENV")}let N=s("LT_USERNAME"),A=s("LT_ACCESS_KEY");if(n.length>0){let $=r.jobId!==void 0&&R&&N!==null&&A!==null?{url:w,login:{username:N,accessKey:A}}:null;return{ok:!1,identity:r,message:n.join("; "),report:$}}return{ok:!0,input:{jobId:r.jobId,attempt:r.attempt,trigger:r.trigger,explorationId:r.explorationId,runId:r.runId,cut:r.cut,projectId:h,cursorFrom:_,cursorFromUnreadable:d!==""&&_===null,cursorTo:m,reportUrl:w,env:p,login:{username:N,accessKey:A}}}}function Y(e,t){return{v:je,job_id:e.jobId??null,attempt:e.attempt??null,trigger:e.trigger??null,exploration_id:e.explorationId??null,run_id:e.runId??null,cut:e.cut??null,cursor:{from:null,to:null},status:"failed",use_cases:{added:[],modified:[]},tests:{designed:0,saved:0,updated:0,failed:[],saved_cases:[]},held:[],sessions:[],credits:null,duration_s:0,kane_cli_version:t,error:null,errors:[]}}function z(e){if(e===null||e.accessKey==="")return n=>n;let t=[e.accessKey,Buffer.from(`${e.username}:${e.accessKey}`,"utf8").toString("base64")].filter(n=>n.length>=4);return n=>t.reduce((o,s)=>o.split(s).join("[redacted]"),n)}var Q=(e,t)=>t(JSON.stringify(e));async function Z(e,t,n,o={}){let s=o.fetch??fetch,r=o.backoffMs??[1e3,2e3,4e3],u=o.sleep??(i=>new Promise(c=>setTimeout(c,i))),a=`Basic ${Buffer.from(`${n.username}:${n.accessKey}`,"utf8").toString("base64")}`;for(let i=0;i<=r.length;i++){i>0&&await u(r[i-1]);try{let c=await s(e,{method:"POST",headers:{authorization:a,"content-type":"application/json"},body:t,signal:AbortSignal.timeout(3e4)});if(c.ok)return!0;if(c.status!==429&&c.status<500)return!1}catch{}}return!1}var b=class extends Error{constructor(n,o,s){super(s);this.status=n;this.code=o}},E=(e,t)=>{throw new b("failed",e,t)};async function Ce(e,t,n,o){let s;try{s=await e.sources(t)}catch(i){if(i instanceof I&&(i.code==="NO_CONTEXT"||i.code==="NOT_FOUND"))return{source:null,cursor:null};throw i}let r=s.find(i=>i.sourceId===n&&i.head!==null)??null,u=r?.media?.format==="plugin"&&r.media.plugin?.id==="explore"?r.media.plugin.fetch:void 0,a=u?.ref===o&&typeof u.cursor=="string"?J(u.cursor):null;return{source:r,cursor:a}}async function ze(e,t,n){return n.head===null||n.completeness?.sourceCid===n.head?!1:!(await e.mainNode(t,n.head)).edgesOut.some(s=>s.type==="DERIVES"&&s.other?.label==="usecase")}async function De(e,t){let n=j("explore",t?{fetchImpl:t}:{});if(n===void 0)return E("INTERNAL","this build has no connection for the explore plugin");let o=`${H().replace(/\/+$/,"")}/exploration/${encodeURIComponent(e.explorationId)}/assurance/head?cut=${e.cut}&run=${encodeURIComponent(e.runId)}`,s;try{s=await n.request({url:o,headers:{accept:"application/json"}})}catch(a){return E("INGEST_FAILED",`the controller could not be read for exploration ${e.explorationId}: ${a instanceof Error?a.message:String(a)}`)}finally{n.close()}let r={};try{r=JSON.parse(new TextDecoder().decode(s.body))}catch{r={}}if((s.status===401||s.status===403)&&E("AUTH_FAILED",`the controller refused the job's credentials (${s.status})`),s.status===409&&r.code==="RUN_ACTIVE"&&E("RUN_ACTIVE",`a run of exploration ${e.explorationId} is in progress${typeof r.active_run=="string"?` (run ${r.active_run})`:""}: its export is read once it ends`),s.status===404&&r.code==="NO_ENDED_RUN"&&E("NO_ENDED_RUN",`exploration ${e.explorationId} has no ended run yet`),s.status===409&&r.code==="CUT_SUPERSEDED")throw new b("noop",null,"");s.status===404&&r.code==="CUT_NOT_FOUND"&&E("CUT_NOT_FOUND",`cut ${e.cut} of run ${e.runId} of exploration ${e.explorationId} was never taken`),s.status!==200&&E("INGEST_FAILED",`the controller answered ${s.status} for the head of exploration ${e.explorationId}`);let u=J(JSON.stringify(r.cursor??null));return u===null?E("INGEST_FAILED",`the controller's head of exploration ${e.explorationId} carries no cursor`):u}async function Qe(e,t){let n=j("explore",t?{fetchImpl:t}:{});if(n===void 0)return!1;try{let o={exploration:e.explorationId,run:e.runId,cut:e.cut},s=await n.request({url:he(H(),o,"export"),headers:{accept:"application/json"}});return s.status!==200?!1:me(_e(s,o)).units.length===0}catch{return!1}finally{n.close()}}function L(e){return e==="MARK_REFUSED"||e==="PERMISSION_REQUIRED"?"MARK_REFUSED":e==="PROJECT_NOT_MARKED"||e==="ASSURANCE_OFF"?"PROJECT_NOT_MARKED":null}function Pe(e){return/\(CUT_NOT_FOUND\)/.test(e)?"CUT_NOT_FOUND":/is in progress/.test(e)?"RUN_ACTIVE":/no ended run/.test(e)?"NO_ENDED_RUN":/refused (kane-cli's credentials|the credential)/.test(e)?"AUTH_FAILED":"INGEST_FAILED"}async function D(e,t){let n=e.deps.now??Date.now,o=n(),s=`[${t.verb} ${t.log.target}]`,r=t.verb==="extract"||t.verb==="reconcile"?`source ${t.log.target}`:`use case ${t.log.target}`;e.diag(`[${t.log.step}] ${t.verb} starting (${r})${t.resume!==void 0?`: resuming session ${t.resume}`:""}`);let u=[],a=m=>{for(let p of m.split(`
|
|
2
|
+
import{a as q,b as Ne}from"./chunk-N4XUGIAK.js";import{d as $e}from"./chunk-KUSHV5SR.js";import"./chunk-OPR5XIPT.js";import{c as Ae,e as Ie,f as ve}from"./chunk-YF22VTR5.js";import{f as Ee,k as ye}from"./chunk-NZ7UCAN6.js";import"./chunk-6PZ3SVWE.js";import"./chunk-PKXWYYVK.js";import"./chunk-FOURJ24E.js";import"./chunk-AXOSLGQ4.js";import"./chunk-QLGQDNA3.js";import"./chunk-IT6M7OMG.js";import{g as le}from"./chunk-RM5ZVDVR.js";import"./chunk-73Y6T2UK.js";import{e as ue}from"./chunk-XMPTFXPW.js";import"./chunk-EUGFABAS.js";import"./chunk-U2VYTVKV.js";import"./chunk-HIUAUZNL.js";import"./chunk-CVVUBCB7.js";import"./chunk-JZ7GFPKZ.js";import"./chunk-77BZTEHJ.js";import"./chunk-3A4KK22B.js";import"./chunk-CB344EDO.js";import"./chunk-FNUGDPTS.js";import{a as pe}from"./chunk-6KUUSONE.js";import{a as H,b as j,d as ge,e as me,f as he,g as _e,i as we}from"./chunk-PSBR2LVL.js";import"./chunk-LZPYIFHZ.js";import{h as fe}from"./chunk-GRQKMOKE.js";import"./chunk-3CFAE36M.js";import"./chunk-GBQ4K25P.js";import"./chunk-PGESS7BW.js";import"./chunk-FWGUISUG.js";import"./chunk-C3DMMAFP.js";import"./chunk-AQ2OG2EF.js";import"./chunk-REKHAN53.js";import"./chunk-32MFECUA.js";import"./chunk-4IEQNX7F.js";import"./chunk-UVL6XQHU.js";import"./chunk-VRIZDOO5.js";import"./chunk-ZHWU6L2G.js";import"./chunk-EHB55V23.js";import"./chunk-TD6GCEIK.js";import"./chunk-5ORBAYTU.js";import{c as B}from"./chunk-XRJH4UF3.js";import"./chunk-PVN64537.js";import{a as V,ba as de,c as G,e as ie,f as ae,fa as ce}from"./chunk-RHQLDNZL.js";import"./chunk-GFLB2SHW.js";import"./chunk-2TVPA3LL.js";import"./chunk-VJGWVBZR.js";import"./chunk-22PIMG52.js";import{a as I}from"./chunk-4C7WVQOD.js";import"./chunk-5EAJO372.js";import"./chunk-DBMW3VUN.js";import"./chunk-KU3YHPWZ.js";import"./chunk-OKCVG7AG.js";import"./chunk-XDAFRUAJ.js";import"./chunk-7V4BQSSV.js";import"./chunk-QXQ7KVEN.js";import"./chunk-R6S4EJ5R.js";import"./chunk-BZEW7CSM.js";import"./chunk-QSCXXNC2.js";import"./chunk-UV7FPIBL.js";import"./chunk-CBEMXSWF.js";import"./chunk-G4K3TP2I.js";import"./chunk-YJAQZMJT.js";import"./chunk-6PIIUAZF.js";import"./chunk-ZAQGIC33.js";import"./chunk-HYJVYYAZ.js";import"./chunk-XTQUCCJH.js";import"./chunk-VZ7KXRXB.js";import{a as oe}from"./chunk-4QTH7VYE.js";import{a as ne,c as re}from"./chunk-V24LUINK.js";import"./chunk-JYH7CTF7.js";import{a as x}from"./chunk-BRWCWZE3.js";import"./chunk-WTMCDYR3.js";import"./chunk-WMXBRC4B.js";import"./chunk-ZCRZFAOT.js";import"./chunk-RZ4F3BHX.js";import"./chunk-U5V3L5QH.js";import"./chunk-FOJHSG5M.js";import"./chunk-A7RJQJNT.js";import"./chunk-UR6MHSHU.js";import{mkdtempSync as We}from"fs";import{tmpdir as Xe}from"os";import{join as Ye}from"path";function W(e){if(e<1e3)return`${Math.max(0,Math.round(e))}ms`;let t=Math.round(e/1e3);if(t<60)return`${t}s`;let n=Math.floor(t/60);return n<60?`${n}m${String(t%60).padStart(2,"0")}s`:`${Math.floor(n/60)}h${String(n%60).padStart(2,"0")}m`}var be=e=>e===null?"none":`${e.run}@v${e.run_version}+${e.deltas}${e.cut!==void 0?` cut ${String(e.cut)}`:""}`;function Te(e,t){return[`assurance-job: job ${e.jobId} \xB7 attempt ${e.attempt} \xB7 trigger ${e.trigger} \xB7 kane-cli ${t} \xB7 ${e.env}`,`assurance-job: exploration ${e.explorationId} \xB7 run ${e.runId} \xB7 cut ${String(e.cut)} \xB7 project ${e.projectId}`,`assurance-job: cursor ${be(e.cursorFrom)} \u2192 ${be(e.cursorTo)}${e.cursorFromUnreadable?" (KANE_AJ_CURSOR_FROM unreadable: ignored)":""}`]}function Be(e){return e==null?null:typeof e=="string"?e.length>120?`${JSON.stringify(e.slice(0,117))}\u2026`:/[\s"]/.test(e)?JSON.stringify(e):e:typeof e=="number"||typeof e=="boolean"?String(e):Array.isArray(e)?`[${e.length}]`:typeof e=="object"?"{\u2026}":null}var He=new Set(["type","v","ts","kind","verb"]);function O(e,t){if(typeof t=="string")return`${e} ${t.length>400?`${t.slice(0,397)}\u2026`:t}`;let n=typeof t.type=="string"?t.type:typeof t.kind=="string"?t.kind:"line",o=[];for(let[s,r]of Object.entries(t)){if(He.has(s))continue;let u=Be(r);if(u!==null&&(o.push(`${s}=${u}`),o.length===8))break}return`${e} ${n}${o.length?` ${o.join(" ")}`:""}`}function Re(e){if(e.length===0)return["assurance-job: summary: no session ran"];let t=e.map(r=>[r.verb,r.target,r.status,r.tests===null?"-":String(r.tests),r.ms===null?"-":`${Math.round(r.ms/100)/10}s`]),n=["verb","target","status","tests","seconds"],o=n.map((r,u)=>Math.max(r.length,...t.map(a=>a[u].length))),s=r=>`assurance-job: ${r.map((u,a)=>u.padEnd(o[a])).join(" ").trimEnd()}`;return["assurance-job: summary",s(n),...t.map(s)]}var je="assurance-job-outcome/1",Se=["run_end","checkpoint","manual","catch_up"],X=e=>typeof e=="number"&&Number.isInteger(e)&&e>=0,U=/^[A-Za-z0-9][A-Za-z0-9_-]{0,127}$/;function J(e){let t;try{t=JSON.parse(e)}catch{return null}if(Array.isArray(t)){let[s,r,u,a,i,c]=t;t={export_version:s,run:r,run_version:u,deltas:a,...t.length>=6?{cut:i,provisional:c}:{}}}if(typeof t!="object"||t===null)return null;let n=t;if(typeof n.export_version!="string"||n.export_version===""||typeof n.run!="string"||n.run===""||!X(n.run_version)||!X(n.deltas))return null;let o={export_version:n.export_version,run:n.run,run_version:n.run_version,deltas:n.deltas};if(n.cut!==void 0||n.provisional!==void 0){if(n.cut!=="end"&&!X(n.cut)||typeof n.provisional!="boolean")return null;o.cut=n.cut,o.provisional=n.provisional}return o}var xe=new Set(["exploration-export/1","exploration-export/2"]);function v(e,t){return!xe.has(e.export_version)||!xe.has(t.export_version)?"unordered":e.run_version<t.run_version?"older":e.run_version>t.run_version?"at-or-past":e.deltas<t.deltas?"older":e.deltas>t.deltas?"at-or-past":!Oe(e)&&Oe(t)?"older":"at-or-past"}var Oe=e=>e.cut===void 0||e.cut==="end";function Je(e,t){let n=[],o={KANE_AJ_JOB_ID:e.KANE_AJ_JOB_ID,KANE_AJ_ATTEMPT:e.KANE_AJ_ATTEMPT,KANE_AJ_TRIGGER:e.KANE_AJ_TRIGGER,KANE_AJ_EXPLORATION_ID:e.KANE_AJ_EXPLORATION_ID,KANE_AJ_RUN_ID:e.KANE_AJ_RUN_ID,KANE_AJ_CUT:e.KANE_AJ_CUT,KANE_AJ_PROJECT_ID:e.KANE_AJ_PROJECT_ID,KANE_AJ_CURSOR_FROM:e.KANE_AJ_CURSOR_FROM,KANE_AJ_CURSOR_TO:e.KANE_AJ_CURSOR_TO,KANE_AJ_REPORT_URL:e.KANE_AJ_REPORT_URL,TESTMUAI_ENV:e.TESTMUAI_ENV,LT_USERNAME:e.LT_USERNAME,LT_ACCESS_KEY:e.LT_ACCESS_KEY},s=$=>{let S=o[$];return S===void 0||S.trim()===""?(n.push(`${$} is not set`),null):S.trim()},r={},u=s("KANE_AJ_JOB_ID");u!==null&&(U.test(u)?r.jobId=u:n.push("KANE_AJ_JOB_ID is not an id"));let a=s("KANE_AJ_ATTEMPT");a!==null&&(a==="1"||a==="2"?r.attempt=Number(a):n.push("KANE_AJ_ATTEMPT is not 1 or 2"));let i=s("KANE_AJ_TRIGGER");i!==null&&(Se.includes(i)?r.trigger=i:n.push(`KANE_AJ_TRIGGER is not one of ${Se.join(" | ")}`));let c=s("KANE_AJ_EXPLORATION_ID");c!==null&&(U.test(c)?r.explorationId=c:n.push("KANE_AJ_EXPLORATION_ID is not an id"));let f=s("KANE_AJ_RUN_ID");f!==null&&(U.test(f)?r.runId=f:n.push("KANE_AJ_RUN_ID is not an id"));let g=s("KANE_AJ_CUT");g!==null&&(g==="end"?r.cut="end":/^\d{1,9}$/.test(g)?r.cut=Number(g):n.push('KANE_AJ_CUT is not a whole number or "end"'));let h=s("KANE_AJ_PROJECT_ID");h!==null&&!U.test(h)&&n.push("KANE_AJ_PROJECT_ID is not an id");let d=o.KANE_AJ_CURSOR_FROM?.trim()??"",_=d===""?null:J(d),l=s("KANE_AJ_CURSOR_TO"),m=l===null?null:J(l);l!==null&&m===null&&n.push("KANE_AJ_CURSOR_TO is not a cursor"),m!==null&&r.runId!==void 0&&m.run!==r.runId&&n.push("KANE_AJ_CURSOR_TO names another run than KANE_AJ_RUN_ID");let p=s("TESTMUAI_ENV"),y=p==="prod"||p==="stage";p!==null&&!y&&n.push("TESTMUAI_ENV is not prod or stage");let w=s("KANE_AJ_REPORT_URL"),R=!1;if(w!==null){let $=null;try{$=new URL(w)}catch{$=null}let S=M=>M==="localhost"||M==="127.0.0.1"||M==="[::1]",P=null;if(y)try{P=t(p)}catch{P=null}$===null||!($.protocol==="https:"||$.protocol==="http:"&&S($.hostname))?n.push("KANE_AJ_REPORT_URL is not an https address"):y?P===null?n.push("TESTMUAI_BASE_URL is not a URL, so KANE_AJ_REPORT_URL can't be checked"):$.origin!==P?n.push("KANE_AJ_REPORT_URL is not on the controller's origin"):R=!0:n.push("KANE_AJ_REPORT_URL can't be checked without a valid TESTMUAI_ENV")}let N=s("LT_USERNAME"),A=s("LT_ACCESS_KEY");if(n.length>0){let $=r.jobId!==void 0&&R&&N!==null&&A!==null?{url:w,login:{username:N,accessKey:A}}:null;return{ok:!1,identity:r,message:n.join("; "),report:$}}return{ok:!0,input:{jobId:r.jobId,attempt:r.attempt,trigger:r.trigger,explorationId:r.explorationId,runId:r.runId,cut:r.cut,projectId:h,cursorFrom:_,cursorFromUnreadable:d!==""&&_===null,cursorTo:m,reportUrl:w,env:p,login:{username:N,accessKey:A}}}}function Y(e,t){return{v:je,job_id:e.jobId??null,attempt:e.attempt??null,trigger:e.trigger??null,exploration_id:e.explorationId??null,run_id:e.runId??null,cut:e.cut??null,cursor:{from:null,to:null},status:"failed",use_cases:{added:[],modified:[]},tests:{designed:0,saved:0,updated:0,failed:[],saved_cases:[]},held:[],sessions:[],credits:null,duration_s:0,kane_cli_version:t,error:null,errors:[]}}function z(e){if(e===null||e.accessKey==="")return n=>n;let t=[e.accessKey,Buffer.from(`${e.username}:${e.accessKey}`,"utf8").toString("base64")].filter(n=>n.length>=4);return n=>t.reduce((o,s)=>o.split(s).join("[redacted]"),n)}var Q=(e,t)=>t(JSON.stringify(e));async function Z(e,t,n,o={}){let s=o.fetch??fetch,r=o.backoffMs??[1e3,2e3,4e3],u=o.sleep??(i=>new Promise(c=>setTimeout(c,i))),a=`Basic ${Buffer.from(`${n.username}:${n.accessKey}`,"utf8").toString("base64")}`;for(let i=0;i<=r.length;i++){i>0&&await u(r[i-1]);try{let c=await s(e,{method:"POST",headers:{authorization:a,"content-type":"application/json"},body:t,signal:AbortSignal.timeout(3e4)});if(c.ok)return!0;if(c.status!==429&&c.status<500)return!1}catch{}}return!1}var b=class extends Error{constructor(n,o,s){super(s);this.status=n;this.code=o}},E=(e,t)=>{throw new b("failed",e,t)};async function Ce(e,t,n,o){let s;try{s=await e.sources(t)}catch(i){if(i instanceof I&&(i.code==="NO_CONTEXT"||i.code==="NOT_FOUND"))return{source:null,cursor:null};throw i}let r=s.find(i=>i.sourceId===n&&i.head!==null)??null,u=r?.media?.format==="plugin"&&r.media.plugin?.id==="explore"?r.media.plugin.fetch:void 0,a=u?.ref===o&&typeof u.cursor=="string"?J(u.cursor):null;return{source:r,cursor:a}}async function ze(e,t,n){return n.head===null||n.completeness?.sourceCid===n.head?!1:!(await e.mainNode(t,n.head)).edgesOut.some(s=>s.type==="DERIVES"&&s.other?.label==="usecase")}async function De(e,t){let n=j("explore",t?{fetchImpl:t}:{});if(n===void 0)return E("INTERNAL","this build has no connection for the explore plugin");let o=`${H().replace(/\/+$/,"")}/exploration/${encodeURIComponent(e.explorationId)}/assurance/head?cut=${e.cut}&run=${encodeURIComponent(e.runId)}`,s;try{s=await n.request({url:o,headers:{accept:"application/json"}})}catch(a){return E("INGEST_FAILED",`the controller could not be read for exploration ${e.explorationId}: ${a instanceof Error?a.message:String(a)}`)}finally{n.close()}let r={};try{r=JSON.parse(new TextDecoder().decode(s.body))}catch{r={}}if((s.status===401||s.status===403)&&E("AUTH_FAILED",`the controller refused the job's credentials (${s.status})`),s.status===409&&r.code==="RUN_ACTIVE"&&E("RUN_ACTIVE",`a run of exploration ${e.explorationId} is in progress${typeof r.active_run=="string"?` (run ${r.active_run})`:""}: its export is read once it ends`),s.status===404&&r.code==="NO_ENDED_RUN"&&E("NO_ENDED_RUN",`exploration ${e.explorationId} has no ended run yet`),s.status===409&&r.code==="CUT_SUPERSEDED")throw new b("noop",null,"");s.status===404&&r.code==="CUT_NOT_FOUND"&&E("CUT_NOT_FOUND",`cut ${e.cut} of run ${e.runId} of exploration ${e.explorationId} was never taken`),s.status!==200&&E("INGEST_FAILED",`the controller answered ${s.status} for the head of exploration ${e.explorationId}`);let u=J(JSON.stringify(r.cursor??null));return u===null?E("INGEST_FAILED",`the controller's head of exploration ${e.explorationId} carries no cursor`):u}async function Qe(e,t){let n=j("explore",t?{fetchImpl:t}:{});if(n===void 0)return!1;try{let o={exploration:e.explorationId,run:e.runId,cut:e.cut},s=await n.request({url:he(H(),o,"export"),headers:{accept:"application/json"}});return s.status!==200?!1:me(_e(s,o)).units.length===0}catch{return!1}finally{n.close()}}function L(e){return e==="MARK_REFUSED"||e==="PERMISSION_REQUIRED"?"MARK_REFUSED":e==="PROJECT_NOT_MARKED"||e==="ASSURANCE_OFF"?"PROJECT_NOT_MARKED":null}function Pe(e){return/\(CUT_NOT_FOUND\)/.test(e)?"CUT_NOT_FOUND":/is in progress/.test(e)?"RUN_ACTIVE":/no ended run/.test(e)?"NO_ENDED_RUN":/refused (kane-cli's credentials|the credential)/.test(e)?"AUTH_FAILED":"INGEST_FAILED"}async function D(e,t){let n=e.deps.now??Date.now,o=n(),s=`[${t.verb} ${t.log.target}]`,r=t.verb==="extract"||t.verb==="reconcile"?`source ${t.log.target}`:`use case ${t.log.target}`;e.diag(`[${t.log.step}] ${t.verb} starting (${r})${t.resume!==void 0?`: resuming session ${t.resume}`:""}`);let u=[],a=m=>{for(let p of m.split(`
|
|
3
3
|
`)){if(p.trim()==="")continue;let y;try{y=JSON.parse(p)}catch{e.diag(O(s,e.redact(p)));continue}u.push(y);let w;try{w=JSON.parse(e.redact(p))}catch{w=e.redact(p)}e.diag(O(s,w))}},i=m=>{for(let p of m.split(`
|
|
4
4
|
`))p.trim()!==""&&e.diag(O(`${s} stderr:`,e.redact(p)))},c=ue("ndjson",t.verb,{stdout:a,stderr:i}),f=null,g=await ye({verb:t.verb,mode:"agent",choice:e.choice,basicAuth:e.basicAuth,start:t.resume!==void 0?{kind:"resume",sessionId:t.resume}:{kind:"new",body:{projectId:e.input.projectId,verb:t.verb,mode:"agent",...t.body}},run:t.run,io:c,check:e.deps.check??Ee,onProgress:()=>{},onOpened:m=>{f=m.sessionId,e.diag(`[${t.log.step}] ${t.verb} started: session ${m.sessionId} (${r})`)},...t.step?{ingest:[t.step.step]}:{},signals:!1,onRefusal:m=>{u.push({type:"error",code:m.code??null,message:m.message}),e.diag(O(s,{type:"refused",code:m.code??null,message:e.redact(m.message)}))},...e.deps.run?{testing:e.deps.run}:{}}),h=t.step?t.step.ended():null;f??=h?.sid??null,f!==null&&!e.outcome.sessions.includes(f)&&e.outcome.sessions.push(f);let d=null;for(let m of u){let p=m.credits_consumed??m.credits;typeof p=="number"&&Number.isFinite(p)&&(d=(d??0)+p)}d!==null&&(e.credits=(e.credits??0)+d);let _=n()-o;e.diag(`[${t.log.step}] ${t.verb} ended exit ${g} \xB7 ${W(_)}${d!==null?` \xB7 ${d} credits`:""}${f!==null?` \xB7 session ${f}`:" \xB7 no session opened"}`);let l={verb:t.verb,target:t.log.target,status:g===0?"ran":g===3?"paused":`exit ${g}`,tests:null,ms:_};return e.summary.push(l),{code:g,sid:f,lines:u,end:h,row:l}}function Ke(e,t,n,o,s,r){s.tests=r.tests,r.ok?s.status=s.status==="ran"?"saved":`saved (${s.status})`:s.status="save failed",e.diag(r.ok?`[${t}] ${n} saved: session ${o} \xB7 ${r.tests} test(s)`:`[${t}] ${n} NOT saved: session ${o} \xB7 ${r.message}`)}async function Me(e,t){let n=0,o="",s=null,r=new Proxy(e.person,{get(a,i,c){let f=Reflect.get(a,i,c);return i!=="land"||typeof f!="function"?f:async(...g)=>(s=await f.apply(a,g),s)}}),u=await $e({person:r,projectId:e.input.projectId,projectName:e.choice.projectName,sid:t,mode:"agent",yes:!0,confirm:async()=>!0,onProgress:a=>{let i=a;i.kind==="save"&&i.phase==="check"&&(n=i.counts?.tests??0)},emit:a=>{let i=a;i.type==="error"&&typeof i.message=="string"&&(o=i.message)},print:()=>{}});return u===0&&s!==null&&await et(e,t,s,n),u===0?{ok:!0,tests:n,message:o}:{ok:!1,tests:n,message:o||`the save of session ${t} ended with exit ${u}`}}async function F(e,t,n){let o=new Array(e.length),s=0,r=async()=>{for(;s<e.length;){let u=s++;o[u]=await n(e[u])}};return await Promise.all(Array.from({length:Math.min(t,e.length)},r)),o}function Ze(e,t){for(let n of t){let o=new Map;for(let s of ie(n)){let r=e.get(s.old);r!==void 0&&e.delete(s.old),s.new!==null&&o.set(s.new,r?.change??"updated")}for(let s of G(n)){if(s.label!=="test")continue;let r=typeof s.content.definitionId=="string"?s.content.definitionId:null;e.set(s.cid,{change:o.get(s.cid)??"added",definitionId:r})}}}async function et(e,t,n,o){let s=Array.from({length:Math.max(0,n.position-n.basePosition)},(u,a)=>n.basePosition+1+a),r;try{r=await F(s,8,u=>e.person.mainRecord(e.input.projectId,u))}catch(u){e.savedUnlisted+=o,e.diag(`assurance-job: session ${t}'s landed records couldn't be read (${u instanceof Error?u.message:String(u)}): its ${o} test(s) counted, not listed`);return}Ze(e.savedTests,r.map(u=>u.record))}async function tt(e,t,n){let{person:o}=e,s=Date.now(),r=(await o.project(t))?.mainPosition??0,u=[];for(let a=1;a<=r;a+=1){let{record:i}=await o.mainRecord(t,a);for(let c of G(i))c.label==="source"&&c.content.source_id===n&&!u.includes(c.cid)&&u.push(c.cid)}return e.diag(`assurance-job: scope walk read ${r} main position(s) in ${Date.now()-s}ms, ${u.length} version(s) of ${n}`),u}async function se(e,t,n){let o=new Set;for(let s of await tt(e,t,n)){let r=await e.person.mainNode(t,s);for(let u of r.edgesOut)u.type==="DERIVES"&&u.other?.label==="usecase"&&u.other.name&&o.add(u.other.name)}return o}async function st(e,t,n){return(await e.stale(t)).some(o=>o.label==="usecase"&&o.name!==null&&n.has(o.name))}function te(e,t){let n=null;for(let o of t){if(o.type==="extract_use_cases"&&Array.isArray(o.use_cases))for(let s of o.use_cases)typeof s.id=="string"&&!e.outcome.use_cases.added.includes(s.id)&&e.outcome.use_cases.added.push(s.id);if(o.type==="reconcile_use_cases"&&Array.isArray(o.use_cases))for(let s of o.use_cases)s.state==="new"&&typeof s.id=="string"&&!e.outcome.use_cases.added.includes(s.id)&&e.outcome.use_cases.added.push(s.id);if(o.type==="reconcile_held"&&Array.isArray(o.held))for(let s of o.held)typeof s.ref=="string"&&!e.outcome.held.some(r=>r.ref===s.ref)&&e.outcome.held.push({ref:s.ref,why:typeof s.why=="string"?s.why:""});o.type==="error"&&n===null&&(n={code:typeof o.code=="string"?o.code:"",message:typeof o.message=="string"?o.message:""})}return{error:n}}var nt=e=>`resume it with \`kane-cli design tests --resume ${e} --mode override\``,rt={connection_lost:{why:"it lost its connection to the project",resumable:!0},not_accepted:{why:"the project didn't accept a save",resumable:!0},computer_slept:{why:"its hold on the session lapsed",resumable:!0},resumed_elsewhere:{why:"the session was resumed elsewhere",resumable:!1}};function ot(e){let t=e.filter(a=>a.type==="session_paused");if(t.length===0)return null;let n=Math.max(...t.map(a=>Array.isArray(a.pending_questions)?a.pending_questions.length:0)),o=t.map(a=>typeof a.reason=="string"?rt[a.reason]:void 0).find(a=>a!==void 0);if(o!==void 0)return{questions:n,...o};let s=t.some(a=>a.crashed===!0),r=t.map(a=>a.cause?.message).find(a=>typeof a=="string"),u=s?"its agent stopped mid-turn":r!==void 0?`the model service did not answer: ${String(r)}`:"its checkpoint wasn't acknowledged in time";return{questions:n,why:u,resumable:!0}}var T=(e,t,n)=>{e.failure??={code:t,message:n},e.errors.push({code:t,message:n})},Ve=(e,t)=>e==="design"?nt(t):e==="evolve"?"resume or discard it from the project's sessions (`kane-cli context sessions`)":`resume it with \`kane-cli context extract --resume ${t} --mode override\``;function it(e,t,n,o,s){let r=e==="extract"||e==="reconcile"?"the next job reviews the source again":e==="design"?"the next job designs it again":"the next job evolves it again";switch(s){case"paused":case"running":return`${n}; session ${o} is left ${s==="paused"?"paused":"open"}: ${Ve(e,o)}`;case"discarded":return`whose run discarded session ${o}, which held nothing: ${r}`;case"saved":return`${n}; session ${o} was saved already, with nothing of this run in it`;case"failed":return`${n}; session ${o} ended failed: ${r}`;case"ready_to_save":return`${n}; session ${o} is left unsaved, ready to save with nothing in it: ${r}`;default:return`${n}; session ${o}'s state couldn't be read after it, so it is left as it is`}}var at=e=>e.scope?.position??e.basePosition;async function Ge(e,t,n){let o=t.resumeVerb??t.verb,s=n;for(let r=!1;;r=!0){let u=s.code===3&&s.sid!==null?ot(s.lines):null;if(u===null)return{go:s};let a=s.sid,i=await e.person.getSession(a).catch(()=>null),c=i===null?null:V(i),f=`[${t.step}] ${t.verb} ${t.target} paused (${u.why}; ${u.questions} question(s) pending)`;if(c==="ready_to_save"||c==="saved")return e.diag(`${f}: decision save, its session finished`),s.row.status=r?"paused, resumed, finished":"paused, finished",{go:{...s,code:0}};if(c==="failed"||c==="discarded"||c===null){e.diag(`${f}: decision fail, its session ${c===null?"unread":c}`),s.row.status="failed (paused)";let h=c==="failed"?"ended failed":c==="discarded"?"was discarded":"couldn't be read";return{failed:`${t.target}: its ${t.verb} paused (${u.why}) and its session ${a} ${h}`}}if(!r&&u.questions===0&&u.resumable){e.diag(`${f}: decision resume once`),e.diag(`assurance-job: ${t.target}: its ${t.verb} paused with no question pending (${u.why}); resumed once`),s.row.status="paused, resumed";let h=await t.resume(a);if(s={...h,sid:h.sid??a,end:h.end??s.end},s.code!==0){if(s.code===3)continue;return{go:s}}let d=await e.person.getSession(a).catch(()=>null),_=d===null?!1:ce(await de(e.person,t.projectId,a).catch(()=>({})),at(d)>d.basePosition),l=t.verb==="design"||t.verb==="evolve"||s.lines.some(y=>y.type==="session_complete"||y.type==="done");if(_&&l)return{go:s};let m=l?"which left nothing to save":"which never reached its end",p=d===null?"unread":V(d);return e.diag(`[${t.step}] ${t.verb} ${t.target} resumed once through ${o}, ${m}: decision fail, nothing saved`),s.row.status="failed (resumed, nothing to save)",{failed:`${t.target}: its ${t.verb} paused (${u.why}); resumed once through ${o}, ${it(t.verb,o,m,a,p)}`}}let g=r?u.questions>0?"paused again, with a question pending":`paused twice with no question pending (${u.why})`:u.questions>0?"paused with a question pending":`paused and was not resumed here (${u.why})`;return e.diag(`${f}: decision fail, session left paused`),s.row.status=r?"failed (paused twice)":"failed (paused)",{failed:`${t.target}: its ${t.verb} ${g}; session ${a} is left paused: ${Ve(t.verb,a)}`}}}async function Ue(e,t,n){let{input:o,person:s}=e,r=`explore://${o.explorationId}?run=${o.runId}&cut=${o.cut}`,u=fe().route(r,pe);if(u===null||u.plugin.manifest.id!=="explore")return E("INTERNAL","this build routes explore:// to no explore plugin");let a=await Ae(r,u,void 0);if("refusal"in a)return E("INGEST_FAILED",a.refusal.message);let i=a.item,c=t.source===null,f=Ie({person:s,choice:e.choice,item:i,first:c,then:c?"extract":"review",supported:"",retryMs:e.deps.run?.retryDeadlineMs??12e4,remoteDeps:ve(e.deps.run?.remoteDeps)}),g=c?"extract":"reconcile",h=c?null:await ke(s,o.projectId),d=await D(e,{verb:g,body:{sourceId:i.sourceId},run:{source:i.sourceId,override:!0},step:f,log:{step:5,target:n}}),_=te(e,d.lines),l=p=>p!==void 0&&/\(CUT_SUPERSEDED\)/.test(p);if(l(d.end?.refused?.refusal.message)||l(_.error?.message))throw d.row.status="superseded",e.diag(`[5] the cut was superseded by a later one: nothing to do here${d.sid!==null?`; session ${d.sid} discarded`:""}`),d.sid!==null&&(await s.discard(d.sid).catch(()=>{}),e.outcome.sessions=e.outcome.sessions.filter(p=>p!==d.sid)),new b("noop",null,"");if(d.end?.refused&&E(L(d.end.refused.refusal.code)??Pe(d.end.refused.refusal.message),d.end.refused.refusal.message),!c&&d.end?.added==="unchanged"&&d.end.behind===0&&!d.end.unread)return d.row.status="nothing to read",e.diag(`assurance-job: the review of ${n} found nothing to read (unchanged, no use case behind, its head read)${d.sid!==null?`; session ${d.sid} discarded`:""}`),d.sid!==null&&(await s.discard(d.sid).catch(()=>{}),e.outcome.sessions=e.outcome.sessions.filter(p=>p!==d.sid)),"unchanged";if(d.sid===null&&E(_.error?L(_.error.code)??Pe(_.error.message):"INGEST_FAILED",_.error?.message??`the ${g} opened no session (exit ${d.code})`),d.code===3){let p=await Ge(e,{verb:g,target:n,step:5,projectId:o.projectId,resumeVerb:"extract",resume:y=>D(e,{verb:"extract",body:{},run:{source:i.sourceId,override:!0},resume:y,log:{step:5,target:n}})},d);"failed"in p?E("INGEST_FAILED",p.failed):p.go!==d&&(d=p.go,_=te(e,d.lines))}d.code===3&&e.diag(`[5] ${g} ended exit 3 with no pause said: decision fail, nothing saved; session ${d.sid} left as it is`),d.code===3&&E("INGEST_FAILED",`the ${g} session ${d.sid} paused before it ended`);for(let p of d.lines)p.type!=="error"||p.code!=="DESIGN_CHILD_FAILED"||typeof p.use_case!="string"||(e.outcome.tests.failed.includes(p.use_case)||e.outcome.tests.failed.push(p.use_case),T(e,"DESIGN_FAILED",`${p.use_case}: ${typeof p.message=="string"?p.message:"its redesign failed"}`));d.code!==0&&T(e,"INGEST_FAILED",_.error?.message??`the ${g} session ${d.sid} ended with exit ${d.code}`);let m=await Me(e,d.sid);if(Ke(e,5,g,d.sid,d.row,m),!m.ok&&d.code!==0&&E("INGEST_FAILED",`the ${g} session ${d.sid} ended with exit ${d.code} before it finished: ${_.error?.message??m.message}`),m.ok||E("SAVE_FAILED",`the ${g} session ${d.sid} was not saved: ${m.message}`),e.outcome.tests.designed+=m.tests,h!==null){let p=await se(e,o.projectId,n);for(let[y,w]of await ke(s,o.projectId))p.has(y)&&h.has(y)&&h.get(y)!==w&&!e.outcome.use_cases.modified.includes(y)&&e.outcome.use_cases.modified.push(y)}return d.end?.added??null}async function ke(e,t){let n=new Map,o=[];try{o=await e.nodes(t,"usecase")}catch(s){if(s instanceof I&&(s.code==="NO_CONTEXT"||s.code==="NOT_FOUND"))return n;throw s}for(let s of o)s.name!==null&&s.trust!=="archived"&&n.set(s.name,s.cid);return n}var C=e=>`run ${e.run} (run_version ${e.run_version}, deltas ${e.deltas}${e.cut!==void 0?`, cut ${String(e.cut)}`:""})`;function ut(e,t){return v(e,t)==="unordered"?"unordered":v(e,t)==="at-or-past"&&v(t,e)==="at-or-past"}function Le(e,t,n=new Set,o=new Set){let s=r=>t.has(r.id)&&r.upToDate==="tests_out_of_date"||r.upToDate==="yes"&&n.has(r.id);return[...e.filter(r=>!t.has(r.id)&&r.upToDate==="yes"&&!n.has(r.id)).map(r=>({id:r.id,verb:o.has(r.id)?"hold":"design"})),...e.filter(s).map(r=>({id:r.id,verb:"evolve"}))]}var ee="designed, no testable scenario";async function dt(e,t){let{person:n,input:o}=e,s=new Set;if(t.length===0)return s;let r=new Set(t),u=[];try{u=await n.edges(o.projectId,"belongs_to")}catch(i){if(!(i instanceof I&&(i.code==="NO_CONTEXT"||i.code==="NOT_FOUND")))throw i}if(u.length>0){let i=new Map((await n.nodes(o.projectId,"usecase")).flatMap(f=>f.name!==null?[[f.cid,f.name]]:[])),c=[...new Set(u.map(f=>f.dst).filter(f=>!i.has(f)))];for(let[f,g]of await F(c,8,async h=>[h,await n.mainNode(o.projectId,h).catch(()=>null)]))g?.label==="usecase"&&g.name!==null&&i.set(f,g.name);for(let f of u){let g=i.get(f.dst);g!==void 0&&r.has(g)&&s.add(g)}}let a=t.filter(i=>!s.has(i));for(let[i,c]of await F(a,8,async f=>[f,await n.listSessions(o.projectId,{useCase:f})]))c.some(f=>f.verb==="design"&&f.useCase===i&&f.scope?.state==="finalized")&&s.add(i);return s}async function Fe(e,t){let n=new Set,o=async r=>(await e.mainNode(t,r)).edgesOut.find(i=>i.type==="belongs_to"&&i.other?.label==="usecase")?.other?.name??null,s;try{s=await e.stale(t)}catch(r){if(r instanceof I&&(r.code==="NO_CONTEXT"||r.code==="NOT_FOUND"))return n;throw r}for(let r of s){if(r.freshness!=="stale"||!["ac","scenario","test"].includes(r.label))continue;let u=await e.mainNode(t,r.cid),a=null;if(r.label==="scenario")a=u.edgesOut.find(i=>i.type==="belongs_to"&&i.other?.label==="usecase")?.other?.name??null;else if(r.label==="ac"){let i=u.edgesOut.find(c=>c.type==="scoped_to");i?.other?.label==="usecase"?a=i.other.name??null:i?.other?.label==="scenario"&&(a=await o(i.dst))}else if(r.label==="test"){let i=u.edgesOut.find(c=>c.type==="automates"&&c.other?.label==="scenario");i&&(a=await o(i.dst))}a!==null&&n.add(a)}return n}async function ct(e,t,n,o,s){let r=(await e.listSessions(t,{useCase:n})).filter(p=>p.verb==="evolve"&&p.useCase===n&&p.scope?.state==="finalized");if(r.length===0)return null;let u=Math.max(...r.map(p=>p.scope.position)),[a,i]=await Promise.all([e.nodes(t,"usecase"),e.nodes(t,"source")]);if((a.find(p=>p.name===n)?.position??Number.POSITIVE_INFINITY)>u)return null;let f=i.filter(p=>p.title===o).map(p=>p.position);if(f.length===0)return null;let g=Math.max(...f),h=`its last evolve landed at position ${u}`;if(g<=u)return{landedAt:u,why:`${h}; nothing it rests on has moved since; still out of date (upstream); not retried until the source moves`};if(s.cut==="end")return null;let d=f.filter(p=>p<=u);if(d.length===0)return null;let l=(await e.mainRecord(t,Math.max(...d))).record.media?.[o]?.plugin?.fetch?.cursor,m=typeof l=="string"?ge(l)?.run:void 0;return m===void 0||m!==s.runId?null:{landedAt:u,why:`${h}, while the source was of run ${m}; this run's cuts don't retry it; still out of date (upstream); retried at the run's end or in a new run`}}async function lt(e,t){let{person:n,input:o,outcome:s}=e,r=await se(e,o.projectId,t);for(let l of s.use_cases.added)r.add(l);let u=(await q(n,o.projectId,["usecase"])).filter(l=>r.has(l.id)&&l.upToDate!=="archived"),a=await Ne(n,o.projectId),i=await Fe(n,o.projectId),c=Le(u,a,i).filter(l=>l.verb==="design").map(l=>l.id),f=await dt(e,c),g=Le(u,a,i,f),h=new Map;for(let{id:l,verb:m}of g){let p=m==="evolve"?await ct(n,o.projectId,l,t,{cut:o.cut,runId:o.runId}):null;p!==null&&h.set(l,p)}let d=l=>g.filter(m=>m.verb===l&&!h.has(m.id)).map(m=>m.id).join(", ")||"none",_=[...g.filter(l=>l.verb==="hold").map(l=>`${l.id} (${ee})`),...[...h].map(([l,m])=>`${l} (${m.why})`)].join("; ")||"none";e.diag(`[6] targets: design ${d("design")} \xB7 evolve ${d("evolve")} \xB7 held ${_}`);for(let{id:l,verb:m}of g){if(m==="hold"){s.held.some(A=>A.ref===l)||s.held.push({ref:l,why:ee}),e.summary.push({verb:"design",target:l,status:"held",tests:null,ms:null}),e.diag(`[6] design ${l} held: ${ee}; no session`);continue}let p=h.get(l)??null;if(p!==null){let A=p.why;s.held.some($=>$.ref===l)||s.held.push({ref:l,why:A}),e.summary.push({verb:m,target:l,status:"held",tests:null,ms:null}),T(e,"DESIGN_FAILED",`${l}: ${A}`);continue}let y={ref:l,useCase:l,override:!0},w=m==="design"?await D(e,{verb:"design",body:{useCase:l},run:{useCase:l,allowUnreviewed:!0,override:!0},log:{step:6,target:l}}):await D(e,{verb:"evolve",body:{useCase:l},run:{ref:l,useCase:l,override:!0,answer:[`evolve:${l}=proceed`]},log:{step:6,target:l}});if(w.code===3){let A=await Ge(e,{verb:m,target:l,step:6,projectId:o.projectId,resume:$=>D(e,{verb:m,body:{},run:m==="design"?{allowUnreviewed:!0,override:!0}:y,resume:$,log:{step:6,target:l}})},w);if("failed"in A){s.tests.failed.push(l),T(e,"DESIGN_FAILED",A.failed);continue}w=A.go}let R=te(e,w.lines);if(m==="evolve"&&R.error?.code==="NOTHING_CHANGED"){w.row.status="nothing changed",e.diag(`assurance-job: ${l}: its evolve found nothing changed in its design; left as it is`),w.sid!==null&&(s.sessions=s.sessions.filter(A=>A!==w.sid));continue}if(w.code!==0||w.sid===null){w.row.status=`failed (exit ${w.code})`,s.tests.failed.push(l),T(e,"DESIGN_FAILED",`${l}: ${R.error?.message??`the ${m} ended with exit ${w.code}`}`);continue}let N=await Me(e,w.sid);if(Ke(e,6,m,w.sid,w.row,N),s.tests.designed+=N.tests,!N.ok){s.tests.failed.push(l),T(e,"SAVE_FAILED",`${l}: ${N.message}`);continue}if(m==="evolve"){let A=(await q(n,o.projectId,["usecase"])).find($=>$.id===l);A?.upToDate==="tests_out_of_date"||(await Fe(n,o.projectId)).has(l)?(w.row.status="saved, still out of date",s.tests.failed.push(l),T(e,"DESIGN_FAILED",`${l}: its evolve was saved, and its ${A?.upToDate==="tests_out_of_date"?"tests are":"design is"} still out of date`)):s.use_cases.modified.includes(l)||s.use_cases.modified.push(l)}}await pt(e)}async function ft(e,t){try{return await e.nodes(t,"test")}catch(n){if(n instanceof I&&(n.code==="NO_CONTEXT"||n.code==="NOT_FOUND"))return[];throw n}}async function pt(e){let{person:t,input:n,outcome:o}=e;if(e.savedTests.size===0)return;let s=new Map((await ft(t,n.projectId)).map(a=>[a.cid,a])),r=[...e.savedTests].flatMap(([a,i])=>{let c=s.get(a)?.name??null;return c!==null?[{cid:a,name:c,...i}]:[]}),u=await F(r,8,async a=>{try{let i=a.definitionId??String((await t.mainNode(n.projectId,a.cid)).content.definitionId??""),c=await t.testCase(n.projectId,a.name,i);return"linked"in c?{test:a.name,change:a.change,case_id:c.linked.caseId,tc:c.linked.internalId,refused:null}:{test:a.name,change:a.change,case_id:null,tc:null,refused:c.refused.code??"REFUSED"}}catch(i){return{test:a.name,change:a.change,case_id:null,tc:null,refused:i instanceof I?i.code:"UNREAD"}}});o.tests.saved_cases.push(...u)}function gt(e,t){return new URL(ne(e,t).controllerBaseUrl).origin}async function Wt(e={}){let t=e.env??process.env,n=e.out??(d=>{process.stdout.write(`${d}
|
|
5
5
|
`)}),o=e.now??Date.now,s=o(),r=Je(t,d=>gt(d,t));if(!r.ok){let d=Y(r.identity,x);d.status="failed",d.error={code:"INPUT_INVALID",message:r.message},d.errors=[d.error];let _=typeof t.LT_ACCESS_KEY=="string"&&t.LT_ACCESS_KEY!==""?{username:t.LT_USERNAME??"",accessKey:t.LT_ACCESS_KEY}:null,l=Q(d,z(_));return r.report!==null&&(await Z(r.report.url,l,r.report.login,e.post)||(e.diag??(p=>{process.stderr.write(`${p}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { createRequire } from 'module'; const require = createRequire(import.meta.url);
|
|
2
|
-
import{a,b}from"./chunk-
|
|
2
|
+
import{a,b}from"./chunk-HHF7AM3D.js";import"./chunk-UWQ4KXLB.js";import"./chunk-BRWCWZE3.js";import"./chunk-UR6MHSHU.js";export{b as ensureHyperexecuteBinary,a as hyperexecuteDownloadUrl};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { createRequire } from 'module'; const require = createRequire(import.meta.url);
|
|
2
|
-
import{a,b}from"./chunk-
|
|
2
|
+
import{a,b}from"./chunk-3RJRCAUX.js";import"./chunk-NNVHWFLI.js";import"./chunk-PZOQ2IQK.js";import"./chunk-FNBHP75S.js";import"./chunk-BSRSXYDZ.js";import"./chunk-CB4ARIHR.js";import"./chunk-TCK7WR3M.js";import"./chunk-WMGKUERB.js";import"./chunk-2EKLTUY2.js";import"./chunk-73Y6T2UK.js";import"./chunk-XMPTFXPW.js";import"./chunk-SMXABALN.js";import"./chunk-WN5VKKJ3.js";import"./chunk-HCBYKLMW.js";import"./chunk-UVL6XQHU.js";import"./chunk-VRIZDOO5.js";import"./chunk-ZHWU6L2G.js";import"./chunk-JBUKEIYL.js";import"./chunk-W5EDS4DF.js";import"./chunk-ZCIWQHCO.js";import"./chunk-5ORBAYTU.js";import"./chunk-5EAJO372.js";import"./chunk-DBMW3VUN.js";import"./chunk-KU3YHPWZ.js";import"./chunk-OKCVG7AG.js";import"./chunk-XDAFRUAJ.js";import"./chunk-7V4BQSSV.js";import"./chunk-G4K3TP2I.js";import"./chunk-YJAQZMJT.js";import"./chunk-6PIIUAZF.js";import"./chunk-ZAQGIC33.js";import"./chunk-HYJVYYAZ.js";import"./chunk-VZ7KXRXB.js";import"./chunk-BRWCWZE3.js";import"./chunk-WMXBRC4B.js";import"./chunk-ZCRZFAOT.js";import"./chunk-RZ4F3BHX.js";import"./chunk-U5V3L5QH.js";import"./chunk-33DWJV67.js";import"./chunk-FOJHSG5M.js";import"./chunk-6YGTRKDT.js";import"./chunk-A7RJQJNT.js";import"./chunk-UR6MHSHU.js";export{b as designTestsCommand,a as normalizeOpts};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { createRequire } from 'module'; const require = createRequire(import.meta.url);
|
|
2
|
-
import{e as b,f as c,g as d,h as e}from"./chunk-
|
|
2
|
+
import{e as b,f as c,g as d,h as e}from"./chunk-BZEW7CSM.js";import"./chunk-QSCXXNC2.js";import{a}from"./chunk-UV7FPIBL.js";import"./chunk-CBEMXSWF.js";import"./chunk-G4K3TP2I.js";import"./chunk-YJAQZMJT.js";import"./chunk-6PIIUAZF.js";import"./chunk-HYJVYYAZ.js";import"./chunk-XTQUCCJH.js";import"./chunk-BRWCWZE3.js";import"./chunk-WMXBRC4B.js";import"./chunk-ZCRZFAOT.js";import"./chunk-RZ4F3BHX.js";import"./chunk-U5V3L5QH.js";import"./chunk-UR6MHSHU.js";export{d as replaySpoolEarly,e as telemetryBootstrap,c as telemetryEnabled,b as telemetryEnvName,a as telemetryProxyUrl};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { createRequire } from 'module'; const require = createRequire(import.meta.url);
|
|
2
|
-
import{f as a,g as b,h as c,i as d,j as e,k as f,l as g}from"./chunk-
|
|
2
|
+
import{f as a,g as b,h as c,i as d,j as e,k as f,l as g}from"./chunk-A5C7HIAH.js";import"./chunk-V24LUINK.js";import"./chunk-JYH7CTF7.js";import"./chunk-BRWCWZE3.js";import"./chunk-RZ4F3BHX.js";import"./chunk-UR6MHSHU.js";export{a as ANY_REAL_DEVICE,g as checkRealDevice,c as fetchRealDeviceCatalog,e as isAnyRealDevice,f as matchRealDevice,d as osMajorOf,b as parseRealDeviceCatalog};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { createRequire } from 'module'; const require = createRequire(import.meta.url);
|
|
2
|
-
import{a,b,c,d,e}from"./chunk-
|
|
2
|
+
import{a,b,c,d,e}from"./chunk-FHULYIG3.js";import"./chunk-VZ7KXRXB.js";import"./chunk-V24LUINK.js";import"./chunk-JYH7CTF7.js";import"./chunk-BRWCWZE3.js";import"./chunk-RZ4F3BHX.js";import"./chunk-UR6MHSHU.js";export{b as bundledEvidenceCatalog,d as evidenceCatalogFor,c as fetchEvidenceCatalog,a as parseCatalogYaml,e as writeCatalogSnapshot};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { createRequire } from 'module'; const require = createRequire(import.meta.url);
|
|
2
|
-
import{b as i,f as c}from"./chunk-
|
|
2
|
+
import{b as i,f as c}from"./chunk-BRWCWZE3.js";import{a as l}from"./chunk-RZ4F3BHX.js";import"./chunk-UR6MHSHU.js";import{readFileSync as u,writeFileSync as g,mkdirSync as d}from"fs";import{join as f}from"path";var h=f(i,"changelog-cache.json"),p=3600*1e3;function y(){try{let e=JSON.parse(u(h,"utf-8"));if(Date.now()-e.cachedAt<p)return e}catch{}return null}function m(e){try{d(i,{recursive:!0}),g(h,JSON.stringify({entries:e,cachedAt:Date.now()}))}catch{}}async function A(e){try{let t=y();if(t){let r=t.entries;return e?.all?r:r.slice(0,5)}let n=new AbortController,o=setTimeout(()=>n.abort(),5e3),a=await l(`${c}?per_page=30`,{headers:{Accept:"application/vnd.github+json"},signal:n.signal});if(clearTimeout(o),!a.ok)return[];let s=(await a.json()).map(r=>({version:r.tag_name.replace(/^v/,""),date:r.published_at?r.published_at.slice(0,10):"",body:r.body??""}));return m(s),e?.all?s:s.slice(0,5)}catch{return[]}}function v(e){if(e.length===0)return"Could not fetch changelog. Visit https://github.com/LambdaTest/kane-cli/releases";let t=["kane-cli Changelog","\u2500".repeat(40),""];for(let n of e){if(t.push(`v${n.version} (${n.date})`),n.body){let o=n.body.split(`
|
|
3
3
|
`).filter(a=>a.trim());for(let a of o)t.push(` ${a}`)}t.push("")}return t.join(`
|
|
4
4
|
`)}export{A as fetchChangelog,v as formatChangelog};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { createRequire } from 'module'; const require = createRequire(import.meta.url);
|
|
2
|
-
import{e as k,f as l}from"./chunk-WLEWXE6L.js";import{b as p}from"./chunk-
|
|
2
|
+
import{e as k,f as l}from"./chunk-WLEWXE6L.js";import{b as p}from"./chunk-LMOW4NM5.js";import{a as f}from"./chunk-V24LUINK.js";import{a as d}from"./chunk-RZ4F3BHX.js";import{promises as g}from"fs";import{basename as _,join as w}from"path";var D=3e3,S="/deviceSkin";function b(e){return e.replace(/\([^)]*\)/g," ").toLowerCase().replace(/[^a-z0-9]+/g,"-").replace(/^-+|-+$/g,"")||void 0}function v(e){if(e.model){let r=b(e.model);return r?`real-${r}`:void 0}let n=e.name?.trim();return n&&!k(n)?n:void 0}function y(e){let n=e?.data?.skin,r=typeof n?.skin_url=="string"?n.skin_url.trim():"",t=n?.skin_data??{},i=u=>typeof u=="number"&&Number.isFinite(u)?u:void 0,s=i(t.width),o=i(t.height);if(!r||!s||!o)return;let m={width:s,height:o};for(let u of["top","right","bottom","left","radius"]){let c=i(t[u]);c!==void 0&&(m[u]=c)}return{skin_url:r,skin_data:m}}var a=new Map;async function h(e,n,r={}){let t=`${f(e).lrmaaBaseUrl}${S}/${encodeURIComponent(n)}`;if(a.has(t))return a.get(t);try{let i=await(r.request??d)(t,{method:"GET",signal:AbortSignal.timeout(D)});if(!i.ok)return;let s=y(await i.json());return a.set(t,s),s}catch{return}}function A(e){let n=(e??"").trim().replace(/^lt:\/\//i,"").trim();if(n)return(p(n)?n:_(n))||void 0}async function P(e){try{let n=w(e,"steps"),r=(await g.readdir(n,{withFileTypes:!0})).filter(t=>t.isDirectory()).map(t=>t.name).sort((t,i)=>(parseInt(t,10)||0)-(parseInt(i,10)||0));for(let t of r)try{let i=await g.readFile(w(n,t,"step.json"),"utf8"),o=JSON.parse(i).basis?.window;if(Array.isArray(o)&&o.length===2&&Number.isFinite(Number(o[0]))&&Number.isFinite(Number(o[1]))&&Number(o[0])>0&&Number(o[1])>0)return`${Math.round(Number(o[0]))}x${Math.round(Number(o[1]))}`}catch{}return}catch{return}}async function T(e,n,r){if(!e.native_platform||!n.environment)return e;let t=v({model:n.deviceModel,name:l(n.runnerEnvironment?.device)});if(!t)return e;let i=await h(n.environment,t,r);return i?{...e,skin_url:i.skin_url,skin_data:i.skin_data}:e}export{v as a,h as b,A as c,P as d,T as e};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { createRequire } from 'module'; const require = createRequire(import.meta.url);
|
|
2
|
-
import{h as I}from"./chunk-MTMHB5LF.js";import{b as m}from"./chunk-
|
|
2
|
+
import{h as I}from"./chunk-MTMHB5LF.js";import{b as m}from"./chunk-BRWCWZE3.js";import{f as c,h as w,i as y,l,q as f,t as A}from"./chunk-A7RJQJNT.js";import{createHash as U}from"crypto";import{createReadStream as F}from"fs";import{mkdir as x,readFile as P,rename as $,writeFile as D}from"fs/promises";import{dirname as b,join as E}from"path";var k=60,S=5;function C(){return{entries:[]}}function v(){return E(m,"mobile","app-cache.json")}async function h(e){let r=U("sha256");for await(let t of F(e))r.update(t);return r.digest("hex")}function N(){return{readFile:e=>P(e,"utf8"),writeFile:async(e,r)=>{await x(b(e),{recursive:!0});let t=`${e}.tmp`;await D(t,r),await $(t,e)},hashFile:h,now:()=>new Date}}function g(e){if(!e)return;let r=/\/(\d{4})\/(\d{2})\/(\d{2})\//.exec(e);if(!r)return;let[,t,a,i]=r,o=new Date(`${t}-${a}-${i}T00:00:00Z`);return Number.isNaN(o.getTime())?void 0:o.toISOString()}function O(e,r){if(!e.storedAt)return!0;let t=new Date(e.storedAt).getTime();return Number.isNaN(t)?!0:(r.getTime()-t)/864e5>=k-S}var d=class{deps;constructor(r={}){this.deps={...N(),...r}}async read(){try{let r=JSON.parse(await this.deps.readFile(v()));if(!r||typeof r!="object")return C();let t=r;return{entries:Array.isArray(t.entries)?t.entries:[]}}catch{return C()}}async write(r){await this.deps.writeFile(v(),JSON.stringify(r,null,2))}async hashOf(r){return this.deps.hashFile(r)}async lookup(r){return(await this.read()).entries.find(a=>a.sha256===r.sha256&&a.env===r.env&&a.orgId===r.orgId&&a.type===r.type)}async remember(r){let t=await this.read();t.entries=[...t.entries.filter(a=>!(a.sha256===r.sha256&&a.env===r.env&&a.orgId===r.orgId&&a.type===r.type)),r],await this.write(t)}async forget(r){let t=await this.read(),a=t.entries.length;t.entries=t.entries.filter(i=>!(i.sha256===r.sha256&&i.env===r.env&&i.orgId===r.orgId&&i.type===r.type)),t.entries.length!==a&&await this.write(t)}isNearExpiry(r){return O(r,this.deps.now())}};import{createHash as j}from"crypto";import{readdir as T,stat as _}from"fs/promises";import{basename as p,extname as B,join as R,relative as Y}from"path";function ae(e){return e.skipped===!0}function H(e,r){return A(r,e)?null:B(e).toLowerCase()===".ipa"&&!c(r)?`${p(e)} is a device build \u2014 .ipa is not accepted for ${r} runs.`:c(r)?`${p(e)} is not an ${y(w(r))} build \u2014 ${l(r)} takes ${f(r).join(" or ")}.`:`${p(e)} cannot be uploaded for ${l(r)} \u2014 expected one of ${f(r).join(", ")}.`}async function J(e,r){if(!(await _(e)).isDirectory())return r.hashOf(e);let a=[],i=async n=>{for(let s of await T(n,{withFileTypes:!0})){let u=R(n,s.name);s.isDirectory()?await i(u):s.isFile()&&a.push(u)}};await i(e),a.sort();let o=j("sha256");for(let n of a)o.update(Y(e,n)),o.update("\0"),o.update(await h(n)),o.update("\0");return o.digest("hex")}async function se(e){let r=H(e.path,e.type);if(r)return{skipped:!0,reason:r};let t=e.cache??new d,a=e.client??new I(e.baseUrl,{...e.auth,orgId:e.orgId}),i;try{i=await J(e.path,t)}catch(s){return{skipped:!0,reason:`could not read ${p(e.path)}: ${s.message}`}}let o={sha256:i,env:e.env,orgId:e.orgId,type:e.type},n=await t.lookup(o);if(n){if(await a.liveness(n.appId)!=="gone")return{appId:n.appId,...n.appUrl?{appUrl:n.appUrl}:{},fromCache:!0};e.onProgress?.(`${n.appId} is no longer in the cloud \u2014 uploading again`),await t.forget(o)}try{e.onProgress?.(`uploading ${p(e.path)}\u2026`);let s=await a.upload(e.path,e.type);return await t.remember({sha256:i,env:e.env,orgId:e.orgId,type:e.type,appId:s.appId,...s.appUrl?{appUrl:s.appUrl}:{},...g(s.url)?{storedAt:g(s.url)}:{},sourcePath:e.path}),e.onProgress?.(s.cached?`${p(e.path)} already in the cloud (${s.appId})`:`${p(e.path)} uploaded (${s.appId})`),{appId:s.appId,...s.appUrl?{appUrl:s.appUrl}:{},fromCache:!1}}catch(s){return{skipped:!0,reason:s.message}}}export{d as a,ae as b,H as c,J as d,se as e};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { createRequire } from 'module'; const require = createRequire(import.meta.url);
|
|
2
|
-
import{a as b}from"./chunk-
|
|
2
|
+
import{a as b}from"./chunk-NIBNVPAE.js";import{a as L}from"./chunk-HCBYKLMW.js";import{A as o,n as u}from"./chunk-BRWCWZE3.js";import{a as d,b as c,i as A}from"./chunk-33DWJV67.js";import{a as D}from"./chunk-6YGTRKDT.js";import{e as h}from"./chunk-UR6MHSHU.js";var x=h(D(),1);import{readdirSync as N,mkdirSync as B,statSync as k}from"fs";import{join as P}from"path";var r=h(L(),1);function O(n){try{return N(n).filter(l=>{try{return k(P(n,l)).isDirectory()}catch{return!1}})}catch{return[]}}function E(n,l,f,v){return{name:n,path:l,label:n,isActive:v}}function H({currentPath:n,onSelect:l,onCancel:f}){let s=O(u).map(i=>{let e=P(u,i);return E(i,e,n,e===n)}),p=!n,R=s.length+2,[a,C]=(0,x.useState)(()=>{if(p)return 0;let i=s.findIndex(e=>e.isActive);return i>=0?i+1:0}),[T,I]=(0,x.useState)(!1),[S,g]=(0,x.useState)("");return A((i,e)=>{if(T){if(e.escape){I(!1),g("");return}if(e.return){let t=S.trim();if(t){let m=P(u,t);B(m,{recursive:!0}),l(m),f()}return}if(e.backspace||e.delete){g(t=>t.slice(0,-1));return}i&&!e.ctrl&&!e.meta&&g(t=>t+i);return}if(e.escape){f();return}if(e.upArrow){C(t=>Math.max(0,t-1));return}if(e.downArrow){C(t=>Math.min(R-1,t+1));return}if(e.return){if(a===0){p||l(""),f();return}if(a===s.length+1){B(u,{recursive:!0}),I(!0),g("");return}let t=s[a-1];t&&!t.isActive&&l(t.path),f();return}}),T?(0,r.jsxs)(d,{flexDirection:"column",borderStyle:"round",borderColor:o.orange,paddingX:2,paddingY:1,children:[(0,r.jsx)(c,{color:o.orange,bold:!0,children:"Chrome Profile \u203A New"}),(0,r.jsxs)(d,{marginTop:1,children:[(0,r.jsx)(c,{color:o.secondary,children:"Name: "}),(0,r.jsx)(c,{children:S}),(0,r.jsx)(c,{color:o.dim,children:"\u2588"})]}),(0,r.jsx)(b,{bindings:[{keys:"\u21B5",label:"create"}],escBackLabel:"back"})]}):(0,r.jsxs)(d,{flexDirection:"column",borderStyle:"round",borderColor:o.orange,paddingX:2,paddingY:1,children:[(0,r.jsx)(c,{color:o.orange,bold:!0,children:"Chrome Profile"}),(0,r.jsxs)(d,{flexDirection:"column",marginTop:1,children:[(0,r.jsxs)(c,{color:p?o.green:a===0?o.orange:o.dim,children:[a===0?"\u276F ":" ","Use temporary (no profile)",p?" \u25CF active":""]}),s.map((i,e)=>{let m=e+1===a,w=m?"\u276F ":" ",y=i.isActive?o.green:m?o.orange:void 0;return(0,r.jsxs)(c,{color:y,children:[w,i.label,i.isActive?" \u25CF active":""]},i.name)}),(0,r.jsxs)(c,{color:a===s.length+1?o.orange:o.dim,children:[a===s.length+1?"\u276F ":" ","+ Create new"]})]}),(0,r.jsx)(b,{bindings:[{keys:"\u2191\u2193",label:"navigate"},{keys:"\u21B5",label:"select"}],escBackLabel:"back"})]})}export{O as a,E as b,H as c};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { createRequire } from 'module'; const require = createRequire(import.meta.url);
|
|
2
|
-
import{b as l}from"./chunk-WD52ZNQY.js";import{b as i,d as p,e as f,g,h as u}from"./chunk-77ZZQJLX.js";import{b as d}from"./chunk-
|
|
2
|
+
import{b as l}from"./chunk-WD52ZNQY.js";import{b as i,d as p,e as f,g,h as u}from"./chunk-77ZZQJLX.js";import{b as d}from"./chunk-PCL2FYPE.js";import{existsSync as t,mkdirSync as w,readFileSync as S,renameSync as y,writeFileSync as D}from"fs";import{join as j}from"path";function O(r){l(i(r));let a=i(r);if(!t(a))return;let s=j(a,"meta.json"),n=f(r);if(t(s)&&!t(n))try{w(p(r),{recursive:!0}),y(s,n)}catch(e){process.stderr.write(`warn: meta.json migration failed: ${e.message}
|
|
3
3
|
`)}let c=u(r);if(t(c)){let e="python";try{let o=new d().load();o.code_export?.language&&(e=o.code_export.language)}catch{}let m=g(r,"playwright",e);if(!t(m))try{y(c,m)}catch(o){process.stderr.write(`warn: generated-code migration failed: ${o.message}
|
|
4
4
|
`)}}if(t(n))try{let e=JSON.parse(S(n,"utf8"));"md5sum"in e&&(delete e.md5sum,D(n,JSON.stringify(e,null,2)+`
|
|
5
5
|
`,"utf8"))}catch(e){process.stderr.write(`warn: meta.json md5sum strip failed: ${e.message}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { createRequire } from 'module'; const require = createRequire(import.meta.url);
|
|
2
|
-
import{b as y,c as I}from"./chunk-72KYMWQ5.js";import{b}from"./chunk-CCOD4GQJ.js";import{a as x}from"./chunk-TDPWFYTJ.js";import{c as R}from"./chunk-VZ7KXRXB.js";import{b as f}from"./chunk-
|
|
2
|
+
import{b as y,c as I}from"./chunk-72KYMWQ5.js";import{b}from"./chunk-CCOD4GQJ.js";import{a as x}from"./chunk-TDPWFYTJ.js";import{c as R}from"./chunk-VZ7KXRXB.js";import{b as f}from"./chunk-BRWCWZE3.js";import{f as S}from"./chunk-WMXBRC4B.js";import{a as v}from"./chunk-RZ4F3BHX.js";import{randomUUID as U}from"crypto";import{mkdirSync as P,writeFileSync as h,appendFileSync as B,existsSync as _,readFileSync as G}from"fs";import{join as u}from"path";import{writeFileSync as T,mkdirSync as w,existsSync as A}from"fs";import{join as m,relative as N}from"path";function C(r){let t=Object.keys(r.frontmatter).length>0?R(r.frontmatter).trimEnd():"",s=["---"];return t&&s.push(t),s.push("---",""),s.push(`# ${r.heading}`,""),r.steps.forEach((n,i)=>{s.push(`## Step ${i+1}`,n,"")}),s.join(`
|
|
3
3
|
`)}var k=new Set(["username","access_key","oauth","profile","project_id","folder_id"]),D=new Set(["model","env"]),c=class{constructor(e){this.opts=e}objectives=[];flushed=!1;lastWrittenPath=null;lastCollisionSuffixed=!1;appendObjective(e){this.objectives.push(e)}flush(){if(this.flushed||(this.flushed=!0,this.objectives.length===0))return;let e=this.opts.getName();if(!e)return;let t=m(this.opts.cwd,".testmuai","tests");try{w(t,{recursive:!0})}catch(l){process.stderr.write(`
|
|
4
4
|
\u26A0 Failed to create ${N(this.opts.cwd,t)}/
|
|
5
5
|
${l.message}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { createRequire } from 'module'; const require = createRequire(import.meta.url);
|
|
2
|
-
import{S as G,T as I,U as O,V as _}from"./chunk-
|
|
2
|
+
import{S as G,T as I,U as O,V as _}from"./chunk-NNVHWFLI.js";import{a as S}from"./chunk-TCK7WR3M.js";import{a as u}from"./chunk-73Y6T2UK.js";import{Ia as N}from"./chunk-5EAJO372.js";import{existsSync as M}from"fs";var q=new Set(["interactive","agent","ci","override"]);function B(t){return t.mode!=null&&!q.has(t.mode)?{error:`design: --mode must be interactive | agent | ci | override, got '${t.mode}'`}:t.strength!=null&&t.strength!=="pairwise"&&t.strength!=="3-wise"?{error:`design: --strength must be pairwise | 3-wise, got '${t.strength}'`}:t.max!=null&&(!Number.isInteger(t.max)||t.max<1)?{error:"design: --max must be a positive integer"}:!t.useCase&&!t.resume?{error:"design: --use-case is required (or --resume <sid> \u2014 the session remembers its use-case)"}:{useCase:t.useCase,max:t.max,strength:t.strength,mode:t.mode,force:t.force,resume:t.resume,plan:t.plan,message:t.message,phase:t.phase,allowUnreviewed:t.allowUnreviewed,because:t.because,changeDelta:t.changeDelta,priorDesign:t.priorDesign,...t.repinsKept?{repinsKept:!0}:{},statement:t.statement}}async function Z(t){let p=async(e,r)=>{if(t.mode!=="agent")return process.stderr.write(e+`
|
|
3
3
|
`),2;let{makeHeadlessIO:i,agentRefusal:d}=await import("./headless-io-FFM5T6KL.js");return d(i("ndjson","design"),e,r)};if(t.mode!=null&&!["interactive","agent","ci","override"].includes(t.mode)){let{makeHeadlessIO:e,agentRefusal:r}=await import("./headless-io-FFM5T6KL.js");return r(e("ndjson","design"),`design: --mode must be interactive | agent | ci | override, got '${t.mode}'`,"MODE_USAGE")}let l=t.json===!0;{let{jsonModeRefusal:e}=await import("./headless-io-FFM5T6KL.js"),r=e("design",t.mode,l);if(r!==null)return process.stderr.write(`${r}
|
|
4
4
|
`),2}let h=B(t);if("error"in h)return p(h.error);let s=h;if(s.useCase?.startsWith("sha256:"))try{let[{openGraph:e},{expandUseCaseRef:r}]=await Promise.all([import("./readmodel-FARAAPUU.js"),import("./use-case-ref-E3PJDHQB.js")]);s.useCase=r(e(u(process.cwd())),s.useCase)}catch{}{let{validateResumeMessage:e}=await import("./headless-io-FFM5T6KL.js"),r=e(s,"design");if(r)return p(r)}{let{gateStructuredFlags:e}=await import("./structured-answers-EQ2AP3F7.js"),r=e(t,"design");if(r)return p(r,"STRUCTURED_FLAGS_USAGE")}if(!M(u(process.cwd())))return p("error: no context store here (run `kane-cli context ingest` + `kane-cli context extract` first)","NO_STORE");{let e=O(u(process.cwd()));if(e){if(t.mode!=="agent")return p(`error: ${e.text}
|
|
5
5
|
next: ${e.remedy}`,e.code);let{makeHeadlessIO:r}=await import("./headless-io-FFM5T6KL.js"),i=r("ndjson","design");return i.event(_(e)),i.done(2,"refused")}}if(s.useCase&&!t.allowUnreviewed)try{let[{openGraph:e},{consentCanStart:r,designEntryGate:i},{peekSession:d}]=await Promise.all([import("./readmodel-FARAAPUU.js"),import("./trust-gate-674C2NZS.js"),import("./sessions-NH2EG7BP.js")]),y;try{y=s.resume?d(u(process.cwd()),s.resume)?.use_case:void 0}catch{y=void 0}let o=i(e(u(process.cwd())),{useCase:s.useCase,resuming:!!s.resume,sessionUseCase:y});if(o){let b=r(o),T=s.mode??"interactive";if(b&&T==="interactive"&&process.stdin.isTTY&&process.stdout.isTTY){let{createInterface:x}=await import("readline/promises"),m=x({input:process.stdin,output:process.stderr}),g=(await m.question(`design: ${o.detail}
|
|
@@ -8,9 +8,9 @@ Design against it anyway? (y/N) `)).trim().toLowerCase();if(m.close(),g!=="y"&&g
|
|
|
8
8
|
`),2}}catch(e){process.env.KANE_DEBUG&&process.stderr.write(`trust gate skipped: ${String(e)}
|
|
9
9
|
`)}let n=null,f=null;try{if(!s.mode&&!process.stdin.isTTY)return process.stderr.write(`design: no TTY \u2014 pass an explicit --mode agent|ci|override to run headless
|
|
10
10
|
`),2;let e=s.mode??"interactive";if(e==="interactive"){if(!process.stdin.isTTY||!process.stdout.isTTY)return process.stderr.write(`design: --mode interactive needs a TTY on stdin and stdout (use --mode agent|ci|override headless)
|
|
11
|
-
`),2;let{bindDesignInteractive:a}=await import("./interactive-bind-
|
|
11
|
+
`),2;let{bindDesignInteractive:a}=await import("./interactive-bind-K3ZQFHLH.js");return await a(s)}let{runAgent:r}=await import("./bridge-SPGIYAAG.js"),{makeInterruptGuard:i}=await import("./interrupt-guard-QETBPINI.js"),{baseUrlAdvisory:d}=await import("./turn-preflight-R4PU6NYY.js"),{makeHeadlessIO:y,resolveEncoding:o,guardedChannels:b}=await import("./headless-io-FFM5T6KL.js"),{withStructuredNext:T,prepareStructuredResume:x}=await import("./structured-answers-EQ2AP3F7.js");n=T(y(o(e,l),"design"));let m=await G(u(process.cwd()));m&&(o(e,l)==="ndjson"?n.event(I(m)):n.progress(m.text));let g=n,k=a=>{g.out(a),g.event({type:"note",text:a})},{telemetryBootstrap:Y,telemetryEnvName:H}=await import("./bootstrap-A2O4UZUJ.js"),v=Y({verb:"design",mode:e,contextRoot:u(process.cwd()),env:H(),resumeSid:s.resume,write:!0,longSession:!0});f=a=>v.end(a);let c=x({opts:t,reader:S(u(process.cwd())).sessions(),verb:"design"});if(c.kind==="refuse")return n.out(c.error),e==="agent"&&n.event({type:"error",message:c.error,code:c.code}),await v.end({exit_code:2}),e==="agent"?n.done(2,"refused"):2;let D;if(c.kind==="apply"){for(let a of c.notes)k(a);if(c.matchedQids.length>0){k(`applying ${c.matchedQids.length} structured answer(s) from --answer to the paused session's pending questions`);for(let a of c.matchedQids)n.event({type:"panel_resolved",id:a,by:"user",via:"flag"})}c.statement&&(D=[s.message,c.statement].filter(Boolean).join(`
|
|
12
12
|
|
|
13
|
-
`))}let R=d();R&&k(R);let C=i(r,a=>n.out(a)),j=b(n,()=>C.interrupted(),/^error: (design agent failed|the design agent ended)/);try{let a=e==="interactive"&&process.stdin.isTTY&&process.stdout.isTTY?async E=>{let{createInterface:L}=await import("readline/promises"),A=L({input:process.stdin,output:process.stdout});try{return/^y(es)?$/i.test((await A.question(`${E} [y/N] `)).trim())}finally{A.close()}}:void 0,{headlessDesign:P}=await import("./design-headless-
|
|
13
|
+
`))}let R=d();R&&k(R);let C=i(r,a=>n.out(a)),j=b(n,()=>C.interrupted(),/^error: (design agent failed|the design agent ended)/);try{let a=e==="interactive"&&process.stdin.isTTY&&process.stdout.isTTY?async E=>{let{createInterface:L}=await import("readline/promises"),A=L({input:process.stdin,output:process.stdout});try{return/^y(es)?$/i.test((await A.question(`${E} [y/N] `)).trim())}finally{A.close()}}:void 0,{headlessDesign:P}=await import("./design-headless-DDAFAJNR.js"),{localSite:K}=await import("./store-site-AFXB6SBW.js"),$=u(process.cwd()),w=await P({...s,mode:e,...D!==void 0?{message:D}:{},...a?{confirmRetarget:a}:{}},K($,S($)),{out:j.out,emit:E=>{t.onEvent?.(E),j.emit(E)},progress:g.progress,channel:o(e,l)==="ndjson"},{agent:C.agent,telemetry:v});if(C.interrupted()&&w!==3)return n.out("interrupted \u2014 no session saved"),await v.end({exit_code:130}),n.done(130);if(w===1&&n.out(v.supportFooter()),await v.end({exit_code:w}),w!==0)return n.done(w);let U=await z($,s.useCase,s.resume);return U.length>0?n.done(w,void 0,U):n.done(w)}finally{C.dispose()}}catch(e){if(e instanceof N)return f&&await f({exit_code:2}).catch(()=>{}),n?(n.event(_({code:e.code,text:e.message,remedy:e.remedy})),n.done(2,"refused")):(process.stderr.write(`error: ${e.message}
|
|
14
14
|
next: ${e.remedy}
|
|
15
15
|
`),2);f&&await f({exit_code:1}).catch(()=>{});let r=e instanceof Error?e.message:String(e);n?.event({type:"error",message:`error: design failed: ${r}`});let i=n?d=>n.out(d):d=>process.stderr.write(d+`
|
|
16
16
|
`);return i(`error: design failed: ${r}`),(process.env.ASSURANCE_LOG_LEVEL??"").toLowerCase()==="debug"&&e instanceof Error&&e.stack&&i(e.stack),i('hint: the full trace is in the file named on the "trace:" line at the start of this run'),n?n.done(1):1}}async function z(t,p,l){try{let[{openGraph:h},{peekSession:s},{awaitingOfUseCase:n},{shellArg:f}]=await Promise.all([import("./readmodel-FARAAPUU.js"),import("./sessions-NH2EG7BP.js"),import("./stream-warnings-I5LUWVFU.js"),import("./shell-arg-FN3MT5U7.js")]),e=p??(l?s(t,l)?.use_case:void 0);if(!e)return[];let r=h(t);return[...n(r,e)].map(([i,d])=>({cmd:`kane-cli context review --approve ${f(r.displayNameOf(i)??i.slice(0,19))} --mode agent`,why:`approves the criterion ${d.size===1?"1 test checks":`${d.size} tests check`}`}))}catch{return[]}}export{B as a,Z as b};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { createRequire } from 'module'; const require = createRequire(import.meta.url);
|
|
2
|
-
import{g as A,h as _}from"./chunk-
|
|
2
|
+
import{g as A,h as _}from"./chunk-6WN4WSXR.js";import{b as N}from"./chunk-LMOW4NM5.js";import{d as b,i as h}from"./chunk-Z7S3IWUX.js";import{a as F,c as x,e as k}from"./chunk-2XW33VOK.js";import{a as $,b as T,c as D,d as I,f as v,h as g,i as V,l as m,q as P,t as y,u as w}from"./chunk-A7RJQJNT.js";function E(e,n){return e.kind==="app_id"?!0:n==="emulator"?e.kind==="apk":e.kind==="zip"}function S(e){let n=e.deviceName,i=e.osVersion;return n!==void 0&&n.trim()===""||i!==void 0&&i.trim()===""?{ok:!1,message:"--device-name and --os-version cannot be empty."}:{ok:!0,...n!==void 0?{name:n.trim()}:{},...i!==void 0?{osVersion:i.trim()}:{}}}function C(e){return`--device-name needs an OS version \u2014 a bare name matches every runtime that ships it.
|
|
3
3
|
Provide one: ${e}`}function R(e,n,i){let t=_(e);return t?E(t,n)?null:n==="emulator"?`${i} cannot run on an emulator (needs an .apk, or an APP\u2026 id).`:`${i} cannot run on a simulator (needs a .zip of the .app bundle, or an APP\u2026 id).`:`${e}: ${A}`}function M(e){return D(e)?e:null}function O(e){return`--target must be one of ${$.join(", ")} (got "${e}")`}function L(e){let n=[];for(let[i,t]of[["--device-name",e.deviceName],["--os-version",e.osVersion],["--app",e.app]])t!==void 0&&n.push(`ignored ${i} ${t}: session target is desktop \u2014 set --target ${T.join("|")} to run on a device`);return n}function W(e){let{flags:n,saved:i}=e,t=[],a;if(n.target!==void 0){let r=M(n.target);if(!r)return{kind:"invalid",message:O(n.target)};a=r}else{let r=F(i?.tui_target,i?.default_target?.kind);if(r.kind==="choose-mobile")return{kind:"choose-mobile-kind"};a=r.kind==="unset"?"desktop":r.kind}if(a==="desktop")return t.push(...L(n)),{kind:"web",warnings:t};if(v(a))return B(a,n,i,t);if(!e.host.supported)return{kind:"invalid",message:e.host.reason??"this machine cannot run mobile targets."};let s=[],o,d,c=S(n);if(!c.ok)return{kind:"invalid",message:c.message};let p=i?.default_target&&i.default_target.kind===a?b(i.default_target):void 0;if(c.name!==void 0||c.osVersion!==void 0){let r=c.name??p?.name,l=c.osVersion??p?.osVersion;if(l===void 0)return{kind:"invalid",message:C("--os-version <version>, or save one (kane-cli config set-os-version)")};d={...r!==void 0?{name:r}:{},osVersion:l},o={value:r?`${r} (${l})`:`any device on ${l}`,source:"flag"}}else if(i?.default_target&&i.default_target.kind===a&&(b(i.default_target)!==void 0||i.default_target.id!==void 0))o={value:h(i.default_target)??"(saved device)",source:"saved"};else{if(i?.default_target&&i.default_target.kind!==a&&(b(i.default_target)!==void 0||i.default_target.id!==void 0))return{kind:"invalid",message:`Your saved device '${h(i.default_target)}' is ${i.default_target.kind==="simulator"?"a simulator":"an emulator"}, but this run targets ${a==="simulator"?"a simulator":"an emulator"}. Pass --device-name and --os-version, or update your config (set-target, set-device-name, set-os-version).`};s.push("device")}let u;if(n.app!==void 0){let r=R(n.app,a,`--app ${n.app}`);if(r)return{kind:"invalid",message:r};u={value:n.app,source:"flag"}}else{let r=i?.default_app,l=r?_(r):null;l&&E(l,a)&&i?.default_target?.kind===a?u={value:r,source:"saved"}:s.push("app")}return{kind:"mobile",target:a,...d?{deviceSelector:d}:{},...o?{device:o}:{},...u?{app:u}:{},missing:s,warnings:t}}function K(e,n,i){let t=e.trim();return N(t)||y(n,t)?null:`${i} cannot run on ${m(n)} \u2014 use ${w(n)} file, or an ${V(g(n))} app ID from \`kane-cli apps list --target ${n}\`.`}function j(e,n,i){let t=S(e);if(!t.ok)return{ok:!1,message:t.message};let a=(u,r)=>{if(u!==void 0)return{value:u,source:"flag"};let l=r?.trim();return l?{value:l,source:n.source}:void 0},s=a(t.name,n.device_name),o=a(t.osVersion,n.os_version),d=a(e.app,n.app),c=d?.source==="flag"?`--app ${d.value}`:d?.source==="file"?`the file's app: ${d?.value}`:`your saved app ${d?.value}`,p=d?K(d.value,i,c):null;return{ok:!0,...s?{deviceName:s}:{},...o?{osVersion:o}:{},...d?{app:d}:{},...p?{appProblem:p}:{}}}function Z(e,n,i){return v(e)?K(n,e,i):R(n,e,i)}function G(e,n,i){let t=j(e,n.target===i?{source:"file",device_name:n.device_name,os_version:n.os_version,app:n.app}:{source:"file"},i);if(!t.ok)return t;if(!t.app)return{ok:!1,message:`no app for this real-device test \u2014 add \`app: <path-to-build | AppId>\` to the file, or pass --app. See your uploads: kane-cli apps list --target ${i}`};if(t.appProblem)return{ok:!1,message:t.appProblem};let{deviceName:a,osVersion:s,app:o}=t;return{ok:!0,selection:{...a?{deviceName:a}:{},...s?{osVersion:s}:{},app:o}}}function B(e,n,i,t){let a=x(i,e),s=j(n,{source:"saved",device_name:a.deviceName,os_version:a.osVersion,app:a.app},e);if(!s.ok)return{kind:"invalid",message:s.message};if(s.appProblem&&s.app?.source==="flag")return{kind:"invalid",message:s.appProblem};let o=s.appProblem?void 0:s.app;return{kind:"real-device",target:e,platform:g(e),...s.deviceName?{deviceName:s.deviceName}:{},...s.osVersion?{osVersion:s.osVersion}:{},...o?{app:o}:{},missing:o?[]:["app"],warnings:s.appProblem?[...t,s.appProblem]:t}}function z(e){let n=[];for(let[i,t]of[["--device-name",e.deviceName],["--os-version",e.osVersion],["--app",e.app]])t!==void 0&&n.push(`ignored ${i} ${t}: a real-device run takes its device and app from the run's device config`);return n}function H(e){return`this run was given a device config (KANE_CLI_DEVICE_CONFIG), so it runs on a real device, but the test file ${e?`has \`target: ${e}\``:"has no `target:` (a web test)"} \u2014 only a \`target: android\` or \`target: ios\` test runs on a real device.`}function ee(e){let{flags:n,file:i}=e,t=[],a=I(i.target)?i.target:void 0,s;if(n.target!==void 0){let r=M(n.target);if(!r)return{kind:"invalid",message:O(n.target)};s=r;let l=a;l&&l!==s&&t.push(`--target ${s} overrides the file's \`target: ${l}\` \u2014 steps recorded on ${m(l)} may not replay here`)}else s=a??"desktop";if(v(s)){if(e.deviceConfig)return t.push(...z(n)),{kind:"real-device",platform:g(s),warnings:t};let r=G(n,i,s);return r.ok?{kind:"real-device",platform:g(s),selection:r.selection,warnings:t}:{kind:"invalid",message:r.message}}if(s!=="desktop"&&e.grid)return{kind:"invalid",message:`KANE_CLI_GRID is set, which works only for real-device tests (\`target: android\` / \`target: ios\`), and this test targets ${m(s)}. Unset KANE_CLI_GRID and try again.`};if(e.deviceConfig)return{kind:"invalid",message:H(i.target)};if(s==="desktop")return t.push(...L(n)),{kind:"web",warnings:t};let o=S(n);if(!o.ok)return{kind:"invalid",message:o.message};let d=o.name??(i.device_name?.trim()||void 0),c=o.osVersion??(i.os_version?.trim()||void 0);if(d!==void 0&&c===void 0)return{kind:"invalid",message:C("--os-version <version>, or os_version: in the test file")};let p=c!==void 0?{...d!==void 0?{name:d}:{},osVersion:c}:void 0;if(s==="simulator"&&p&&p.name===void 0&&t.push(`the file names no device_name \u2014 any simulator on ${c} may be used. Add device_name: to the file (or pass --device-name) to pin the device.`),n.app!==void 0){let r=R(n.app,s,`--app ${n.app}`);if(r)return{kind:"invalid",message:r}}else if(i.app){let r=R(i.app,s,`the file's app: ${i.app}`);if(r)return{kind:"invalid",message:r}}let u=n.app??(i.app||void 0);return{kind:"mobile",target:s,platform:g(s)??"",...u?{app:u}:{},...p?{deviceSelector:p}:{},...i.no_reset!==void 0?{noReset:i.no_reset}:{},warnings:t}}function ne(e){return e.target==="desktop"?"Running on: Desktop \xB7 Chrome":`Running on: ${k(e.target)} \xB7 ${e.deviceLabel} \xB7 ${e.appLabel}`}function f(e){return`</path/to/app${P(e)[0]} | AppId>`}function ie(e){return{type:"error",code:"APP_NOT_SET",message:`no app is set for this ${k(e).toLowerCase()} run`,remedy:`name the app under test with --app ${f(e)}, or for every run with kane-cli config set-app ${f(e)}`,next:[{cmd:`kane-cli apps list --target ${e} --agent`,why:"lists the builds you've uploaded, to name one with --app"}]}}function te(e,n){let i=k(e).toLowerCase();return n==="device"?[`session target is "${i}" but no device is set.`,` See devices: kane-cli devices list --target ${e}`,' Set one: kane-cli config set-device-name "<name>" && kane-cli config set-os-version "<version>"',' Or per-run: --device-name "<name>" --os-version "<version>"'].join(`
|
|
4
4
|
`):[`session target is "${i}" but no app is set.`,` Set one: kane-cli config set-app ${f(e)}`,` Or per-run: --app ${f(e)}`].join(`
|
|
5
5
|
`)}function se(e){return[`saved device "${e}" was not found on this machine.`," See devices: kane-cli devices list",' Set one: kane-cli config set-device-name "<name>" && kane-cli config set-os-version "<version>"'].join(`
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { createRequire } from 'module'; const require = createRequire(import.meta.url);
|
|
2
|
-
import{a as te,b as re,c as ie,d as se,e as z}from"./chunk-
|
|
2
|
+
import{a as te,b as re,c as ie,d as se,e as z}from"./chunk-Y3RDLUH5.js";import{b as oe,c as ae}from"./chunk-IINZZ4BZ.js";import{g as ne}from"./chunk-F2F257PU.js";import{m as ee,o as j}from"./chunk-WMXBRC4B.js";import{a as $e}from"./chunk-6YGTRKDT.js";import{e as De}from"./chunk-UR6MHSHU.js";function Le(r){let e=r==="passed"?"passed":"failed";return{testStatus:e,remark:`kane-cli: ${e}`}}var Fe={testStatus:"failed",remark:"cancelled"};var Ae="https://www.testmuai.com/pricing/",Ue=/Real Mobile App Automation not allowed on your current plan/i,L=class extends Error{code="plan_required";constructor(e){super(e),this.name="RealDevicePlanError"}};function ue(r){return!r||!Ue.test(r)?null:["Real devices aren't included in your TestMu AI plan.","Running on a real device needs the KaneAI Max or Real Device Plus Automation Cloud plan.",`See plans: ${Ae}`].join(`
|
|
3
3
|
`)}function de(r){return{command:"start",...r}}function le(r,e,s){return{command:"run",run_id:r,kind:e,...s}}function ce(r){return{command:"cancel",...r?{run_id:r}:{}}}function pe(r){return{command:"ask_user_response",answer:r}}function he(r={}){return{command:"shutdown",...r.testStatus?{test_status:r.testStatus,remark:r.remark??""}:{}}}var W=Symbol("run-queue-end"),H=class{items=[];waiting=null;ended=!1;error=null;push(e){if(this.waiting){let{resolve:s}=this.waiting;this.waiting=null,s(e)}else this.items.push(e)}end(){if(this.ended=!0,this.waiting){let{resolve:e}=this.waiting;this.waiting=null,e(W)}}fail(e){if(this.error=e,this.waiting){let{reject:s}=this.waiting;this.waiting=null,s(e)}}next(){return this.items.length>0?Promise.resolve(this.items.shift()):this.error?Promise.reject(this.error):this.ended?Promise.resolve(W):new Promise((e,s)=>{this.waiting={resolve:e,reject:s}})}},F=class{env;runner;log;sessionId;spawnFn;proc=null;activeRun=null;pendingReady=null;shuttingDown=!1;finalized=!1;realDevice=!1;exitInfo=null;exitedUnexpectedly=!1;exitResolve;onEvent;exited;constructor(e){this.env=e.env,this.runner=e.runner,this.log=e.log,this.sessionId=e.sessionId,this.spawnFn=e.spawn??re,this.onEvent=e.onEvent;let s;this.exited=new Promise(d=>{s=d}),this.exitResolve=s}async start(e){if(this.proc)throw new Error("PersistentRunner.start called twice");this.realDevice=typeof e.device?.device_config_path=="string",this.proc=this.spawnFn({env:this.env,runner:this.runner,log:this.log,sessionId:this.sessionId}),this.consume();let s=new Promise((d,g)=>{this.pendingReady={resolve:d,reject:g}});this.writeCommand(de(e)),await s}async*run(e,s,d){if(!this.proc)throw new Error("PersistentRunner.run called before start");if(this.finalized)throw new Error(`v16-runner is not running (exited code=${this.exitInfo?.code??"null"}, signal=${this.exitInfo?.signal??"none"}) \u2014 cannot start run '${e}'`);if(this.activeRun)throw new Error(`PersistentRunner.run overlap: '${this.activeRun.runId}' still in flight`);let g=new H,_={runId:e,queue:g};this.activeRun=_,this.writeCommand(le(e,s,d));try{for(;;){let v=await g.next();if(v===W||(yield v,v.type==="run_end"&&(v.run_id===void 0||v.run_id===e)))break}}finally{this.activeRun===_&&(this.activeRun=null)}}sendUserResponse(e){this.writeCommand(pe(e))}cancel(e){this.writeCommand(ce(e))}kill(){this.proc?.child.kill("SIGTERM")}async shutdown(e={}){this.shuttingDown=!0,this.proc&&(e.testStatus&&this.realDevice&&this.log?.("info","REAL_DEVICE_SESSION_CLOSE","Hub session closed with the run's verdict",{test_status:e.testStatus}),this.writeCommand(he(e)),await this.exited)}get stderr(){return this.proc?.getStderr()??""}get diedUnexpectedly(){return this.exitedUnexpectedly}writeCommand(e){let s=JSON.stringify(e)+`
|
|
4
4
|
`;try{this.proc?.child.stdin?.write(s)}catch{}}async consume(){if(!this.proc)return;try{for await(let d of this.proc.events){if(d.type==="ready"){this.onReady();continue}if(d.type==="error"&&this.pendingReady){this.onStartError(d.message);continue}try{this.onEvent?.(d)}catch{}this.routeEvent(d)}}catch(d){this.log?.("error","PERSISTENT_RUNNER_STREAM_ERROR","Runner stdout stream errored",{error:d instanceof Error?d.message:String(d)})}let{code:e,signal:s}=await this.proc.exited;this.onExit(e,s)}onReady(){if(this.pendingReady){let{resolve:e}=this.pendingReady;this.pendingReady=null,e()}}onStartError(e){if(!this.pendingReady)return;let{reject:s}=this.pendingReady;this.pendingReady=null;let d=ue(e);if(d){this.log?.("error","REAL_DEVICE_PLAN_REQUIRED","The mobile hub refused the session over the plan",{reason:e}),s(new L(d));return}s(new Error(ne(e)??`failed to start: ${e??"unknown error"}`))}routeEvent(e){let s=this.activeRun;if(!s){this.log?.("warn","PERSISTENT_RUNNER_ORPHAN_EVENT","Runner event with no active run",{event_type:e.type});return}s.queue.push(e)}onExit(e,s){if(!this.finalized){if(this.finalized=!0,this.exitInfo={code:e,signal:s},this.shuttingDown||(this.exitedUnexpectedly=!0),this.exitResolve({code:e,signal:s}),this.pendingReady){let{reject:d}=this.pendingReady;this.pendingReady=null,d(new Error(`v16-runner exited before ready (code=${e}, signal=${s??"none"})`))}if(this.activeRun){let{queue:d}=this.activeRun;if(this.activeRun=null,this.shuttingDown)d.end();else{let g=this.proc?.getStderr()?.slice(-500)??"";d.fail(new Error(`v16-runner exited unexpectedly mid-run (code=${e}, signal=${s??"none"})${g?`
|
|
5
5
|
${g}`:""}`))}}}}};var p=De($e(),1);function fe(r){let e={cdp_endpoint:r.cdp_endpoint,ws_endpoint:r.ws_endpoint,width:r.width,height:r.height,headless:r.headless,model:r.model,max_steps:r.max_steps,network_ws:r.network_ws,network_sse:r.network_sse,session_id:r.session_id};return r.device&&(e.device=r.device),r.auth&&(e.auth=r.auth),r.project_id&&(e.project_id=r.project_id),r.disable_ask_user&&(e.disable_ask_user=!0),r.media_upload&&(e.media_upload=r.media_upload),r.username&&(e.username=r.username),r.access_key&&(e.access_key=r.access_key),e}function N(r,e){let s=null,d=(g,_)=>{for(let v=0;v<g.length;v++){let E=g[v],h=[..._,v];e(E)&&(s===null||h.length>s.length)&&(s=h),E.children&&E.children.length>0&&d(E.children,h)}};return d(r,[]),s}function T(r,e,s){if(e.length===0)return[...r];let d=e[0],g=[...r],_=g[d];if(e.length===1)g[d]=s(_);else{let v=e.slice(1),E=T(_.children??[],v,s);g[d]={..._,children:E}}return g}var Me=6e4;function me(){return{steps:[],maxOrdinal:0}}function Oe(r,e){if(e.type==="run_start"&&e.child_id)return e.environment?.resolution?{...r,resolution:e.environment.resolution}:r;if(e.type==="run_start"){let s=ae(r.runnerEnvironment,oe(e.environment));if(s)return{...r,runnerEnvironment:s,...s.resolution?{resolution:s.resolution}:{}}}if(e.type==="step_end"&&typeof e.ordinal=="number"&&e.id){let s={id:e.id,ordinal:e.ordinal,status:e.status,...e.kind?{kind:e.kind}:{},...typeof e.duration=="number"?{duration_ms:Math.round(e.duration*1e3)}:{},...typeof e.action_id=="string"&&e.action_id?{action_id:e.action_id}:{}};return{...r,steps:[...r.steps,s],maxOrdinal:Math.max(r.maxOrdinal,e.ordinal)}}return r}function J(r){let e=r.indexOf(": ");return e>0&&e<15?r.slice(e+2):r}function Q(r){return r.map(e=>{let s=e.children?Q(e.children):e.children;return e.status==="running"?{...e,status:"stopped",phase:void 0,children:s}:s!==e.children?{...e,children:s}:e})}function rn(r,e,s,d,g){let[_,v]=(0,p.useState)(!1),[E,h]=(0,p.useState)([]),[ve,D]=(0,p.useState)(null),[ge,B]=(0,p.useState)(null),[Re,C]=(0,p.useState)(null),[Se,X]=(0,p.useState)(null),[ye,Y]=(0,p.useState)([]),[we,Z]=(0,p.useState)(null),[xe,_e]=(0,p.useState)(void 0),[Ee,$]=(0,p.useState)(0),x=(0,p.useRef)(null),A=(0,p.useRef)(null),k=(0,p.useRef)(null),w=(0,p.useRef)(null),b=(0,p.useRef)(0),V=(0,p.useRef)(!1),U=(0,p.useRef)(me()),M=(0,p.useRef)(null),be=(0,p.useCallback)(async(f,S)=>{let I=M.current;if(I)try{await I}catch{}h([]),D(null),B(null),C(null),X(null),Y([]),Z(null),_e(f.max_steps),v(!0),w.current=null,b.current=0,U.current=me();let y=x.current;if(y&&k.current!==f.session_id){try{y.kill()}catch{}x.current=null,k.current=null,$(n=>n+1),y=null}if(!y){let n=te();if(!n){C("v16-runner not found. Build the binary with `cd v16-runner && python build.py` or ensure Python is available."),v(!1);return}let l=se({environment:S?.environment,mode:S?.mode,assertionMode:S?.assertionMode,finalValidation:S?.finalValidation,username:f.username,accessKey:f.access_key,sessionId:f.session_id});f.device?.platform&&await ie(l,f.device);let u=new F({env:l,runner:n,log:S?.log,sessionId:f.session_id,...S?.onRunnerEvent?{onEvent:S.onRunnerEvent}:{}});x.current=u,k.current=f.session_id,y=u,ee("runner",()=>{try{u.kill()}catch{}});let o={...f};z(o,{environment:S?.environment});let a=fe(o);try{await u.start(a)}catch(t){C(t instanceof Error?t.message:String(t)),v(!1),j("runner","Runner start failed"),x.current=null,k.current=null,$(i=>i+1);return}}let q={...f};delete q.run_id,z(q,{environment:S?.environment});let Ne=`run-${f.run_index}`,Te=f.mode==="replay"?"replay":"author",G=y,K=(async()=>{V.current=!1;for await(let n of G.run(Ne,Te,q)){if(V.current)break;switch(U.current=Oe(U.current,n),n.type){case"run_start":if(n.child_id)break;if(w.current&&!w.current.isSingleFlow){let l=b.current;b.current++,h(u=>u.map((o,a)=>a===l?{...o,status:"running"}:o.status==="running"&&!o.children?.some(t=>t.status==="running")?{...o,status:o.children?.some(t=>t.status==="failed")?"failed":"passed"}:o))}break;case"bifurcation":{let l=n.flows??[],u=n.count??l.length,o={flows:l,isSingleFlow:n.is_single_flow??u<=1};X(o),w.current=o,b.current=0,h(l.map((a,t)=>({index:t+1,objective:a??`Flow ${t+1}`,status:"pending"})));break}case"step_start":{e?.("STEP_START",`Step ${n.index} started`,{index:n.index,objective:n.objective,child_id:n.child_id});let l=n.index,u=n.objective??`Step ${l}`,o=n.child_id,a=w.current&&!w.current.isSingleFlow;if(o)h(t=>{let i=N(t,c=>c.branchChildId===o)??N(t,c=>c.status==="running");return i?T(t,i,c=>{let m=(c.children??[]).map(R=>R.status==="running"&&R.childId===o?{...R,status:"stopped",phase:void 0}:R);return m.push({index:l,objective:u,status:"running",childId:o}),{...c,children:m}}):t});else if(a){let t=Math.max(0,b.current-1);h(i=>{let c=[...i];if(t>=c.length)return i;let m={...c[t]},P=[...m.children??[]].map(O=>O.status==="running"&&O.childId===void 0?{...O,status:"stopped",phase:void 0}:O);return P.push({index:l,objective:u,status:"running"}),m.children=P,m.status="running",c[t]=m,c})}else h(t=>{let i=Q(t);return i.some(m=>m.index===l)?i.map(m=>m.index===l?{...m,status:"running",objective:u}:m):[...i,{index:l,objective:u,status:"running"}]});break}case"step_event":{e?.("STEP_EVENT",`Step ${n.index} ${n.event}`,{index:n.index,phase:n.event,action_type:n.action_type,detail:n.detail,child_id:n.child_id});let l=n.child_id,u=w.current&&!w.current.isSingleFlow;if(n.event==="cm_init"&&n.checkpoint_count!=null){Y(o=>[...o,n.checkpoint_count]);break}if(n.event==="replay_started"){Z({recordingLength:n.recording_length??0});break}if(n.event==="reasoning"&&n.detail&&n.detail!=="reasoning"&&s?.(n.detail),l){let o=t=>{if(t.index!==n.index||t.childId!==l)return t;let i={phase:n.event};return n.event==="reasoning"&&n.detail&&n.detail!=="reasoning"&&(i.objective=n.detail),n.action_type&&(i.actionType=n.action_type),{...t,...i}},a=t=>t.map(i=>{let c=o(i);return c!==i?c:i.children&&i.children.length>0?{...i,children:a(i.children)}:i});h(t=>t.map(i=>i.children?{...i,children:a(i.children)}:i))}else if(u){let o=Math.max(0,b.current-1);h(a=>{let t=[...a];if(o>=t.length)return a;let i={...t[o]},c=[...i.children??[]];if(!c.some(R=>R.index===n.index&&R.childId===void 0))c.push({index:n.index,objective:`Step ${n.index}`,status:"running",phase:n.event,actionType:n.action_type});else for(let R=0;R<c.length;R++){if(c[R].index!==n.index||c[R].childId!==void 0)continue;let P={phase:n.event};n.event==="reasoning"&&n.detail&&n.detail!=="reasoning"&&(P.objective=n.detail),n.action_type&&(P.actionType=n.action_type),c[R]={...c[R],...P}}return i.children=c,t[o]=i,t})}else h(o=>o.some(t=>t.index===n.index)?o.map(t=>{if(t.index!==n.index)return t;let i={phase:n.event};return n.event==="reasoning"&&n.detail&&n.detail!=="reasoning"&&(i.objective=n.detail),n.action_type&&(i.actionType=n.action_type),{...t,...i}}):[...Q(o),{index:n.index,objective:`Step ${n.index}`,status:"running",phase:n.event,actionType:n.action_type}]);break}case"step_end":{e?.("STEP_END",`Step ${n.index} ${n.status}`,{index:n.index,status:n.status,duration:n.duration,summary:n.summary,child_id:n.child_id}),d?.();let l=n.child_id,u=w.current&&!w.current.isSingleFlow;if(l){let o=t=>t.index===n.index&&t.childId===l?{...t,status:n.status,duration:n.duration,phase:void 0,objective:t.objective.startsWith("Step ")?J(n.summary||t.objective):t.objective}:t,a=t=>t.map(i=>{let c=o(i);return c!==i?c:i.children&&i.children.length>0?{...i,children:a(i.children)}:i});h(t=>t.map(i=>i.children?{...i,children:a(i.children)}:i))}else if(u){let o=Math.max(0,b.current-1);h(a=>{let t=[...a];if(o>=t.length)return a;let i={...t[o]},c=(i.children??[]).map(m=>m.index===n.index&&m.childId===void 0?{...m,status:n.status,duration:n.duration,phase:void 0,objective:m.objective.startsWith("Step ")?J(n.summary||m.objective):m.objective}:m);return i.children=c,t[o]=i,t})}else h(o=>o.map(a=>a.index===n.index?{...a,status:n.status,duration:n.duration,phase:void 0,objective:a.objective.startsWith("Step ")?J(n.summary||a.objective):a.objective}:a));{let a=w.current&&!w.current.isSingleFlow?Math.max(0,b.current-1):0,t=typeof n.ordinal=="number"&&n.id?{ordinal:n.ordinal,id:n.id}:void 0;r?.(n.index,a,n.child_id,t)}break}case"child_agent_start":{let l=n.objective??"",u=n.child_id;h(o=>{let a=N(o,t=>t.status==="running");return a?T(o,a,t=>({...t,objective:`${l} (branch)`,phase:`child: ${l.slice(0,50)}`,branchObjective:l,branchChildId:u})):o});break}case"child_agent_end":{let l=n.child_id,u=`child ${n.success?"done":"failed"}`;h(o=>{let a=N(o,t=>t.branchChildId===l);return a?T(o,a,t=>({...t,phase:u})):o.map(t=>t.phase?.startsWith("child:")?{...t,phase:u}:t)});break}case"describe_trigger":g?.(n);break;case"ask_user":D(n.question??"");break;case"run_end":h(l=>l.map(u=>u.status==="running"?{...u,status:n.status,phase:void 0}:u)),v(!1),B(n);break;case"error":v(!1),C(n.message??"Runner error"),h(l=>l.map(u=>u.status==="running"?{...u,status:"failed",phase:void 0}:u));break}}})().catch(n=>{if(x.current!==G)return;let u=[n instanceof Error?n.message:String(n)],o=G.stderr;o&&!u.join(`
|