@testmuai/kane-cli 0.10.0-rc.3 → 0.10.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/ChatSurface-XUV3EQPZ.js +2 -0
- package/dist/{ChromeProfilePicker-M4WXOB5O.js → ChromeProfilePicker-FWPUDKD6.js} +1 -1
- package/dist/{CliFeedbackPrompt-6MJA7DF6.js → CliFeedbackPrompt-D5L2DO6A.js} +1 -1
- package/dist/{CliUploadProgress-6NLS7XHH.js → CliUploadProgress-HQX57WE6.js} +1 -1
- package/dist/{ConfigView-O4WKZ5PU.js → ConfigView-DGQXKEON.js} +1 -1
- package/dist/EvidenceViewOffer-EIANIYN7.js +2 -0
- package/dist/FolderPicker-XOA7FTHF.js +2 -0
- package/dist/InfoBox-OBH7SUGC.js +2 -0
- package/dist/{LinksBox-DXP66H3H.js → LinksBox-WZ4RAMSH.js} +1 -1
- package/dist/{ProfilesView-TWOY5PVC.js → ProfilesView-AGRNPGSW.js} +1 -1
- package/dist/ProjectPicker-6KRLKV4U.js +2 -0
- package/dist/SaveSessionPrompt-J2OPDEOO.js +2 -0
- package/dist/SingleShotApp-QI4B2TSL.js +2 -0
- package/dist/{SummaryBox-IA2KS6GT.js → SummaryBox-XQJUZBAN.js} +1 -1
- package/dist/TestMdRunView-I4MV54FB.js +2 -0
- package/dist/TestrunEvidenceTable-WEIUSW3E.js +2 -0
- package/dist/{WhoamiView-SNL75TEF.js → WhoamiView-JQCURK2M.js} +1 -1
- package/dist/{app-download-UI4ABEIX.js → app-download-OU6AGH2X.js} +1 -1
- package/dist/{assurance-job-FFSSS4XV.js → assurance-job-ZI3L6I4F.js} +1 -1
- package/dist/{binary-THPLXCOD.js → binary-S5YL5GJD.js} +1 -1
- package/dist/bind-LIV72SEZ.js +2 -0
- package/dist/bootstrap-3V6TOO6I.js +2 -0
- package/dist/{bridge-T6QMYKED.js → bridge-SDEP7Y33.js} +1 -1
- package/dist/{catalog-MYPS2BXY.js → catalog-I3PC6LT6.js} +1 -1
- package/dist/catalog-client-WKYG3JN6.js +2 -0
- package/dist/{changelog-SU674BVE.js → changelog-IHNWFYWY.js} +1 -1
- package/dist/chat-committer-FM5NG46O.js +2 -0
- package/dist/{chat-controller-XINCDH6Z.js → chat-controller-FWFQVZTB.js} +1 -1
- package/dist/child-H2YSDFCG.js +2 -0
- package/dist/{chunk-QDFY5GGO.js → chunk-252GEI3H.js} +1 -1
- package/dist/{chunk-TNORODUF.js → chunk-2B75UL7Y.js} +1 -1
- package/dist/{chunk-FWDUVFS6.js → chunk-2EVP636F.js} +17 -17
- package/dist/{chunk-7XBNMOH4.js → chunk-2GE5X2A5.js} +1 -1
- package/dist/{chunk-DJC7NTLA.js → chunk-2L3A5NKZ.js} +1 -1
- package/dist/{chunk-CUXY6KQ2.js → chunk-2N75WO7Y.js} +1 -1
- package/dist/{chunk-CGITGJ3I.js → chunk-2PZKMT3I.js} +1 -1
- package/dist/{chunk-M43WH5DQ.js → chunk-2SY2NCOP.js} +1 -1
- package/dist/{chunk-Q3C6NDGI.js → chunk-32Y6QVFG.js} +1 -1
- package/dist/{chunk-734ORT6O.js → chunk-3OVFKUXV.js} +1 -1
- package/dist/{chunk-IGEAET7M.js → chunk-3T2TYDPT.js} +1 -1
- package/dist/{chunk-TU42YZOJ.js → chunk-3UHPVQLU.js} +1 -1
- package/dist/{chunk-WEIPY3CI.js → chunk-3ZPEQDXZ.js} +1 -1
- package/dist/{chunk-RHGW7B5Q.js → chunk-436FZ4KG.js} +1 -1
- package/dist/{chunk-YQ5C6UDG.js → chunk-4523YDTG.js} +1 -1
- package/dist/{chunk-7SY34IIL.js → chunk-45URQUAK.js} +1 -1
- package/dist/{chunk-VSVWNRI2.js → chunk-4BUEOKFV.js} +1 -1
- package/dist/{chunk-NZ6AV2TA.js → chunk-4JWJH6TB.js} +1 -1
- package/dist/{chunk-YPFQ4UGF.js → chunk-4MNSP4EO.js} +1 -1
- package/dist/{chunk-ZFMRQ57Y.js → chunk-4NUSW4A2.js} +1 -1
- package/dist/{chunk-FSYOTRMC.js → chunk-4R4YUOVY.js} +1 -1
- package/dist/{chunk-FWUPJORV.js → chunk-4SJAOAYY.js} +1 -1
- package/dist/{chunk-SMTBOSEJ.js → chunk-52VCA4K2.js} +1 -1
- package/dist/{chunk-4YW767UV.js → chunk-567D5ZTO.js} +7 -7
- package/dist/{chunk-W4QSZNMB.js → chunk-5IO5ZC4S.js} +1 -1
- package/dist/{chunk-LSDJOVWW.js → chunk-5R3ODQHH.js} +1 -1
- package/dist/{chunk-WXJCJL5L.js → chunk-5T6II7VN.js} +1 -1
- package/dist/{chunk-3YTCKCBG.js → chunk-65BG6GAE.js} +1 -1
- package/dist/{chunk-LAOTVZHV.js → chunk-6DZ7LVOG.js} +1 -1
- package/dist/chunk-6K5BEEAJ.js +2 -0
- package/dist/{chunk-42PALMW2.js → chunk-6TNLITJO.js} +1 -1
- package/dist/{chunk-VXGN3IV7.js → chunk-7C4IEL5V.js} +1 -1
- package/dist/{chunk-PUVMC4PX.js → chunk-7V34ZMMS.js} +1 -1
- package/dist/{chunk-DDZLCAEO.js → chunk-7ZJWUWSN.js} +1 -1
- package/dist/{chunk-ICLUC44J.js → chunk-A3TCFSCK.js} +1 -1
- package/dist/{chunk-F5NHG7VB.js → chunk-A4BB6GLN.js} +1 -1
- package/dist/{chunk-AVSMXDTX.js → chunk-AG5XJWEV.js} +1 -1
- package/dist/{chunk-GQRU3B54.js → chunk-AGXAJ2II.js} +1 -1
- package/dist/{chunk-6UVIY56J.js → chunk-AIGQCMGY.js} +1 -1
- package/dist/{chunk-RX6776AI.js → chunk-AU26ZZTX.js} +1 -1
- package/dist/{chunk-CCP4X75B.js → chunk-AUBSLPJZ.js} +1 -1
- package/dist/{chunk-XQMWHPZI.js → chunk-B2WFW74J.js} +1 -1
- package/dist/{chunk-NXRF7FFS.js → chunk-B7JLM3IX.js} +1 -1
- package/dist/{chunk-LUZBGTYB.js → chunk-BRVIK3BU.js} +1 -1
- package/dist/{chunk-URH4FX3H.js → chunk-BY2B4YJN.js} +1 -1
- package/dist/{chunk-Y7E5L42F.js → chunk-CBVHP7JB.js} +1 -1
- package/dist/{chunk-ZFM77AQU.js → chunk-CJE7PKRV.js} +1 -1
- package/dist/{chunk-2DYHAP4E.js → chunk-CJQUVHHS.js} +1 -1
- package/dist/{chunk-OFSDB7B4.js → chunk-COJINPOK.js} +2 -2
- package/dist/{chunk-JZP3Y4ZM.js → chunk-D6CS62O7.js} +1 -1
- package/dist/{chunk-457Y5TEC.js → chunk-DBTMKBHU.js} +1 -1
- package/dist/{chunk-CM4CHYSN.js → chunk-DHYGCHKB.js} +1 -1
- package/dist/{chunk-DZOYYWOW.js → chunk-DTYT6KBO.js} +1 -1
- package/dist/{chunk-6EB5VRAN.js → chunk-EC5IP5HZ.js} +1 -1
- package/dist/{chunk-35ECWCCK.js → chunk-EH43VWVR.js} +1 -1
- package/dist/{chunk-HQ2E2XCU.js → chunk-ENG2UTMX.js} +1 -1
- package/dist/{chunk-VUFIL5VR.js → chunk-EPJ5SJL2.js} +2 -2
- package/dist/{chunk-YHFZFV3A.js → chunk-EQWMOGLO.js} +9 -9
- package/dist/{chunk-XLEGGC4Y.js → chunk-EVZLINBN.js} +1 -1
- package/dist/{chunk-44B6THYK.js → chunk-EX6ORR7P.js} +1 -1
- package/dist/{chunk-EBPRPNSA.js → chunk-FBQ7PQJV.js} +1 -1
- package/dist/{chunk-AEWNWAXW.js → chunk-FLOQ5NZL.js} +2 -2
- package/dist/{chunk-LCSJ7GOG.js → chunk-FPPVNF53.js} +1 -1
- package/dist/{chunk-F22K3RRX.js → chunk-FPVGA6XT.js} +1 -1
- package/dist/{chunk-IJ2AHSWW.js → chunk-FVYIV36L.js} +1 -1
- package/dist/chunk-FYCD765R.js +161 -0
- package/dist/{chunk-AVI5H4UM.js → chunk-G2KTWFMU.js} +1 -1
- package/dist/{chunk-ACMBMZDQ.js → chunk-G3CYFCSR.js} +1 -1
- package/dist/{chunk-JNSWKGTB.js → chunk-G3J4XY3Z.js} +1 -1
- package/dist/{chunk-KXHJMAZU.js → chunk-GET4DINR.js} +2 -2
- package/dist/{chunk-54XA5MZH.js → chunk-GGS3ATPB.js} +1 -1
- package/dist/{chunk-C2RUDJ46.js → chunk-GGV336P5.js} +1 -1
- package/dist/{chunk-L5DALV5N.js → chunk-GI2JPIX5.js} +1 -1
- package/dist/{chunk-HAW5WEKT.js → chunk-GRO6DLN3.js} +1 -1
- package/dist/{chunk-3RJHXOZH.js → chunk-GXMD23XB.js} +1 -1
- package/dist/chunk-GYDJO32R.js +2 -0
- package/dist/{chunk-W7FLXW6Q.js → chunk-H4KPNGY4.js} +1 -1
- package/dist/{chunk-PAWQ4AKN.js → chunk-HBVHIEPB.js} +1 -1
- package/dist/{chunk-EF47KRUK.js → chunk-HGVM2OZU.js} +1 -1
- package/dist/{chunk-4QFTHUJA.js → chunk-HMQ5M4JJ.js} +1 -1
- package/dist/{chunk-ZTHYAHDN.js → chunk-I2VU2DTS.js} +1 -1
- package/dist/{chunk-7NCJMWFX.js → chunk-J4LQAT5P.js} +1 -1
- package/dist/{chunk-HK62JVQM.js → chunk-JCSVBD4F.js} +1 -1
- package/dist/{chunk-7AET4JKQ.js → chunk-JFBEHCJN.js} +1 -1
- package/dist/{chunk-EECDDDSB.js → chunk-JGLADDRH.js} +1 -1
- package/dist/{chunk-I4WXALQR.js → chunk-JOCEZK2M.js} +1 -1
- package/dist/{chunk-5AKJPYUW.js → chunk-JQ7ZZQXC.js} +3 -3
- package/dist/{chunk-C62QWG4B.js → chunk-JRSEAXFE.js} +1 -1
- package/dist/{chunk-D7U2M26S.js → chunk-JSLKCCD2.js} +1 -1
- package/dist/{chunk-RTVHJ23A.js → chunk-JT6WLJSV.js} +1 -1
- package/dist/{chunk-P3JXJ4BW.js → chunk-JTJ7IPNI.js} +1 -1
- package/dist/{chunk-ZTRRFG52.js → chunk-JX5NVKTV.js} +1 -1
- package/dist/{chunk-QBYENBMB.js → chunk-K2PLULJD.js} +1 -1
- package/dist/{chunk-RF37IJNN.js → chunk-K3OSK6PB.js} +1 -1
- package/dist/{chunk-3GXN6VF6.js → chunk-KDR662D2.js} +1 -1
- package/dist/{chunk-NLZZLANH.js → chunk-KRRZCY7U.js} +1 -1
- package/dist/{chunk-KODJVOCN.js → chunk-LHQUCRCH.js} +1 -1
- package/dist/{chunk-WOSANGV6.js → chunk-LNHBZEDC.js} +1 -1
- package/dist/{chunk-PZA3BSOE.js → chunk-LXM7VHYN.js} +1 -1
- package/dist/{chunk-D7TKE7LK.js → chunk-MHB6DMKZ.js} +1 -1
- package/dist/{chunk-W6HZF56M.js → chunk-MJKRJGER.js} +1 -1
- package/dist/{chunk-V7USCQWO.js → chunk-MKPDF26Q.js} +1 -1
- package/dist/{chunk-VLDCHFXF.js → chunk-MPEIMWQI.js} +1 -1
- package/dist/{chunk-YIKF4ERQ.js → chunk-MW2WNYJO.js} +2 -2
- package/dist/{chunk-MYVKUJGS.js → chunk-N3KTLWJL.js} +1 -1
- package/dist/{chunk-QDXKEOKI.js → chunk-NJCN6LP5.js} +6 -6
- package/dist/{chunk-IUQOG7Z5.js → chunk-NOFJXCYP.js} +1 -1
- package/dist/{chunk-I4RVVBG3.js → chunk-NTXFPNAP.js} +1 -1
- package/dist/{chunk-XZGEN4NU.js → chunk-ONZ2CSTZ.js} +1 -1
- package/dist/{chunk-UYDHOHSZ.js → chunk-OR2B6T3B.js} +1 -1
- package/dist/{chunk-UUJIGOEO.js → chunk-ORNVIEUA.js} +1 -1
- package/dist/{chunk-R7KXAISS.js → chunk-P2LDAW3C.js} +1 -1
- package/dist/{chunk-ECPFI75W.js → chunk-PBWYQR5I.js} +1 -1
- package/dist/{chunk-O3HHTKZ5.js → chunk-PCDIEYV6.js} +1 -1
- package/dist/{chunk-EZN7CF45.js → chunk-PL3SG3M2.js} +1 -1
- package/dist/{chunk-NXAJBSIF.js → chunk-PQXYHI5W.js} +1 -1
- package/dist/{chunk-WAOUE7MP.js → chunk-PTISAIZW.js} +1 -1
- package/dist/{chunk-XZYA7DNH.js → chunk-PVN64537.js} +1 -1
- package/dist/{chunk-NIVFEACM.js → chunk-QECTIQAC.js} +1 -1
- package/dist/chunk-QMOGBKJM.js +2 -0
- package/dist/{chunk-ZU4W2QGM.js → chunk-QQI6N3FO.js} +1 -1
- package/dist/{chunk-7RWP4Y3H.js → chunk-QVP4FSKT.js} +1 -1
- package/dist/{chunk-OCDBTAYS.js → chunk-QWZJ5QDO.js} +2 -2
- package/dist/{chunk-YLXWAY7D.js → chunk-RARD6TC6.js} +1 -1
- package/dist/chunk-RDH3E25Q.js +27 -0
- package/dist/{chunk-AZLNLHUA.js → chunk-RLOJH5O6.js} +1 -1
- package/dist/{chunk-RPRXRKKR.js → chunk-RQKMSNEU.js} +1 -1
- package/dist/{chunk-R4JUKTDO.js → chunk-SB6P5EQH.js} +1 -1
- package/dist/{chunk-TU7TVFBK.js → chunk-SBR6D6GS.js} +1 -1
- package/dist/{chunk-7HMSMAUG.js → chunk-TLOYTGVT.js} +5 -5
- package/dist/{chunk-LUR7JFPP.js → chunk-TZVPDGJD.js} +1 -1
- package/dist/{chunk-D756UWY2.js → chunk-U7NRZBB5.js} +1 -1
- package/dist/{chunk-72RC7JSA.js → chunk-UEPJ26X2.js} +1 -1
- package/dist/chunk-UJLULWSR.js +21 -0
- package/dist/{chunk-LQQNPMOD.js → chunk-ULGBK4NS.js} +1 -1
- package/dist/{chunk-6DZX5HLZ.js → chunk-UNWPBMVM.js} +1 -1
- package/dist/chunk-URAYFJGM.js +87 -0
- package/dist/{chunk-FIP5L6LV.js → chunk-USJ3LUAL.js} +1 -1
- package/dist/chunk-UUWSULIM.js +101 -0
- package/dist/chunk-UX2CDUPE.js +9 -0
- package/dist/{chunk-GXKY5A46.js → chunk-VA3BSIUQ.js} +1 -1
- package/dist/chunk-VQZOKTJ2.js +12 -0
- package/dist/{chunk-36N3EHW5.js → chunk-VVCZRCRD.js} +1 -1
- package/dist/{chunk-HJMCXSUJ.js → chunk-VZA7BPCK.js} +1 -1
- package/dist/{chunk-LIGTP3A3.js → chunk-W3NWHWK2.js} +1 -1
- package/dist/{chunk-E6KSRQXL.js → chunk-WERIGVOH.js} +1 -1
- package/dist/{chunk-ETZMFRD6.js → chunk-WKZLK57W.js} +1 -1
- package/dist/{chunk-3OQW2GTA.js → chunk-WQR2GYP7.js} +1 -1
- package/dist/{chunk-SGPAM5DZ.js → chunk-WX4VGH5Q.js} +1 -1
- package/dist/{chunk-OJ33Q6DU.js → chunk-WZLDFEWR.js} +1 -1
- package/dist/{chunk-ZAFJQ3SM.js → chunk-X3J4CC27.js} +1 -1
- package/dist/chunk-XLQ4F6BI.js +9 -0
- package/dist/{chunk-XRNQSXOM.js → chunk-XMALVGH7.js} +2 -2
- package/dist/{chunk-TW5AA5A7.js → chunk-Y3YULFCK.js} +1 -1
- package/dist/{chunk-7YT4TTKL.js → chunk-YGMQXS2J.js} +1 -1
- package/dist/{chunk-RDP7GWSY.js → chunk-YH4VZVHJ.js} +1 -1
- package/dist/{chunk-YGRULEZY.js → chunk-YI4ESDAX.js} +1 -1
- package/dist/{chunk-YAW6JW6D.js → chunk-YKL5H4K6.js} +1 -1
- package/dist/{chunk-VX657KIK.js → chunk-YKOEABP2.js} +1 -1
- package/dist/{chunk-3E4ZO73O.js → chunk-YYVBE6W2.js} +1 -1
- package/dist/{chunk-MEKPGQAM.js → chunk-Z5BFCTHI.js} +2 -2
- package/dist/{chunk-UEE3RZN4.js → chunk-Z777GGHB.js} +1 -1
- package/dist/{chunk-7NPTL66J.js → chunk-ZGQM6KWN.js} +1 -1
- package/dist/{chunk-QENCC2ZS.js → chunk-ZI3X7DI2.js} +1 -1
- package/dist/{chunk-3F5FMH76.js → chunk-ZKPY3AXW.js} +1 -1
- package/dist/chunk-ZRDX2ARO.js +4 -0
- package/dist/{chunk-MNBGG4H3.js → chunk-ZTAZ2R5Z.js} +1 -1
- package/dist/{chunk-LKQFG4RW.js → chunk-ZY65IZJR.js} +1 -1
- package/dist/{chunk-WZXPF3BI.js → chunk-ZZNQIFFI.js} +1 -1
- package/dist/commands-QOORPTSI.js +2 -0
- package/dist/{committer-JGY66PFM.js → committer-26UZDYSA.js} +1 -1
- package/dist/{config-754B73XK.js → config-B472DZSR.js} +1 -1
- package/dist/{cover-cmd-NBNZCR6C.js → cover-cmd-3VO6QC5Y.js} +1 -1
- package/dist/{credentials-F7DYLVWY.js → credentials-TLT3RQOO.js} +1 -1
- package/dist/{deps-bundle-PW3WEQJ7.js → deps-bundle-CMTIWBS5.js} +1 -1
- package/dist/{deps-resolve-SQYVN76L.js → deps-resolve-XLFZK74A.js} +1 -1
- package/dist/{design-chat-F3OEZPNJ.js → design-chat-I7X3QDDY.js} +1 -1
- package/dist/design-committer-Y7R56RFZ.js +2 -0
- package/dist/design-headless-HUQOXLZB.js +2 -0
- package/dist/{design-remote-2BEGCVCX.js → design-remote-UDC5FP45.js} +2 -2
- package/dist/device-env-MMGISNHN.js +2 -0
- package/dist/dispatch-P2445PUU.js +2 -0
- package/dist/{doctor-XY26Z35T.js → doctor-UHFCIM4B.js} +1 -1
- package/dist/{docx-convert-6IZO5P5K.js → docx-convert-N4KMLLKO.js} +1 -1
- package/dist/{dossier-NROC2MCY.js → dossier-6KMKEIXV.js} +1 -1
- package/dist/evidence-M3JTOJNL.js +2 -0
- package/dist/{evidence-presentation-YYTIDCBS.js → evidence-presentation-DV3DRB4S.js} +1 -1
- package/dist/evolve-cmd-K3JXACMN.js +2 -0
- package/dist/{evolve-remote-WLVY3QID.js → evolve-remote-CUDVV2O2.js} +1 -1
- package/dist/{exit-manager-EDHCETUN.js → exit-manager-EGWAZHCR.js} +1 -1
- package/dist/{explain-cmd-OP5I5W3O.js → explain-cmd-235TY7QX.js} +1 -1
- package/dist/{explain-cmd-VYAANFFZ.js → explain-cmd-R67B4YR3.js} +1 -1
- package/dist/explore-UDD5FHXW.js +2 -0
- package/dist/{explore-context-tty-RZ7D2TBV.js → explore-context-tty-YXEFT32U.js} +1 -1
- package/dist/{explore-entry-EKXJ67BD.js → explore-entry-V6L5FSP4.js} +4 -4
- package/dist/{explore-live-2YVRAQZO.js → explore-live-N5VBLBUI.js} +1 -1
- package/dist/{explore-run-tty-D47FGPX7.js → explore-run-tty-ZZQ33GNA.js} +2 -2
- package/dist/{extract-bind-W2NET364.js → extract-bind-BTINHHE5.js} +3 -3
- package/dist/{extract-chat-M65NWGUK.js → extract-chat-ABZ5S7UU.js} +1 -1
- package/dist/{extract-cmd-FTFLETOP.js → extract-cmd-45OZETCM.js} +2 -2
- package/dist/extract-headless-ALEFAMVS.js +2 -0
- package/dist/{feeder-NY45UFJK.js → feeder-L55TH2NC.js} +1 -1
- package/dist/folder-flags-HTKJCXKB.js +2 -0
- package/dist/{gaps-cmd-OIDDLRYL.js → gaps-cmd-ROGQWK5X.js} +1 -1
- package/dist/{gate-WISOUTHQ.js → gate-QA5J7UZA.js} +1 -1
- package/dist/gate-XFFFX5ZF.js +2 -0
- package/dist/{generate-headless-RURIEKVS.js → generate-headless-DAH3HHRQ.js} +2 -2
- package/dist/hold-passthrough-K5PP26CP.js +2 -0
- package/dist/impact-cmd-3VFJAKYK.js +11 -0
- package/dist/index.js +171 -165
- package/dist/ingest-S5R736ZV.js +2 -0
- package/dist/{ingest-cmd-4G2AK4Y2.js → ingest-cmd-YSEH5EPU.js} +3 -3
- package/dist/ingest-remote-C6AP2Q7E.js +2 -0
- package/dist/install-B26Y2NU4.js +2 -0
- package/dist/{interactive-bind-SI2ZS55Q.js → interactive-bind-P3GTFIZM.js} +4 -4
- package/dist/{interactive-remote-J56EWJGA.js → interactive-remote-PBRQHTAF.js} +2 -2
- package/dist/lane-7IEAE6AC.js +2 -0
- package/dist/lattice-auth-7EL4ET3P.js +2 -0
- package/dist/{lifecycle-cmd-HJ37LTXE.js → lifecycle-cmd-PUNFWKV5.js} +1 -1
- package/dist/{list-cmd-6XL2FYLQ.js → list-cmd-RD7YBF4S.js} +1 -1
- package/dist/list-commands-UZELZAB3.js +2 -0
- package/dist/{list-remote-LXPQNXYN.js → list-remote-KGKXPCQA.js} +1 -1
- package/dist/{locks-cmd-JJ2QNTNY.js → locks-cmd-LXZ6I4QG.js} +1 -1
- package/dist/{logical-ids-RXAQJZ3T.js → logical-ids-D5PFYY4C.js} +1 -1
- package/dist/login-flow-CHLGQGHK.js +2 -0
- package/dist/{maintenance-cmd-BXXHP36K.js → maintenance-cmd-WRWBCP3R.js} +1 -1
- package/dist/{mobile-prompts-CECJ5UY2.js → mobile-prompts-Z7NQHRGP.js} +1 -1
- package/dist/{onboarding-PDVYMTY5.js → onboarding-ZP4XDYEO.js} +1 -1
- package/dist/{open-provider-OZAG6WZS.js → open-provider-U26BBVUE.js} +1 -1
- package/dist/pdf-convert-LMKOKLXT.js +2 -0
- package/dist/{persist-recorded-session-A3ID7JFA.js → persist-recorded-session-4IRYG5CJ.js} +1 -1
- package/dist/phase-seed-2H6OXZXT.js +2 -0
- package/dist/pipeline-U7D25NST.js +2 -0
- package/dist/policy-commands-TY6WOR73.js +8 -0
- package/dist/prepare-target-EVL2QSXA.js +2 -0
- package/dist/{pull-cmd-UPFQYUND.js → pull-cmd-QJQANBAW.js} +1 -1
- package/dist/pull-route-AIOTLA3D.js +2 -0
- package/dist/{readmodel-INMP6MNW.js → readmodel-KXCFPL2M.js} +1 -1
- package/dist/real-device-run-QODMDUXF.js +2 -0
- package/dist/{reconcile-cmd-JBH365JL.js → reconcile-cmd-IJTQAJZX.js} +4 -4
- package/dist/reconcile-deps-2CTIFXDR.js +2 -0
- package/dist/{reconcile-remote-BCX6SWFC.js → reconcile-remote-23D6SXXT.js} +2 -2
- package/dist/{recording-banner-YKBAL6UB.js → recording-banner-MNRMMEX4.js} +1 -1
- package/dist/registry-MZYBLEW2.js +2 -0
- package/dist/remote-entry-DW2J56N4.js +2 -0
- package/dist/remote-mode-AFNCN6EE.js +4 -0
- package/dist/{remote-words-YVB66R3F.js → remote-words-RCNFI2TQ.js} +1 -1
- package/dist/{require-project-folder-MLMEQJYP.js → require-project-folder-7UH43GHI.js} +1 -1
- package/dist/{resolve-run-intent-PC7TQZUL.js → resolve-run-intent-XEWFYMGN.js} +1 -1
- package/dist/{resolver-EID34LQE.js → resolver-QMPX6RBR.js} +1 -1
- package/dist/{revert-FHOBLZWF.js → revert-37346WLE.js} +1 -1
- package/dist/{review-cmd-EUHFLFMY.js → review-cmd-2OECKNL5.js} +1 -1
- package/dist/run-JWOHNWA3.js +2 -0
- package/dist/run-QFJ6ZRVD.js +2 -0
- package/dist/run-remote-66QTUQ2M.js +2 -0
- package/dist/{run-startup-gate-YO66G6LS.js → run-startup-gate-USQFSW47.js} +1 -1
- package/dist/run-test-md-7DRWCSQE.js +19 -0
- package/dist/session-worker.js +2 -2
- package/dist/{sessions-cmd-S7WZBUCN.js → sessions-cmd-LQ2LZQOC.js} +2 -2
- package/dist/{sessions-remote-IWHWIQ2T.js → sessions-remote-H7CQST42.js} +1 -1
- package/dist/{skill-installer-MAVQY6GW.js → skill-installer-LKYY6XFJ.js} +1 -1
- package/dist/{store-MSA7KASS.js → store-KM5MG3XB.js} +1 -1
- package/dist/store-choice-4J2NN6OQ.js +2 -0
- package/dist/store-guard-34GG2TW2.js +2 -0
- package/dist/{store-site-KA2DNBGY.js → store-site-ZSFINU6C.js} +1 -1
- package/dist/stream-warnings-N4KVVWXV.js +2 -0
- package/dist/sync-cmd-3CHSWWWW.js +2 -0
- package/dist/{sync-setup-RBRDUV7Q.js → sync-setup-QQXYO6R4.js} +1 -1
- package/dist/tcg-generate-IPD5FQUW.js +2 -0
- package/dist/{test-definition-VRI4YIYL.js → test-definition-53XNBEDE.js} +1 -1
- package/dist/testmd-actions-V7P7BMKE.js +2 -0
- package/dist/{testmd-sync-UPAA5UMD.js → testmd-sync-PQ4GFKHB.js} +1 -1
- package/dist/tms-client-XWCR7O7J.js +2 -0
- package/dist/token-refresh-LR33BKAB.js +2 -0
- package/dist/{use-case-ref-NE4X4MZN.js → use-case-ref-NA3IXGQW.js} +1 -1
- package/dist/{validate-basic-M5JHHNZA.js → validate-basic-3DX3MMC7.js} +1 -1
- package/dist/verdicts-7GKZEDHV.js +2 -0
- package/dist/{version-check-Q737BE65.js → version-check-OV6AOVED.js} +1 -1
- package/dist/{view-cmd-XSNL5DGI.js → view-cmd-QDKBBNIU.js} +1 -1
- package/dist/{walk-session-SHGYLFRB.js → walk-session-BAYYPIKN.js} +1 -1
- package/dist/with-telemetry-62LW4VFI.js +2 -0
- package/package.json +12 -12
- package/dist/ChatSurface-6NZGMNHL.js +0 -2
- package/dist/EvidenceViewOffer-WIEWCZUP.js +0 -2
- package/dist/FolderPicker-AF7ZMV3M.js +0 -2
- package/dist/InfoBox-D7GGZJU4.js +0 -2
- package/dist/ProjectPicker-OBYHJJLU.js +0 -2
- package/dist/SaveSessionPrompt-7XSHS4NL.js +0 -2
- package/dist/SingleShotApp-XQUDR36R.js +0 -2
- package/dist/TestMdRunView-LS2QUFWR.js +0 -2
- package/dist/TestrunEvidenceTable-HNDVJDIF.js +0 -2
- package/dist/bind-4XWK3DG2.js +0 -2
- package/dist/bootstrap-6ACT4ALI.js +0 -2
- package/dist/chat-committer-ZCSRJEUB.js +0 -2
- package/dist/child-G2GCW73X.js +0 -2
- package/dist/chunk-65VANXOF.js +0 -147
- package/dist/chunk-C6HI6Y3S.js +0 -2
- package/dist/chunk-D36V5OX6.js +0 -2
- package/dist/chunk-HCJ2N3XB.js +0 -12
- package/dist/chunk-NC7D7GOM.js +0 -21
- package/dist/chunk-OGFU4YY4.js +0 -2
- package/dist/chunk-VZ4A6WMK.js +0 -97
- package/dist/chunk-W54OT2FU.js +0 -9
- package/dist/chunk-W72ACCFL.js +0 -27
- package/dist/design-committer-TRYP3LOZ.js +0 -2
- package/dist/design-headless-OTHYOX3E.js +0 -2
- package/dist/device-env-CHFRRV6W.js +0 -2
- package/dist/dispatch-DVQ3H7EJ.js +0 -2
- package/dist/evidence-P6FFKC7B.js +0 -2
- package/dist/evolve-cmd-WWOB3QJR.js +0 -2
- package/dist/explore-K5YBGHK6.js +0 -2
- package/dist/extract-headless-G6W6JQ27.js +0 -2
- package/dist/folder-flags-KKIH654K.js +0 -2
- package/dist/gate-7AKRPRMK.js +0 -2
- package/dist/hold-passthrough-IOWPVB4W.js +0 -2
- package/dist/ingest-PDGS5ZTL.js +0 -2
- package/dist/ingest-remote-SSLUHQVG.js +0 -2
- package/dist/install-ZVBHPXGP.js +0 -2
- package/dist/lane-AQYRIW24.js +0 -2
- package/dist/lattice-auth-6FEVSR7E.js +0 -2
- package/dist/list-commands-5DCCKU3L.js +0 -2
- package/dist/login-flow-WEK3E476.js +0 -2
- package/dist/pdf-convert-447ACUB3.js +0 -2
- package/dist/phase-seed-LCJ4WSYV.js +0 -2
- package/dist/pipeline-GX3LKPI5.js +0 -2
- package/dist/prepare-target-FMT6QFHZ.js +0 -2
- package/dist/pull-route-FWBXJMR7.js +0 -2
- package/dist/real-device-run-X7JJWOIK.js +0 -2
- package/dist/reconcile-deps-TWJ3FTSU.js +0 -2
- package/dist/registry-VQC757MJ.js +0 -2
- package/dist/remote-entry-X6JMPC2K.js +0 -2
- package/dist/remote-mode-FDPA7EWG.js +0 -4
- package/dist/run-5RQUCNYP.js +0 -2
- package/dist/run-PC5YO4AS.js +0 -2
- package/dist/run-remote-SJCRTL7O.js +0 -2
- package/dist/run-test-md-BLNBK4MH.js +0 -17
- package/dist/store-choice-3OJCV26J.js +0 -2
- package/dist/store-guard-OOSDLMEC.js +0 -2
- package/dist/stream-warnings-GEQKKJU7.js +0 -2
- package/dist/sync-cmd-RDFDMVKQ.js +0 -2
- package/dist/tcg-generate-KIECTZ2C.js +0 -2
- package/dist/testmd-actions-CMAG6HWI.js +0 -2
- package/dist/tms-client-NXAB6VJD.js +0 -2
- package/dist/token-refresh-KP3AYMYK.js +0 -2
- package/dist/verdicts-XK3GAUX3.js +0 -2
- package/dist/with-telemetry-PM2HVN2B.js +0 -2
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { createRequire } from 'module'; const require = createRequire(import.meta.url);
|
|
2
|
-
import{
|
|
2
|
+
import{a as ae}from"./chunk-WKZLK57W.js";import{b as ue}from"./chunk-ZUZ6QJRA.js";import{n as k,p as ce,q as de,r as pe,s as fe}from"./chunk-PTISAIZW.js";import{a as ge}from"./chunk-YDPTSDIJ.js";import{a as w,b as q}from"./chunk-KGNE5CIM.js";import{d as le}from"./chunk-3AGP2BVN.js";import{d as oe,f as se}from"./chunk-YYVBE6W2.js";import{b as ie}from"./chunk-DTYT6KBO.js";import{a as re}from"./chunk-CJQUVHHS.js";import{a as te}from"./chunk-W3NWHWK2.js";import{a as ne}from"./chunk-PVN64537.js";import{a as G}from"./chunk-GGV336P5.js";import{a as ee}from"./chunk-VZA7BPCK.js";import{a as I}from"./chunk-HCBYKLMW.js";import{a as M,b as E}from"./chunk-33DWJV67.js";import{a as h}from"./chunk-FOJHSG5M.js";import{z as m}from"./chunk-QMOGBKJM.js";import{e as Z}from"./chunk-UR6MHSHU.js";function j(e){if(!e)return"";let t=new Date(e);return Number.isNaN(t.getTime())?e:`${t.toISOString().slice(0,16).replace("T"," ")} UTC`}function W(e){return e?e.code||e.message:""}function Y(e,t=Date.now()){if(!e)return"";let n=new Date(e).getTime();if(Number.isNaN(n))return e;let r=Math.floor(Math.max(0,t-n)/6e4);if(r<1)return"just now";if(r<60)return`${r}m`;let i=Math.floor(r/60);return i<24?`${i}h`:`${Math.floor(i/24)}d`}function v(e,t=Date.now()){let n=Y(e,t);return!n||n==="just now"||!/^\d/.test(n)?n:`${n} ago`}function R(e){return e?e.slice(0,8):""}function me(e){if(!e)return"";try{return new URL(e).host||e}catch{return e}}function P(e){return e?e.replace(/_/g," "):""}var Ue={user_off:"turned off",project_not_shared:"project not shared: share it in Test Manager",project_unknown:"the project's sharing could not be checked",not_configured:"assurance jobs are not set up on this service",mark_refused:"the first assurance job could not share the project: ask a Test Manager admin for permission to create test cases, then turn context off and on"};function A(e){return e==null?"":e==="end"?"run end":`cut ${e}`}function xe(e){return e?e.enabled?e.running?"on \xB7 job running":e.last_job_status?`on \xB7 last job ${e.last_job_status}`:"on":"off":""}function K(e){let t=e.off_reason?Ue[e.off_reason]??e.off_reason:"";return e.enabled&&t?`on, blocked: ${t}`:e.enabled?"on":t?`off (${t})`:"off"}var f=e=>h.hex(m.dim)(e);var _e=e=>h.hex(m.orange)(e),J=e=>h.hex(m.green)(e),be=e=>h.hex(m.amber)(e),D=e=>h.hex(m.red)(e);function Be(e=process.stdout.columns){return Math.max(60,(e&&e>0?e:140)-2)}function Fe(e,t,n,r){let i=e.map((s,l)=>Math.max(s.length,...t.map(d=>(d[l]??"").length),1)),o=e.length*3+1,a=i.reduce((s,l)=>s+l,0)+o-n;if(a<=0)return t;let u=Math.min(a,Math.max(0,i[r]-7));for(i[r]-=u,a-=u;a>0;){let s=-1;if(i.forEach((l,d)=>{l>Math.max(7,e[d].length)&&(s<0||l>i[s])&&(s=d)}),s<0)break;i[s]-=1,a-=1}let c=(s,l)=>s.length<=l?s:`${s.slice(0,Math.max(0,l-1))}\u2026`;return t.map(s=>s.map((l,d)=>c(l,i[d])))}function ye(e,t,n,r){let i=Be(r);return le(e,Fe(e,t,i,n),i,n).map((o,a)=>a===1?h.bold(o):o)}function b(e,t="",n="open"){return`${(n==="done"?J:n==="failed"?D:_e)(`\u25CF ${e}`)}${t?f(t):""}`}function we(e,t){return[D(`error: ${e}`),...t?[`next: ${t}`]:[]]}function Ve(e){return e.current_session?`\u25CF ${e.current_session.state}`:"idle"}function Ge(e,t){if(e.current_session)return`run ${R(e.current_session.run_id)} \xB7 ${Y(e.current_session.started_at,t)}`;let n=e.last_session;return n?[W(n.remark)||"stopped",v(n.ended_at??n.started_at,t)].filter(Boolean).join(" \xB7 "):"never run"}function qe(e,t={}){return(e.project_id?t[e.project_id]:void 0)||(e.name?e.name:"")||R(e.project_id??e.exploration_id)}function $e(e,t){if(!e.length)return[f(t.all?"no explorations":"no running explorations (--all lists every one)")];let n=t.now??Date.now(),r=e.some(a=>a.context),i=["project","app","state","last run",...r?["context"]:[]],o=e.map(a=>[qe(a,t.projects),me(a.target_url),Ve(a),Ge(a,n),...r?[xe(a.context)]:[]]);return[...ye(i,o,1,t.cols),f(`${e.length} exploration${e.length===1?"":"s"} \xB7 newest first${t.nextCursor?` \xB7 more: --cursor ${t.nextCursor}`:""} \xB7 kane-cli explore to open one`)]}function ke(e){return e.credits&&typeof e.credits.total=="number"?Math.round(e.credits.total).toLocaleString("en-US"):""}function je(e,t,n){if(!t.length)return[f(`exploration ${e} has no sessions yet`)];let r=n.now??Date.now(),i=t.map(o=>[R(o.run_id),o.state==="stopped"?"stopped":`\u25CF ${o.state}`,W(o.remark)||"\u2014",o.mode,o.leases===void 0?"":String(o.leases),o.findings===void 0?"":String(o.findings),ke(o),v(o.started_at,r)]);return[...ye(["run","state","remark","mode","leases","findings","credits","started"],i,2,n.cols),f(`${t.length} session${t.length===1?"":"s"} \xB7 --run <run-id> for one in full${n.nextCursor?` \xB7 more: --cursor ${n.nextCursor}`:""}`)]}function X(e,t=18){let n=e.filter(([,i])=>i),r=Math.max(t,...n.map(([i])=>i.length+2));return n.map(([i,o,a])=>` ${f(i.padEnd(r))}${a?a(o):o}`)}function Ee(e){return[h.bold(`run ${e.run_id}`),...X([["exploration",e.exploration_id],["session",`#${e.version}`],["state",e.state,e.state==="stopped"?void 0:_e],["remark",e.remark?`${e.remark.code}: ${e.remark.message}`:""],["stop reason",e.stop_reason??""],["mode",e.mode],["started",j(e.started_at)],["started by",e.started_by_user_id?`user ${e.started_by_user_id}`:""],["claimed",j(e.claimed_at)],["stop asked",j(e.stop_requested_at)],["stopped by",e.stopped_by_user_id?`user ${e.stopped_by_user_id}`:""],["ended",j(e.ended_at)],["leases",e.leases===void 0?"":String(e.leases)],["findings",e.findings===void 0?"":String(e.findings)],["credits",ke(e)],["job",e.hx_job_link??e.hx_job_id??""]])]}function Ce(e){let t=K(e);return e.enabled?e.off_reason?be(t):J(t):f(t)}function We(e,t){return e?t!=null&&e===t?" by you":` by user ${e}`:""}function he(e,t){let n=P(e),r=A(t);return n?!r||r===n?n:`${n} \xB7 ${r}`:r}function at(e){let t=Math.max(20,e.cols??process.stdout.columns??100);return[f("\u2500".repeat(t)),`${e.status}${e.meta.filter(Boolean).length?f(` \xB7 ${e.meta.filter(Boolean).join(" \xB7 ")}`):""}`,...e.tallies?.length?[f(e.tallies.join(" \xB7 "))]:[],f(e.keys.join(" \xB7 "))]}function Te(e){if(!e)return[];let t=(n,r,i)=>typeof n=="number"?`${n} ${n===1?r:i}`:"";return[t(e.junctions,"screen","screens"),t(e.flows,"flow","flows"),t(e.findings,"finding","findings")].filter(Boolean)}function ut(e,t={}){let n=e.last_job,r=e.running_job,i=[h.bold(`Assurance context${t.project?` \xB7 "${t.project}"`:""}`),...X([["state",K(e),()=>Ce(e)],["changed",e.changed_at?`${v(e.changed_at)}${We(e.changed_by_user_id,t.me)}`:""],["pending cut",e.pending_cut?`${A(e.pending_cut.cut)} (${P(e.pending_cut.trigger)})`:"none"],["running job",r?`${R(r.job_id)} \xB7 ${he(r.trigger,r.cut)}${r.status==="launching"?" \xB7 launching (HyperExecute has not answered yet)":""}${r.hx_job_link?` \xB7 ${r.hx_job_link}`:""}`:"none"]]),""],o=["",f(`sync now: kane-cli explore context sync ${e.exploration_id}`)];if(!n)return[...i,f("no assurance job has run yet"),...o];let a=n.use_cases?.added?.length??0,u=n.use_cases?.modified?.length??0,c=n.tests?.failed??[],s=n.status==="ok"||n.status==="noop"?J:n.status==="partial"?be:D;return[...i,h.bold("Last job"),...X([["status",n.status,s],["trigger \xB7 cut",he(n.trigger,n.cut)],["use cases",a||u?`${a} added \xB7 ${u} modified`:""],["tests",n.tests?`${n.tests.designed??0} designed \xB7 ${n.tests.saved??0} saved${c.length?` \xB7 failed: ${c.join(", ")}`:""}`:""],["held",n.held?.length?n.held.map(l=>`${l.ref} (${l.why})`).join("; "):""],["error",n.error?`${n.error.code}${n.error.message?`: ${n.error.message}`:""}`:"",D],["ended",v(n.ended_at)],["credits",typeof n.credits=="number"?String(n.credits):""],["job",n.hx_job_link??n.hx_job_id??n.job_id]]),...(n.attempt??1)>1?[f(" retry of a failed attempt; counts cover this attempt only")]:[],...o]}function lt(e,t){let n=A(t.cut)||"the newest cut",r=f(` status: kane-cli explore context status ${e}`);return t.state==="launched"?[b("assurance job launched",` \xB7 ${P(t.trigger)||"manual"} \xB7 ${n}`),...t.hx_job_link?[f(` job: ${t.hx_job_link}`)]:[],r]:t.state==="launching"?[b("assurance job launching",` \xB7 ${n} \xB7 HyperExecute has not answered yet`),r]:t.state==="pending"&&t.trigger==="run_end"?[b("the run-end job is waiting",` \xB7 a job is running${t.running_job_id?` (${t.running_job_id})`:""}`),f(" this sync was folded into it: the run-end job reads the whole run, so nothing else is queued"),r]:t.state==="pending"?[b(`assurance ${n} pending`,` \xB7 a job is running${t.running_job_id?` (${t.running_job_id})`:""}; this cut runs after it (a newer one replaces it)`),r]:t.state==="running"?[b(`a job is already running on ${n}`,t.job_id?` (${t.job_id})`:""),r]:t.state==="up_to_date"?[b("assurance context up to date",` \xB7 ${t.cut!==void 0&&t.cut!==null?`${A(t.cut)} already read`:"nothing new"}`,"done")]:[b(`assurance sync: ${t.state}`)]}function ct(e,t,n,r){return[b(`assurance context ${n}`,r?` \xB7 "${r}"`:` \xB7 exploration ${e}`,"done"),` ${f("now")} ${Ce(t)}`,...n==="off"?[f(" the next cut is skipped; nothing already saved is deleted"),f(` turn on: kane-cli explore context on ${e}`)]:[f(" the controller catches up from the newest ended run")]]}function z(){return{stdin:!!process.stdin.isTTY,stdout:!!process.stdout.isTTY}}function Se(e,t=z()){return!!e.agent||!t.stdin||!t.stdout}var Ye=ce;function ve(e){return e.option("--agent",Ye)}function Re(e){return{formatHelp(t,n){let r=n.padWidth(t,n),i=n.helpWidth||80,o=2,a=2,u=(p,y)=>{if(!y)return p;let _=r+a;return y.split(`
|
|
3
3
|
`).map((V,Oe)=>n.wrap(`${(Oe===0?p:"").padEnd(_)}${V}`,i-o,_)).join(`
|
|
4
4
|
`)},c=p=>p.join(`
|
|
5
5
|
`).replace(/^/gm," ".repeat(o)),s=[`Usage: ${n.commandUsage(t)}`,""],l=n.commandDescription(t);l&&(s=s.concat([n.wrap(l,i,0),""]));let d=n.visibleArguments(t).map(p=>u(n.argumentTerm(p),n.argumentDescription(p)));d.length&&(s=s.concat(["Arguments:",c(d),""]));let g=n.visibleOptions(t),$=new Set;for(let p of e){let y=p.flags.map(_=>g.find(V=>V.long===_)).filter(_=>!!_&&!$.has(_));if(y.length){for(let _ of y)$.add(_);s=s.concat([`${p.title}:`,c(y.map(_=>u(n.optionTerm(_),_.description))),""])}}let T=g.filter(p=>!$.has(p));T.length&&(s=s.concat(["Other options:",c(T.map(p=>u(n.optionTerm(p),p.description))),""]));let S=n.visibleCommands(t).map(p=>u(n.subcommandTerm(p),n.subcommandDescription(p)));return S.length&&(s=s.concat(["Commands:",c(S),""])),s.join(`
|
|
6
|
-
`)}}}var x=Z(I(),1);function Ke({explorationId:e,facts:t={},done:n}){return(0,x.jsxs)(M,{flexDirection:"column",marginTop:1,children:[(0,x.jsx)(ie,{head:t.project?`Delete "${t.project}"'s exploration?`:"Delete this exploration?",rows:[{label:"exploration",text:e},...t.map?[{label:"map",text:t.map}]:[],{label:"after",text:"the map stays on the service; no command shows it; the project can start a new one"}],minWidth:12}),(0,x.jsx)(M,{marginTop:1,children:(0,x.jsx)(ae,{message:t.project?`Delete "${t.project}"'s exploration?`:"Delete this exploration?",confirmLabel:"Yes, delete",onConfirm:()=>n(!0),onCancel:()=>n(!1)})})]})}async function Q(e,t={}){return await ge(n=>(0,x.jsx)(Ke,{explorationId:e,facts:t,done:n}))===!0}async function Ae(e,t,n={}){let{render:r}=await import("./build-5ZN47FAT.js"),i=Math.max(20,process.stderr.columns??100),o=(n.meta??[]).filter(Boolean),a=r((0,x.jsxs)(M,{flexDirection:"column",children:[(0,x.jsx)(E,{color:m.dim,children:"\u2500".repeat(i)}),(0,x.jsxs)(E,{children:[(0,x.jsx)(te,{active:!0}),(0,x.jsx)(E,{color:m.orange,children:` ${e}`}),o.length?(0,x.jsx)(E,{color:m.dim,children:` \xB7 ${o.join(" \xB7 ")}`}):null]}),n.keys?.length?(0,x.jsx)(E,{color:m.dim,children:n.keys.join(" \xB7 ")}):null]}),{stdout:process.stderr,exitOnCtrlC:!1});try{return await t()}finally{a.clear(),a.unmount()}}var He=e=>h.hex(m.dim)(e),Xe=e=>h.hex(m.green)(e),Ne=2500;async function Je(e,t,n=Ne){let r=[...new Set(t.filter(Boolean))];if(!r.length)return{};let{TmsClient:i}=await import("./tms-client-
|
|
6
|
+
`)}}}var x=Z(I(),1);function Ke({explorationId:e,facts:t={},done:n}){return(0,x.jsxs)(M,{flexDirection:"column",marginTop:1,children:[(0,x.jsx)(ie,{head:t.project?`Delete "${t.project}"'s exploration?`:"Delete this exploration?",rows:[{label:"exploration",text:e},...t.map?[{label:"map",text:t.map}]:[],{label:"after",text:"the map stays on the service; no command shows it; the project can start a new one"}],minWidth:12}),(0,x.jsx)(M,{marginTop:1,children:(0,x.jsx)(ae,{message:t.project?`Delete "${t.project}"'s exploration?`:"Delete this exploration?",confirmLabel:"Yes, delete",onConfirm:()=>n(!0),onCancel:()=>n(!1)})})]})}async function Q(e,t={}){return await ge(n=>(0,x.jsx)(Ke,{explorationId:e,facts:t,done:n}))===!0}async function Ae(e,t,n={}){let{render:r}=await import("./build-5ZN47FAT.js"),i=Math.max(20,process.stderr.columns??100),o=(n.meta??[]).filter(Boolean),a=r((0,x.jsxs)(M,{flexDirection:"column",children:[(0,x.jsx)(E,{color:m.dim,children:"\u2500".repeat(i)}),(0,x.jsxs)(E,{children:[(0,x.jsx)(te,{active:!0}),(0,x.jsx)(E,{color:m.orange,children:` ${e}`}),o.length?(0,x.jsx)(E,{color:m.dim,children:` \xB7 ${o.join(" \xB7 ")}`}):null]}),n.keys?.length?(0,x.jsx)(E,{color:m.dim,children:n.keys.join(" \xB7 ")}):null]}),{stdout:process.stderr,exitOnCtrlC:!1});try{return await t()}finally{a.clear(),a.unmount()}}var He=e=>h.hex(m.dim)(e),Xe=e=>h.hex(m.green)(e),Ne=2500;async function Je(e,t,n=Ne){let r=[...new Set(t.filter(Boolean))];if(!r.length)return{};let{TmsClient:i}=await import("./tms-client-XWCR7O7J.js"),o=new i(G(e.environment??"prod").tmsBaseUrl,e.basic.username,e.basic.access_key),a=async c=>{let s,l=new Promise(d=>{s=setTimeout(()=>d(null),n)});try{let d=await Promise.race([o.getProject(c).catch(()=>null),l]);return d&&d.name?[c,d.name]:null}finally{clearTimeout(s)}},u=await Promise.all(r.map(a));return Object.fromEntries(u.filter(c=>c!==null))}function Le(e,t){return e.projectNames?e.projectNames:e.out?async()=>({}):n=>Je(t,n)}async function H(e,t){let n=new ee,r=e.env??n.getDefaultEnv()??"prod";if(r!=="prod"&&r!=="stage")return{ok:!1,error:`invalid --env: ${String(r)}`};let i=G(r);try{let o=await re({creds:n,env:r,usernameFlag:e.username,accessKeyFlag:e.accessKey,log:()=>{}});return o.basicAuth?{ok:!0,controllerBaseUrl:i.controllerBaseUrl,basic:o.basicAuth,environment:r}:{ok:!1,error:`${t} needs Basic credentials (username + access key); none resolved`}}catch(o){return o instanceof ne&&o.code==="not_authenticated"?{ok:!1,error:"not authenticated: pass --username/--access-key or run 'kane-cli login'"}:{ok:!1,error:`auth resolution failed: ${o.message}`}}}function B(e,t,n){let r=e.io??z(),i=e.tty??!Se(n,r),o=e.out??(s=>{process.stdout.write(s+`
|
|
7
7
|
`)}),a=e.err??(s=>{process.stderr.write(s+`
|
|
8
8
|
`)}),u=i?null:oe("explore"),c=(s,l,d)=>(u?.emit({type:"done",status:l,exit_code:s,exploration_id:t,...d?{error:d}:{}}),s);return{tty:i,out:o,io:r,event:s=>{u?.emit(s)},ok:()=>c(0,"ok"),fail:(s,l=2,d)=>{if(u)se({type:"error",message:s});else for(let g of we(s,d))a(g);return c(l,"error",s)}}}function C(e){if(e instanceof w){let t=e.body&&typeof e.body.message=="string"?e.body.message:e.body&&typeof e.body.error=="string"?e.body.error:"";return t?`${e.code}: ${t}`:e.message}return e instanceof Error?e.message:String(e)}function F(e){return new q({baseUrl:e.controllerBaseUrl,auth:e.basic})}async function ze(e,t={}){let n=B(t,null,e),r=await H(e,"explore list");if(!r.ok)return n.fail(r.error);let i=!!e.all,o;try{o=await F(r).listExplorations({state:i?"all":"running",project:e.project,limit:e.limit,cursor:e.cursor})}catch(u){return n.fail(`could not list explorations: ${C(u)}`,u instanceof w&&u.status<500?2:1)}if(!n.tty)return n.event({type:"explore_list",explorations:o.explorations,next_cursor:o.next_cursor}),n.ok();let a=await Le(t,r)(o.explorations.filter(u=>!u.name).map(u=>u.project_id??""));for(let u of $e(o.explorations,{all:i,nextCursor:o.next_cursor,projects:a}))n.out(u);return n.ok()}var O=class extends Error{constructor(n){super("ambiguous run id");this.ids=n}},U=class extends Error{constructor(n,r){super("no run matches");this.searched=n;this.capped=r}},Qe=100,Ze=100;async function Ie(e,t,n={}){let r=B(n,e,t),i=await H(t,"explore sessions");if(!i.ok)return r.fail(i.error);let o=F(i),a=typeof t.run=="string"&&t.run?t.run:null;try{if(a){let c=async()=>{try{return await o.getSession(e,a)}catch(l){if(!(l instanceof w&&l.status===404)||a.length<8)throw l;let d=[],g,$=0,T=!1;for(let S=0;;S++){if(S===Ze){T=!0;break}let p=await o.listSessions(e,{limit:Qe,cursor:g});if($+=p.sessions.length,d.push(...p.sessions.map(y=>y.run_id).filter(y=>y.startsWith(a)&&y!==a)),!p.next_cursor)break;g=p.next_cursor}if(d.length>1)throw new O(d);if(d.length===0)throw new U($,T);return o.getSession(e,d[0])}},s;try{s=await c()}catch(l){if(l instanceof O)return r.fail(`--run ${a} matches ${l.ids.length} runs`,2,`give more of the id: ${l.ids.join(", ")}`);if(l instanceof U)return r.fail(`session ${a} of exploration ${e} not found: no run id is or starts with it (${l.capped?`searched the newest ${l.searched} runs`:`searched all ${l.searched} runs`})`,2,l.capped?"give the full run id (kane-cli explore sessions <id> lists them)":`kane-cli explore sessions ${e}`);throw l}if(!r.tty)r.event({type:"explore_session",session:s});else for(let l of Ee(s))r.out(l);return r.ok()}let u=await o.listSessions(e,{limit:t.limit,cursor:t.cursor});if(!r.tty)return r.event({type:"explore_sessions",exploration_id:e,sessions:u.sessions,next_cursor:u.next_cursor}),r.ok();for(let c of je(e,u.sessions,{nextCursor:u.next_cursor}))r.out(c);return r.ok()}catch(u){return u instanceof w&&u.status===404?r.fail(a?`session ${a} of exploration ${e} not found`:`exploration ${e} not found`):r.fail(`could not read the sessions: ${C(u)}`,1)}}async function et(e,t,n={}){let r=B(n,e,t);if(!t.yes){if(!r.tty)return r.fail(r.io.stdout?"explore delete needs --yes with --agent or a piped stdin":"explore delete needs --yes when stdout is not a terminal");if(!await(n.confirm??(async()=>{let u=await H(t,"explore delete");if(!u.ok)return Q(e,{});let c=await new q({baseUrl:u.controllerBaseUrl,auth:u.basic,timeoutMs:Ne}).viewSummary(e),s=typeof c?.project_id=="string"?c.project_id:"",l=s?await Le(n,u)([s]):{};return Q(e,{project:l[s]??(s?s.slice(0,8):void 0),map:Te(c?.counts).join(" \xB7 ")})}))(`Delete exploration ${e}? Its map stays on the service but no command shows it again. [y/N] `))return r.out(`exploration ${e} not deleted`),1}let i=await H(t,"explore delete");if(!i.ok)return r.fail(i.error);let o;try{o=await F(i).deleteExploration(e)}catch(a){return a instanceof w&&a.status===404?r.fail(`exploration ${e} not found (or already deleted)`):a instanceof w&&a.code==="RUN_ACTIVE"?r.fail(C(a),1):r.fail(`could not delete exploration ${e}: ${C(a)}`,1)}return r.tty?r.out(b(`exploration ${e} deleted`,o.deleted_at?` \xB7 ${j(o.deleted_at)}`:"","done")):r.event({type:"explore_deleted",exploration_id:o.exploration_id,deleted_at:o.deleted_at}),r.ok()}async function tt(e,t,n={}){let r=B(n,e,t),i=await H(t,"explore stop");if(!i.ok)return r.fail(i.error);let o=t.wait!==!1,a;try{let g=()=>F(i).stopExploration(e,o),$=["explore",e.slice(0,8),i.environment??""];a=r.tty&&!n.out?await Ae(o?"waiting for the run to end":"asking the run to stop",g,{meta:$,keys:["ctrl+c stop waiting (the stop stays)"]}):await g()}catch(g){return g instanceof w&&g.status===404?r.fail(`exploration ${e} not found`):g instanceof w&&g.code==="RUN_NOT_ACTIVE"?r.fail(C(g),1,`nothing is running; kane-cli explore sessions ${e} shows its runs`):r.fail(C(g),1)}let u=a.body,c=typeof u.run_id=="string"?u.run_id:"",s=typeof u.state=="string"?u.state:"",l=u.remark&&typeof u.remark=="object"?u.remark:null,d=s!=="stopped";return r.tty?d?(r.out(b(`stopping run ${c}`," \xB7 its leases finish, every delta is sent")),u.hx_abort&&r.out(`${Xe("\u2713 stop sent")} ${He("the HyperExecute job is told too")}`),r.out(He(` kane-cli explore sessions ${e} --run ${c} shows when it stopped`))):r.out(b(`run ${c} stopped: ${l?`${l.code}${l.message?` (${l.message})`:""}`:"stopped"}`,"","done")):r.event({type:"explore_stop",exploration_id:e,run_id:c,state:s,remark:l,stopping:d,...u.hx_abort?{hx_abort:u.hx_abort}:{}}),r.ok()}function Me(e){let t=Number(e);if(!Number.isInteger(t)||t<1||t>100)throw new ue("must be an integer 1-100");return t}function N(e){return ve(e).option("--env <name>",de).option("--username <user>",pe).option("--access-key <key>",fe)}function L(e,t,n){return e.configureHelp(Re([...t?[t]:[],{title:"Output",flags:["--agent","--help"]},{title:"Account",flags:["--env","--username","--access-key"]}])).addHelpText("after",`
|
|
9
9
|
Examples:
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { createRequire } from 'module'; const require = createRequire(import.meta.url);
|
|
2
|
-
import{a as B}from"./chunk-5Y2G4NC7.js";import{a as T}from"./chunk-HCBYKLMW.js";import{a as S,b as l,k as w}from"./chunk-33DWJV67.js";import{a as J}from"./chunk-6YGTRKDT.js";import{
|
|
2
|
+
import{a as B}from"./chunk-5Y2G4NC7.js";import{a as T}from"./chunk-HCBYKLMW.js";import{a as S,b as l,k as w}from"./chunk-33DWJV67.js";import{a as J}from"./chunk-6YGTRKDT.js";import{z as o}from"./chunk-QMOGBKJM.js";import{e as k}from"./chunk-UR6MHSHU.js";var y=k(J(),1);var r=k(T(),1),v=["\u280B","\u2819","\u2839","\u2838","\u283C","\u2834","\u2826","\u2827","\u2807","\u280F"];function H(e){let n=e.replace(/…$/,"");return n&&n.charAt(0).toLowerCase()+n.slice(1)}function j(e,n){if(e.length<=n)return e;if(n<=1)return"\u2026";let p=Math.ceil((n-1)/2),b=Math.floor((n-1)/2);return`${e.slice(0,p)}\u2026${b>0?e.slice(-b):""}`}function K({status:e,meta:n,tallies:p,keys:b,child:d,cols:C,remote:A=!1,gapAbove:M=!1,accent:u=o.assuranceAccent}){let{stdout:R}=w(),m=C??R?.columns??80,L=e.kind==="working"||e.kind==="child-working",[E,O]=(0,y.useState)(0);B(()=>O(a=>a+1),L?120:null);let $=v[E%v.length],i,s;switch(e.kind){case"working":i=`${$} ${e.step}${e.elapsedS!==void 0?` \xB7 ${e.elapsedS}s`:""}`,s=u;break;case"waiting":i=`\u25CF waiting on you${e.pending?` \u2014 ${e.pending} question${e.pending===1?"":"s"}`:e.label?` \u2014 ${e.label}`:""}`,s=o.amber;break;case"retrying":i=`\u25CF ${e.text}`,s=o.amber;break;case"idle":i="\u25CF idle",s=u;break;case"card":i=`\u25CF card ${e.n} of ${e.m}`,s=o.amber;break;case"child-working":i=`${$} child: ${e.step}`,s=u;break;case"child-waiting":i="\u25CF child waiting on you",s=o.amber;break}let f=d?`${n.verb} \u25B8 ${d.verb}`:n.verb,F=d?.sid?n.sid?`${j(n.sid,14)} \u25B8 ${d.sid}`:d.sid:n.sid,h=n.env==="prod"?"":n.env,t=" \xB7 ",P=16,x=a=>i.length+t.length+[f,a,h].filter(Boolean).join(t).length,c=F,I=m-x(c)-t.length;A&&c&&(n.subject?I<Math.min(n.subject.length,P):x(c)>m)&&(c="");let N=[f,c,h].filter(Boolean),q=i.length+t.length+N.join(t).length,g=n.subject;if(g){let a=m-q-t.length;g=a>=8?j(g,a):void 0}let D=[f,...g?[g]:[],c,h].filter(Boolean).join(t);return(0,r.jsxs)(S,{flexDirection:"column",marginTop:M?1:0,children:[(0,r.jsx)(l,{color:o.muted,children:"\u2500".repeat(Math.max(1,m))}),(0,r.jsxs)(l,{children:[(0,r.jsx)(l,{color:s,children:i}),(0,r.jsx)(l,{color:o.dim,children:`${t}${D}`})]}),(0,r.jsx)(l,{color:o.dim,children:p.items.length>0?p.items.join(t):" "}),(0,r.jsx)(l,{color:o.muted,children:b.join(t)})]})}export{H as a,K as b};
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { createRequire } from 'module'; const require = createRequire(import.meta.url);
|
|
2
|
+
import{a as B}from"./chunk-3UHPVQLU.js";import{a as N}from"./chunk-CJQUVHHS.js";import{a as ie,b as ae,c as ce}from"./chunk-W3USRQX6.js";import{b as oe}from"./chunk-QQI6N3FO.js";import{a as H}from"./chunk-BY2B4YJN.js";import{d as le}from"./chunk-4JWJH6TB.js";import{a as $,b as X,e as M,g as se}from"./chunk-77ZZQJLX.js";import{b as L}from"./chunk-2PZKMT3I.js";import{a as te}from"./chunk-X3J4CC27.js";import{a as ee}from"./chunk-FCD3NYOM.js";import{a as re,b as ne}from"./chunk-B7ZX5HEN.js";import{a as j}from"./chunk-PVN64537.js";import{a as K}from"./chunk-GGV336P5.js";import{a as A}from"./chunk-RZ4F3BHX.js";import{a as O}from"./chunk-VZA7BPCK.js";import{a as F}from"./chunk-HCBYKLMW.js";import{a as b,b as p,i as Z}from"./chunk-33DWJV67.js";import{a as q}from"./chunk-6YGTRKDT.js";import{z as y}from"./chunk-QMOGBKJM.js";import{e as S}from"./chunk-UR6MHSHU.js";var D=S(q(),1);import{existsSync as P,readFileSync as Ye,rmSync as we,unlinkSync as ze}from"fs";import{resolve as Q}from"path";import{promises as ue,realpathSync as Re}from"fs";import{homedir as Pe}from"os";import{join as V,parse as Me,relative as de,resolve as fe}from"path";var me=new Set(["node_modules",".git","dist","build",".next",".venv","venv","target","__pycache__"]),R=class extends Error{constructor(s){super(`refusing to scan '${s}'. Run from your project root, or pass --root <dir>.`);this.cwd=s;this.name="HomeRefusedError"}};function ge(e){try{return Re(fe(e))}catch{return fe(e)}}function De(e){let r=ge(e),s=ge(Pe()),n=Me(r).root;if(process.platform==="win32"){let o=t=>t.toLowerCase();return o(r)===o(s)||o(r)===o(n)}return r===s||r===n}async function U(e){if(De(e.root))throw new R(e.root);let r=e.maxEntries??5e4,s=e.maxResults??5e3,n=new Set(e.ignore??[]),o=[],t=0,i=0,a=!1,u,c=[e.root];for(;c.length>0&&!a;){let l=c.shift(),g;try{g=await ue.readdir(l,{withFileTypes:!0})}catch{continue}i++;for(let _ of g){if(t++,t>r){a=!0,u="max_entries";break}let m=_.name,T=V(l,m);if(_.isDirectory()){if(me.has(m)||m.startsWith(".")||m.startsWith("output-")||n.has(m))continue;c.push(T)}else if(_.isFile()&&m.endsWith("_test.md")&&(o.push({path:T,relPath:de(e.root,T),source:"cwd"}),o.length>=s)){a=!0,u="max_results";break}}e.onProgress?.(i,o.length)}if(!a){let g=[{dir:V(e.root,".testmuai","tests"),depth:0}];for(;g.length>0&&!a;){let{dir:_,depth:m}=g.shift(),T;try{T=await ue.readdir(_,{withFileTypes:!0})}catch{continue}i++;for(let d of T){if(t++,t>r){a=!0,u="max_entries";break}let k=d.name,w=V(_,k);if(d.isDirectory()){if(m>=20||k.startsWith(".")||k.startsWith("output-")||me.has(k))continue;g.push({dir:w,depth:m+1})}else if(d.isFile()&&k.endsWith("_test.md")&&(o.push({path:w,relPath:de(e.root,w),source:"tests-dir"}),o.length>=s)){a=!0,u="max_results";break}}}}return{results:o,aborted:a,abortReason:u,dirsScanned:i}}import{readFileSync as Ce}from"fs";function Y(e){let r;try{r=Ce(e,"utf8")}catch{return{tags:[]}}try{let{global:s}=re(e,r),n=ne(s);return{tags:s.tags??[],...n?{mobileTarget:n}:{}}}catch{let s=$e(r);return{tags:[],...s?{mobileTarget:s}:{}}}}var pe={platform:"",app:""};function $e(e){let r=/^---\r?\n([\s\S]*?)\r?\n---/.exec(e);if(!r)return;let s=r[1].split(/\r?\n/);for(let o of s){let t=/^target:\s*['"]?(emulator|simulator|android|ios)['"]?\s*$/.exec(o);if(t)return t[1]==="android"||t[1]==="ios"?{platform:t[1],app:"",realDevice:!0}:pe}let n=s.findIndex(o=>/^target:\s*$/.test(o));if(!(n<0))return s.slice(n+1).some(o=>/^\s+\S/.test(o))?pe:void 0}function W(e){return Y(e).tags}import{mkdirSync as Ie,writeFileSync as Fe}from"fs";import{join as Oe}from"path";function he(e,r){return`Basic ${Buffer.from(`${e}:${r}`).toString("base64")}`}async function Ae(e){let r=ae({tmsBaseUrl:e.tmsBaseUrl,testcaseId:e.testcaseId,codeExport:{enabled:!0,language:e.language,skipValidation:e.skipValidation},mobile:e.framework==="appium"}),s=await A(r.url,{method:"POST",headers:{"content-type":"application/json",authorization:he(e.auth.username,e.auth.access_key)},body:JSON.stringify(r.body)});if(!s.ok)throw new Error(`code-export trigger failed: ${s.status} ${await s.text()}`);e.log("info","CODE_EXPORT_TRIGGERED","Code export triggered",{testcase_id:e.testcaseId})}async function Le(e){let r=ce({tmsBaseUrl:e.tmsBaseUrl,testcaseId:e.testcaseId}),s=e.pollIntervalMs??5e3,n=e.timeoutMs??3e5,o=Date.now()+n;for(;Date.now()<o;){let t=await A(r,{headers:{authorization:he(e.auth.username,e.auth.access_key),accept:"application/json"}});if(!t.ok){await new Promise(c=>setTimeout(c,s));continue}let a=(await t.json()).data?.find(c=>c.code_name==="kane-cli-trigger");if(!a){await new Promise(c=>setTimeout(c,s));continue}let u=(a.status??"").toLowerCase();if(u==="in progress"||u==="in_progress"||u==="pending"){await new Promise(c=>setTimeout(c,s));continue}if(!a.url||a.url.length===0)throw new Error(`code-export status=${a.status} but no files returned`);Ie(e.outDir,{recursive:!0});for(let c of a.url){let l=Oe(e.outDir,c.file_name),g=await A(c.file_url);if(!g.ok){e.log("warn","CODE_EXPORT_FILE_FAILED","Failed to download file",{file_name:c.file_name,status:g.status});continue}let _=await g.text();Fe(l,_,"utf-8")}return e.log("info","CODE_EXPORT_DOWNLOADED","Code export saved",{out_dir:e.outDir,file_count:a.url.length}),e.outDir}throw new Error("code-export polling timed out")}async function _e(e){return await Ae(e),await Le(e)}var E=S(q(),1);import{existsSync as je,readFileSync as Be}from"fs";var h=S(F(),1);function Ne(e){B(e);let r=M(e);if(!je(r))return null;try{return JSON.parse(Be(r,"utf8"))}catch{return{}}}function Ue(e){return e===null?"never_run":e.testcase_id?"synced":"local_only"}function We(e){return e==="synced"?"\u2601":e==="local_only"?"\u25A3":"\u25CB"}function Je(e){return e==="tests-dir"?"\u2726":" "}function Ge(e,r){return r==="all"?!0:r==="synced"?e.status==="synced":r==="local"?e.status==="local_only":r==="never_run"?e.status==="never_run":r==="cli"?e.source==="tests-dir":r==="hand"?e.source==="cwd":!0}var z=["all","synced","local","never_run","cli","hand"];function qe(e){let r=z.indexOf(e);return z[(r+1)%z.length]}function ye({root:e,currentOrgId:r,onSelect:s,onCancel:n}){let[o,t]=(0,E.useState)([]),[i,a]=(0,E.useState)(null),[u,c]=(0,E.useState)(!0),[l,g]=(0,E.useState)("all");(0,E.useEffect)(()=>{(async()=>{try{let d=await U({root:e}),k=[];for(let w of d.results){let G=Ne(w.path);G?.org_id!==void 0&&G.org_id!==r||k.push({path:w.path,relPath:w.relPath,name:$(w.path),status:Ue(G),source:w.source,tags:W(w.path)})}t(k),c(!1)}catch(d){d instanceof R,a(d.message),c(!1)}})()},[e,r]);let _=(0,E.useMemo)(()=>o.filter(d=>Ge(d,l)).map(d=>({id:d.path,label:`${We(d.status)} ${Je(d.source)} ${d.relPath}${d.tags.length>0?` [${d.tags.join(", ")}]`:""}`})),[o,l]),m=(0,E.useMemo)(()=>Xe(l,o),[l,o]);if(i)return(0,h.jsxs)(b,{flexDirection:"column",borderStyle:"round",borderColor:y.red,paddingX:2,paddingY:1,children:[(0,h.jsx)(p,{color:y.red,bold:!0,children:"testmd"}),(0,h.jsx)(b,{marginTop:1,children:(0,h.jsx)(p,{color:y.red,children:i})})]});let T=l==="all"?"all":Ke(l);return(0,h.jsx)(te,{title:`testmd \xB7 filter: ${T}`,items:_,loading:u,itemNoun:"tests",onSelect:d=>{let k=o.find(w=>w.path===d.id);k&&s(k)},onCancel:n,onTab:()=>g(d=>qe(d)),extraHint:"cycle filter",footer:m})}function Ke(e){return e==="synced"?"synced (\u2601)":e==="local"?"local (\u25A3)":e==="never_run"?"never run (\u25CB)":e==="cli"?"cli-generated (\u2726)":e==="hand"?"hand-written":"all"}function Xe(e,r){let s={synced:r.filter(o=>o.status==="synced").length,local:r.filter(o=>o.status==="local_only").length,never:r.filter(o=>o.status==="never_run").length,cli:r.filter(o=>o.source==="tests-dir").length,hand:r.filter(o=>o.source==="cwd").length},n=o=>o?y.orange:y.dim;return(0,h.jsxs)(b,{flexDirection:"column",children:[(0,h.jsx)(p,{color:y.dim,children:"legend:"}),(0,h.jsxs)(b,{children:[(0,h.jsx)(p,{color:n(e==="synced"),children:` \u2601 synced (${s.synced}) `}),(0,h.jsx)(p,{color:n(e==="local"),children:`\u25A3 local (${s.local}) `}),(0,h.jsx)(p,{color:n(e==="never_run"),children:`\u25CB never run (${s.never})`})]}),(0,h.jsxs)(b,{children:[(0,h.jsx)(p,{color:n(e==="cli"),children:` \u2726 cli-generated (${s.cli}) `}),(0,h.jsx)(p,{color:n(e==="hand"),children:` hand-written (${s.hand})`})]})]})}var I=S(q(),1);import{existsSync as He,readFileSync as Ve}from"fs";var f=S(F(),1);function xe({path:e,relPath:r,onAction:s,onBack:n,onView:o}){let[t,i]=(0,I.useState)(null),[a,u]=(0,I.useState)(!1);(0,I.useEffect)(()=>{let l=M(e);if(He(l))try{i(JSON.parse(Ve(l,"utf8")))}catch{i(null)}},[e]),Z((l,g)=>{if(g.escape){if(a){u(!1);return}n();return}if(a){l==="y"||l==="Y"?(u(!1),s("delete")):(l==="n"||l==="N")&&u(!1);return}l==="r"&&s("run"),l==="e"&&t?.testcase_id&&s("export"),l==="d"&&u(!0),l==="v"&&o&&o()});let c=({k:l,v:g})=>g?(0,f.jsxs)(p,{children:[(0,f.jsx)(p,{color:y.dim,children:l.padEnd(14)}),g]}):null;return(0,f.jsxs)(b,{flexDirection:"column",borderStyle:"round",borderColor:y.orange,paddingX:2,paddingY:1,children:[(0,f.jsx)(p,{color:y.orange,bold:!0,children:r}),(0,f.jsx)(b,{marginTop:1,flexDirection:"column",children:t?(0,f.jsxs)(f.Fragment,{children:[(0,f.jsx)(c,{k:"test_id",v:t.test_id}),(0,f.jsx)(c,{k:"testcase_id",v:t.testcase_id}),(0,f.jsx)(c,{k:"project_id",v:t.project_id}),(0,f.jsx)(c,{k:"folder_id",v:t.folder_id}),(0,f.jsx)(c,{k:"org_id",v:t.org_id}),(0,f.jsx)(c,{k:"session_name",v:t.session_name}),(0,f.jsx)(c,{k:"commit_id",v:t.commit_id})]}):(0,f.jsx)(p,{color:y.dim,children:"(never run \u2014 no meta.json)"})}),a?(0,f.jsx)(b,{marginTop:1,children:(0,f.jsxs)(p,{color:y.red,bold:!0,children:["Delete ",r," and its output dir? [y/n]"]})}):(0,f.jsx)(b,{marginTop:1,children:(0,f.jsxs)(p,{color:y.dim,children:["[r] run [e] export",t?.testcase_id?"":" (need testcase_id)"," [d] delete",o?" [v] view":""," [Esc] back"]})})]})}function C(e){B(e);let r=M(e);if(!P(r))return null;try{return JSON.parse(Ye(r,"utf8"))}catch{return null}}function ke(e,r){return!e||e.org_id===void 0?!0:e.org_id===r}function J(e,r){return ke(e,r)?null:(process.stderr.write(`error: this test belongs to org ${e.org_id}; you are logged in as org ${r}.
|
|
3
|
+
Switch profiles with \`kane-cli profiles switch\` to act on it.
|
|
4
|
+
`),2)}function be(){return oe(process.cwd()).kind==="remote"?{authOnly:!0}:{}}async function zt(e={}){let r=!!process.stdin.isTTY&&!e.json,s=new O,n=new L;await H({isInteractive:r,creds:s,config:n,...be()});let o=s.getDefaultEnv()??"prod";try{let t=await N({creds:s,env:o,log:()=>{}});return t.resolvedCreds?.org_id===void 0?(process.stderr.write("error: TMS did not return an org_id. Run `kane-cli login` again.\n"),{ok:!1,code:2}):{ok:!0,orgId:String(t.resolvedCreds.org_id)}}catch(t){if(t instanceof j)return process.stderr.write("error: not authenticated. Run `kane-cli login` first.\n"),{ok:!1,code:2};throw t}}async function Qt(e,r){if(process.stdin.isTTY&&!e.json)return await et(r,e.root);let s=e.root??process.cwd(),n;try{n=await U({root:s,ignore:e.ignore})}catch(o){if(o instanceof R)return process.stderr.write(`error: ${o.message}
|
|
5
|
+
`),2;throw o}for(let o of n.results){let t=C(o.path);if(!ke(t,r))continue;let i={path:o.relPath.startsWith(".")?o.relPath:`./${o.relPath}`,name:$(o.path),has_meta:t!==null,source:o.source,synced:!!t?.testcase_id,tags:W(o.path)};t&&(t.test_id&&(i.test_id=t.test_id),t.testcase_id&&(i.testcase_id=t.testcase_id),t.org_id&&(i.org_id=t.org_id),t.project_id&&(i.project_id=t.project_id),t.folder_id&&(i.folder_id=t.folder_id)),process.stdout.write(JSON.stringify(i)+`
|
|
6
|
+
`)}return n.aborted&&process.stderr.write(`warn: walk aborted (${n.abortReason}). Pass --root or --ignore to narrow.
|
|
7
|
+
`),0}var Te=-1001,Ee=-1002,ve=-1003,x={action:null,path:null};function Qe(e,r){return x.action=e,x.path=r,e==="run"?Te:e==="export"?Ee:ve}function Ze({root:e,currentOrgId:r,onComplete:s}){let[n,o]=D.default.useState({kind:"list"});return D.default.useEffect(()=>{n.kind==="exiting"&&s(n.code)},[n,s]),n.kind==="list"?D.default.createElement(ye,{root:e,currentOrgId:r,onSelect:t=>o({kind:"inspect",path:t.path,relPath:t.relPath}),onCancel:()=>o({kind:"exiting",code:0})}):n.kind==="inspect"?D.default.createElement(xe,{path:n.path,relPath:n.relPath,onAction:async t=>{o({kind:"exiting",code:Qe(t,n.path)})},onBack:()=>o({kind:"list"})}):null}async function et(e,r){let s=r??process.cwd(),{render:n}=await import("./build-5ZN47FAT.js"),o=await new Promise(t=>{let{unmount:i,waitUntilExit:a}=n(D.default.createElement(Ze,{root:s,currentOrgId:e,onComplete:u=>{i(),t(u)}}),{stdout:process.stderr,exitOnCtrlC:!0});a().then(()=>t(0)).catch(()=>t(0))});if(o===Te&&x.path){let{runTestMdFile:t}=await import("./run-test-md-7DRWCSQE.js"),i=await t(x.path,{});return x.action=null,x.path=null,i}if(o===Ee&&x.path){let t=await rt(x.path,{},e);return x.action=null,x.path=null,t}if(o===ve&&x.path){let t=await tt(x.path,!0,e);return x.action=null,x.path=null,t}return o}async function Zt(e,r){let s=Q(e);if(!P(s))return process.stderr.write(`error: file not found: ${s}
|
|
8
|
+
`),2;let n=C(s),o=J(n,r);if(o!==null)return o;let t={path:s,name:$(s),has_meta:n!==null};return n&&(n.commit_id&&(t.commit_id=n.commit_id),n.test_id&&(t.test_id=n.test_id),n.testcase_id&&(t.testcase_id=n.testcase_id),n.project_id&&(t.project_id=n.project_id),n.folder_id&&(t.folder_id=n.folder_id),n.org_id&&(t.org_id=n.org_id),n.session_name&&(t.session_name=n.session_name)),process.stdout.write(JSON.stringify(t)+`
|
|
9
|
+
`),0}async function tt(e,r,s){let n=Q(e);if(!P(n))return process.stderr.write(`error: file not found: ${n}
|
|
10
|
+
`),2;let o=C(n),t=J(o,s);if(t!==null)return t;if(!r)return process.stderr.write(`error: refusing to delete without --yes.
|
|
11
|
+
This will remove '${n}' and '${X(n)}/'.
|
|
12
|
+
`),2;let i=X(n);if(P(i))try{we(i,{recursive:!0,force:!0})}catch(a){return process.stderr.write(`error: failed to remove ${i}: ${a.message}
|
|
13
|
+
`),2}try{ze(n)}catch(a){return process.stderr.write(`error: failed to remove ${n}: ${a.message}
|
|
14
|
+
`),2}return process.stderr.write(`removed ${n} and ${i}/
|
|
15
|
+
`),0}var v=class extends Error{kind;constructor(r,s){super(s),this.name="ExportError",this.kind=r}};async function er(e,r){let{codeDir:s}=await Se(e,r);return{codeDir:s}}async function Se(e,r){let s=C(e);if(!s?.testcase_id)throw new v("not-synced","this test has not been synced to TMS \u2014 run `kane-cli testmd run` first.");let n=new L().load(),o=Y(e).mobileTarget!==void 0;if(o&&r.language?.toLowerCase()==="javascript")throw new v("js-on-mobile","--language javascript is not supported on a mobile target \u2014 mobile code export is Appium + Python only. Drop the flag, or pass --language python.");let t=r.language??n.code_export?.language;if(!o&&!t)throw new v("no-language","--language not provided and no default in tui-config.");let{framework:i,language:a}=ie(t??"python",o),u=r.output??se(e,i,a),c=P(u);if(c&&!r.force){let m=!1;try{let{readdirSync:T}=await import("fs");m=T(u).length>0}catch{}if(m)return{kind:"reused",codeDir:u}}c&&r.force&&we(u,{recursive:!0,force:!0});let l=new O,g=r.env??l.getDefaultEnv()??"prod",_;try{_=await N({creds:l,env:g,log:()=>{}})}catch(m){throw m instanceof j?new v("auth-fail","not authenticated. Run `kane-cli login` first."):m}if(!_.basicAuth)throw new v("auth-incomplete","TMS basic auth could not be resolved. Run `kane-cli login` again.");try{let m=K(g);await _e({tmsBaseUrl:m.tmsBaseUrl,testcaseId:s.testcase_id,auth:_.basicAuth,language:a,framework:i,skipValidation:n.code_export?.skip_validation??!0,outDir:u,log:()=>{}})}catch(m){throw new v("export-fail",`code export failed: ${m.message}`)}return{kind:"exported",codeDir:u}}async function rt(e,r,s){let n=Q(e);if(!P(n))return process.stderr.write(`error: file not found: ${n}
|
|
16
|
+
`),2;let o=C(n),t=J(o,s);if(t!==null)return t;try{let i=await Se(n,r);return i.kind==="reused"?process.stderr.write(`reusing existing export at ${i.codeDir}
|
|
17
|
+
`):process.stderr.write(`exported to ${i.codeDir}
|
|
18
|
+
`),0}catch(i){if(i instanceof v)return i.kind==="not-synced"?(process.stderr.write("error: this test has not been synced to TMS \u2014 run `kane-cli testmd run` first.\n"),2):i.kind==="no-language"?(process.stderr.write(`error: --language not provided and no default in tui-config.
|
|
19
|
+
`),2):i.kind==="js-on-mobile"?(process.stderr.write(`error: ${i.message}
|
|
20
|
+
`),2):i.kind==="auth-fail"?(process.stderr.write("error: not authenticated. Run `kane-cli login` first.\n"),2):i.kind==="auth-incomplete"?(process.stderr.write("error: TMS basic auth could not be resolved. Run `kane-cli login` again.\n"),2):(process.stderr.write(`error: ${i.message}
|
|
21
|
+
`),2);throw i}}async function tr(e={}){let r=!!process.stdin.isTTY,s=new O,n=new L;await H({isInteractive:r,creds:s,config:n,...be()});let o=e.env??s.getDefaultEnv()??"prod";try{let t=await N({creds:s,env:o,usernameFlag:e.username,accessKeyFlag:e.accessKey,log:()=>{}});return t.resolvedCreds?.org_id===void 0||!t.basicAuth?(process.stderr.write("error: could not resolve TMS credentials. Run `kane-cli login` again.\n"),{ok:!1,code:2}):{ok:!0,orgId:String(t.resolvedCreds.org_id),basicAuth:t.basicAuth,controllerBaseUrl:K(o).controllerBaseUrl}}catch(t){if(t instanceof j)return process.stderr.write("error: not authenticated. Run `kane-cli login` first.\n"),{ok:!1,code:2};throw t}}async function rr(e,r,s=le){if(!P(e))return process.stderr.write(`error: file not found: ${e}
|
|
22
|
+
`),2;if(!e.endsWith("_test.md"))return process.stderr.write(`error: not a *_test.md file: ${e}
|
|
23
|
+
`),2;let n=C(e),o=J(n,r.orgId);if(o!==null)return o;if(!n?.commit_id||!n?.test_id)return process.stderr.write(`error: ${e} is not authored \u2014 run \`kane-cli testmd run ${e}\` first.
|
|
24
|
+
`),2;let t=await s({sourcePath:e,testId:n.test_id,sessionId:n.commit_id,commitId:n.commit_id,controller:new ee(r.controllerBaseUrl,{username:r.basicAuth.username,accessKey:r.basicAuth.access_key})}),i={type:"test_md_bundle_sync",status:t.ok?"ok":"failed",commit_id:n.commit_id,...t.ok?{bytes:t.bytes}:{stage:t.stage}};return process.stdout.write(JSON.stringify(i)+`
|
|
25
|
+
`),t.ok?(process.stderr.write(`synced: ${n.commit_id}-testmd.zip (${t.bytes} bytes)
|
|
26
|
+
`),0):(process.stderr.write(`error: bundle sync failed at ${t.stage}: ${t.error}
|
|
27
|
+
`),t.stage==="collect"?2:1)}export{U as a,Y as b,ye as c,xe as d,C as e,ke as f,J as g,zt as h,Qt as i,et as j,Zt as k,tt as l,v as m,er as n,rt as o,tr as p,rr as q};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { createRequire } from 'module'; const require = createRequire(import.meta.url);
|
|
2
|
-
import{a as Ce}from"./chunk-AQ2OG2EF.js";import{b as Me,d as Le}from"./chunk-VRIZDOO5.js";import{c as ke,g as Oe}from"./chunk-ZHWU6L2G.js";import{b as F}from"./chunk-
|
|
2
|
+
import{a as Ce}from"./chunk-AQ2OG2EF.js";import{b as Me,d as Le}from"./chunk-VRIZDOO5.js";import{c as ke,g as Oe}from"./chunk-ZHWU6L2G.js";import{b as F}from"./chunk-CJE7PKRV.js";import{B as Ie,L as Ee,M as $e,Na as Be,a as ne,c as te,k as oe,r as we,x as re,y as se}from"./chunk-Z777GGHB.js";import{d as L,j as he,k as be,l as ye,m as ve,n as ie,p as _e,q as j}from"./chunk-DBMW3VUN.js";import{f as ee,h as xe}from"./chunk-KU3YHPWZ.js";import{readFileSync as We}from"fs";import{basename as ue,extname as Ue}from"path";import{extname as Pe}from"path";var Fe={kind:"jira",media_type:"application/x-kane-jira-envelope",extensions:[],cite:"verbatim",maxBytes:2e6},De={kind:"confluence",media_type:"application/x-kane-confluence-envelope",extensions:[],cite:"verbatim",maxBytes:2e6},je={kind:"web",media_type:"application/x-kane-web-envelope",extensions:[],cite:"verbatim",maxBytes:2e6},Te={kind:"linear",media_type:"application/x-kane-linear-envelope",extensions:[],cite:"verbatim",maxBytes:2e6},Ge={kind:"linear-doc",media_type:"application/x-kane-linear-doc-envelope",extensions:[],cite:"verbatim",maxBytes:2e6},Ke={kind:"plugin",media_type:"application/x-kane-plugin-envelope",extensions:[],cite:"verbatim",maxBytes:25*1024*1024},le=[{kind:"text",media_type:"text/plain",extensions:[".txt"],cite:"verbatim",maxBytes:2e6},{kind:"markdown",media_type:"text/markdown",extensions:[".md",".markdown"],cite:"verbatim",maxBytes:2e6},{kind:"image",media_type:"image/png",extensions:[".png"],cite:"anchor-only",maxBytes:5e6},{kind:"image",media_type:"image/jpeg",extensions:[".jpg",".jpeg"],cite:"anchor-only",maxBytes:5e6},{kind:"image",media_type:"image/webp",extensions:[".webp"],cite:"anchor-only",maxBytes:5e6},{kind:"text",media_type:"application/json",extensions:[".json"],cite:"verbatim",maxBytes:2e6},{kind:"text",media_type:"application/yaml",extensions:[".yaml",".yml"],cite:"verbatim",maxBytes:2e6},{kind:"text",media_type:"application/toml",extensions:[".toml"],cite:"verbatim",maxBytes:2e6},{kind:"text",media_type:"application/xml",extensions:[".xml"],cite:"verbatim",maxBytes:2e6},{kind:"text",media_type:"text/plain",extensions:[".log"],cite:"verbatim",maxBytes:2e6},{kind:"pdf",media_type:"application/pdf",extensions:[".pdf"],cite:"verbatim",maxBytes:25e6,sniff:e=>e.subarray(0,5).toString("latin1")==="%PDF-"},{kind:"docx",media_type:"application/vnd.openxmlformats-officedocument.wordprocessingml.document",extensions:[".docx"],cite:"verbatim",maxBytes:25e6,sniff:e=>e.length>=4&&e[0]===80&&e[1]===75&&e[2]===3&&e[3]===4,sniffFail:e=>e.length>=8&&e.subarray(0,8).equals(Ve)?"DOCX_ENCRYPTED_OR_LEGACY: password-protected Office file (or a legacy .doc renamed .docx) \u2014 remove the password / save as .docx and re-ingest":void 0},Fe,De,Te,Ge,Ke],Ve=Buffer.from([208,207,17,224,161,177,26,225]),ae={pdf:"pdf",docx:"docx",jira:"jira",confluence:"confluence",web:"web",linear:"linear","linear-doc":"linearDoc",plugin:"plugin"},en=new Set(Object.keys(ae));function Se(e){let i=Pe(e).toLowerCase(),n=le.find(o=>o.extensions.includes(i));return n?{ok:!0,media:n}:{ok:!1,code:"UNSUPPORTED_MEDIA",allowlist:le.flatMap(o=>o.extensions)}}function nn(e){return[...le,je].find(i=>i.media_type===e)??null}function K(e){return e>=1024*1024?`${(e/(1024*1024)).toFixed(1)} MB`:`${Math.max(1,Math.round(e/1024))} KB`}function Ne(e,i,n){if(n===void 0)return;let o=n!==null?[n]:e.byLabel(ee.SOURCE).filter(d=>d.content.source_id===i).map(d=>d.cid);if(o.length!==0){for(let d of o){let p=e.mediaOf(d);if(p.format==="plugin")return p.plugin?.id??""}return null}}function Xe(e,i,n,o){if(i===void 0||i===n)return;let d=o?"a retired source":"a source",p=i===null?`${d} of a built-in kind`:`${d} the ${i} plugin reads`,t=n===null?"a file or URL of a built-in kind":`a source the ${n} plugin reads`;return`SOURCE_ID_OWNED: '${e}' is ${p} \u2014 ${t} cannot become a version of it; ingest it under another id`}function Ye(e,i,n){return Ce({source_id:e,source_cid:"sha256:".padEnd(71,"0"),doc_kind:i,numbered_text:Ie(n)})}var Ae=2e3;function ze(e){let n=ue(e,Ue(e)).toLowerCase().replace(/[^a-z0-9._-]+/g,"-").replace(/^[^a-z0-9]+/,"");return oe(n),n}function wn(e){let i=/^(.*?)[-_.]?v?\d+$/.exec(e);if(!i)return null;let n=(i[1]??"").replace(/[-_.]+$/,"");return n.length>0&&n!==e?n:null}async function In(e){let{store:i,filePath:n,asId:o,confirmSameSource:d,converters:p}=e,t=i.ensure(),s=We(n),g=Se(n);if(!g.ok)throw new Error(`${ue(n)} is a file type kane can't ingest (${Ue(n)||"no extension"}) \u2014 supported: ${g.allowlist.join(" ")} [UNSUPPORTED_MEDIA]`);if(s.byteLength>g.media.maxBytes)throw new Error(`${ue(n)} is too large \u2014 ${K(s.byteLength)}, the limit for ${g.media.media_type} is ${K(g.media.maxBytes)} [FILE_TOO_LARGE]`);if(g.media.sniff&&!g.media.sniff(s)){let w=g.media.sniffFail?.(s);throw new Error(w??`MEDIA_SNIFF_MISMATCH: ${n} does not look like ${g.media.media_type}`)}let C;o!==void 0?(oe(o),C=o):C=ze(n);let v=await He({store:i,bytes:s,media:g.media,sourceId:C,label:n,confirmSameSource:d,converters:p});return t.gitignore?{...v,gitignore:t.gitignore}:v}async function He(e){let{store:i,bytes:n,media:o,confirmSameSource:d,converters:p}=e,t=o.kind==="plugin"?e.plugin:void 0;if(o.kind==="plugin"&&!t)throw new Error("a source-plugin version needs the plugin it was read by");let s=e.sourceId,g=e.label??s,C=i.ensure();if(n.byteLength>o.maxBytes)throw new Error(`the content is too large \u2014 ${K(n.byteLength)}, the limit for ${o.media_type} is ${K(o.maxBytes)} [FILE_TOO_LARGE]`);let v=[],w=ae[o.kind];if(o.cite==="verbatim"&&!w){try{new TextDecoder("utf-8",{fatal:!0}).decode(n)}catch{throw new Error(`ENCODING_UNSUPPORTED: ${g} is not valid UTF-8 \u2014 re-save it as UTF-8 and re-ingest`)}n.toString("utf8").split(`
|
|
3
3
|
`).some(h=>h.length>Ae)&&v.push(`long line detected (> ${Ae} chars) \u2014 anchors lose granularity; consider pretty-printing before ingest`)}let k=F(n),O=new Map,I=null,_=null,m=null,B=new Map,R=!1;for(let h=0;;h++){let c=$e(i),u=c.heads.get(s),U=u!=null?c.getNode(u)?.content:void 0,b=Xe(s,Ne(c,s,u),t?t.id:null,u===null);if(b)throw new Error(b);if(u!=null&&U?.blob===k)return{status:"unchanged",source_id:s,cid:u,blob:k};if(u==null){for(let[r,E]of c.heads.entries())if(!(r===s||E==null)&&c.getNode(E)?.content.blob===k){if(Ne(c,r,E)!==(t?t.id:null))continue;let f;if(O.has(r)?f=O.get(r):h===0&&d?(f=await d(r),O.set(r,f)):(f=!1,O.set(r,f),h>0&&v.push(`same bytes already ingested as '${r}' \u2014 minted under '${s}' anyway (the twin appeared mid-commit; not prompted)`)),f)return{status:"unchanged",source_id:r,cid:E,blob:k};break}}let V=t?ne("source",te(s,k)):void 0,W=V!==void 0&&c.nodeLabel.has(V)?c.mediaOf(V):void 0,l=W?.format==="plugin"&&W.plugin?W:void 0,X=null;if(l){let r=[];if(l.text_blob&&i.getBlob(l.text_blob)===null&&r.push(`its text (${l.text_blob.slice(0,19)})`),l.plugin.index&&(X=ie(i.getBlob(l.plugin.index)),X===null&&r.push(`its unit index (${l.plugin.index.slice(0,19)})`)),l.plugin.notes&&i.getBlob(l.plugin.notes)===null&&r.push(`its notes (${l.plugin.notes.slice(0,19)})`),l.plugin.coverage&&i.getBlob(l.plugin.coverage)===null&&r.push(`its coverage plan (${l.plugin.coverage.slice(0,19)})`),r.length>0)throw new Error(`VERSION_BLOB_MISSING: this store has held these bytes of '${s}' before, and ${r.join(" and ")} from that ingest ${r.length>1?"are":"is"} not in the blob store \u2014 a version keeps what its first ingest stored, so it cannot be read again; restore the blobs from a copy of this store (kane-cli context fsck names what is missing)`)}if(!l&&m===null){let r={},E,f=null,A=null,M;if(w){let $=p?.[w];if(!$)throw new Error(`${w.toUpperCase()}_CONVERTER_MISSING: ${w} ingestion requires the converter \u2014 the command layer wires it`);let x=await $(n),y=re(x.projection);y.replaced>0&&v.push(se(s,y.replaced)),f=Buffer.from(y.text,"utf8");let D=Ye(s,o.kind,f),ge=()=>new Error(`PROJECTION_TOO_LARGE: serialized source payload ${D} bytes > ${4e5} \u2014 split the document and re-ingest`);if(D>4e5){if(!t)throw ge();if(f.byteLength>L.textBytes)throw new Error(`PLUGIN_TEXT_TOO_LARGE: plugin ${t.id} rendered ${s} to ${f.byteLength} bytes of text; a plugin's source may be at most ${L.textBytes} \u2014 split the source and ingest the parts`)}if(r={text_blob:F(f),...x.inventory.length>0?{images:x.inventory}:{},converter:x.converter},A=x.blobs,E={kind:o.kind,...x.pages!==void 0?{pages:x.pages}:{},delivered:x.delivered.length,omitted:x.inventory.length-x.delivered.length},t){let T=be(x.units,y.text);if(!T.ok)M={fault:T.fault};else{let me=ye(t.id,t.rules,T.units,y.text),G=ve(me);M=G.ok?{index:me,bytes:G.bytes,fp:F(G.bytes),given:T.units}:{fault:G.fault}}if(D>4e5&&(!("index"in M)||M.given.length===0))throw ge()}}else if(o.cite==="verbatim"){let $=re(n.toString("utf8"));$.replaced>0&&(v.push(se(s,$.replaced)),f=Buffer.from($.text,"utf8"),r={text_blob:F(f)})}let P=[...r.text_blob?[r.text_blob]:[],...A?A.keys():[]];m={derived:r,composite:E,projBytes:f,derivedBlobs:A,derivedFps:P,...M?{units:M}:{}}}let a=l?{derived:{...l.text_blob?{text_blob:l.text_blob}:{},...l.converter?{converter:l.converter}:{}},composite:{kind:o.kind,delivered:0,omitted:0},projBytes:null,derivedBlobs:null,derivedFps:l.text_blob?[l.text_blob]:[]}:m;if(l)i.putBlob(n);else if(!R){if(i.putBlob(n),a.projBytes!==null&&i.putBlob(a.projBytes),a.derivedBlobs!==null)for(let[,r]of a.derivedBlobs)i.putBlob(r);R=!0}let Y=te(s,k),z=xe("source",Y);if(z.length>0)throw new Error(`source node fails ${z[0].code}: ${z[0].detail}`);let H=ne("source",Y),S,N,J,q=[],Q=[],Z=[];if(t){let r=null,E;l?(E=l.plugin.index,r=X,N=r?{indexed:r.units.length}:{fault:{code:"UNIT_LIST_INVALID",detail:"this version was first stored without a unit index, and a version keeps what its first ingest stored"}}):a.units&&"index"in a.units?(i.putBlob(a.units.bytes),r=a.units.index,E=a.units.fp,N={indexed:r.units.length}):a.units&&(N={fault:a.units.fault});let f=u!=null?c.mediaOf(u):void 0,A=r&&f?.format==="plugin"&&f.plugin?.index?ie(i.getBlob(f.plugin.index)):null,M=r&&A&&A.plugin===r.plugin&&A.rules===r.rules?A:null,P=r&&M&&u!=null?_e(M,r):null;if(P!==null&&P.changed.length>0&&e.explain&&!l&&u!=null&&a.projBytes!==null){let y=B.get(u);if(y===void 0){let D=f?.text_blob?i.getBlob(f.text_blob):null;y=D===null?{reasons:{},warnings:[]}:await Qe({call:e.explain,ms:e.explainMs??L.explainMs,plugin:t.id,sourceId:s,changed:P.changed,before:{index:M,text:D.toString("utf8")},after:{index:r,text:a.projBytes.toString("utf8")}}),B.set(u,y)}q=y.warnings,Object.keys(y.reasons).length>0&&(J=y.reasons)}let $;if(l)$=l.plugin.notes;else if(t.notes!==void 0)$=t.notes;else if(e.context&&a.projBytes!==null){if(I===null){let y=a.units&&"index"in a.units?a.units.given:[];I=await Je({call:e.context,ms:e.contextMs??L.hookMs,plugin:t.id,sourceId:s,text:a.projBytes.toString("utf8"),units:y})}I.notes!==null&&(i.putBlob(I.notes.bytes),$=I.notes.fp),Q=I.warnings}let x;l?x=l.plugin.coverage:t.coverage!==void 0?x=t.coverage:e.coverage&&a.units&&"index"in a.units&&(_===null&&(_=await qe({call:e.coverage,ms:e.coverageMs??L.hookMs,plugin:t.id,sourceId:s,units:a.units.given})),_.plan!==null&&(i.putBlob(_.plan.bytes),x=_.plan.fp),Z=_.warnings),S={id:l?l.plugin.id:t.id,rules:l?l.plugin.rules:t.rules,...E?{index:E}:{},...$?{notes:$}:{},...x?{coverage:x}:{},...(l?l.plugin.cites_deep:t.citesDeep)===!0?{cites_deep:!0}:{},...P!==null&&u!=null?{changes:{from:u,...P,...J?{reasons:J}:{}}}:{},...t.fetch!==void 0?{fetch:{ref:t.fetch.ref,...t.fetch.cursor!==void 0?{cursor:t.fetch.cursor}:{}}}:{}}}let ce=N&&"fault"in N?[...v,`${s} is stored without a unit index: ${N.fault.detail} [${N.fault.code}] \u2014 everything that cites an earlier version of it reads stale`]:v,pe=q.length>0||Q.length>0||Z.length>0?[...ce,...q,...Q,...Z]:ce,Re=[...a.derivedFps,...S?.index?[S.index]:[],...S?.notes?[S.notes]:[],...S?.coverage?[S.coverage]:[]],fe={format:o.kind,media_type:o.media_type,anchors_supported:t?["L-L"]:w?["L-L","img#ref"]:o.cite==="verbatim"?["L-L"]:[],...a.derived,...S?{plugin:S}:{}};try{Ee(i,{ts:new Date().toISOString(),proposal_id:null,nodes:[{cid:H,label:ee.SOURCE,content:Y}],edges:[],review:[],supersessions:[],media:{[s]:fe},...e.eventIds&&e.eventIds.length>0?{event_ids:e.eventIds}:{},source_head_moves:{[s]:H}},{graph:c,expectPrev:c.latestHash,intent:{v:1,verb:"ingest",args:we({source_id:s,blob:k,label:g,media:fe,derived_blobs:Re,eventIds:e.eventIds??null}),pins:{prior_head:u??null}},provenance:e.provenance})}catch(r){if(r instanceof Be&&h<3)continue;throw r}return{status:u!=null?"versioned":"created",source_id:s,cid:H,blob:k,...pe.length?{warnings:pe}:{},...a.composite?{composite:a.composite}:{},...C.gitignore?{gitignore:C.gitignore}:{},...N?{units:N}:{}}}}async function Je(e){let i="the version, its units and what changed are stored as they are; only the notes are missing",n;try{n=await e.call({text:e.text,units:e.units},e.ms)}catch(t){let s=j(t instanceof Error?t.message:String(t))??"it failed";return{notes:null,warnings:[`plugin ${e.plugin} gave no notes for ${e.sourceId}: ${s} \u2014 ${i} [PLUGIN_CONTEXT_FAILED]`]}}let o=Oe(e.plugin,n,new Set(e.units.map(t=>t.id))),d=[];if(o.invalid!==void 0&&d.push(`plugin ${e.plugin} answered context for ${e.sourceId} with ${o.invalid} \u2014 ${i} [PLUGIN_NOTES_INVALID]`),o.dropped.length>0){let t=o.dropped.reduce((s,g)=>s+g.count,0);d.push(`${t} ${t===1?"note":"notes"} of plugin ${e.plugin} for ${e.sourceId} ${t===1?"is":"are"} not kept: ${o.dropped.map(s=>`${s.count} ${s.why}`).join("; ")} \u2014 the version, its units and what changed are stored as they are, with the notes that are kept [PLUGIN_NOTES_DROPPED]`)}if(o.notes===null)return{notes:null,warnings:d};let p=ke(o.notes);return{notes:{bytes:p,fp:F(p)},warnings:d}}async function qe(e){let i="the version, its units and what changed are stored as they are, with no coverage plan: every unit of it is expected to have tests",n;try{n=await e.call({units:e.units},e.ms)}catch(p){let t=j(p instanceof Error?p.message:String(p))??"it failed";return{plan:null,warnings:[`plugin ${e.plugin} gave no coverage plan for ${e.sourceId}: ${t} \u2014 ${i} [PLUGIN_COVERAGE_FAILED]`]}}let o=Le(e.plugin,n,e.units.map(p=>p.id));if(o.plan===null)return{plan:null,warnings:[`plugin ${e.plugin} gave no coverage plan for ${e.sourceId}: ${o.fault} \u2014 ${i} [PLUGIN_COVERAGE_FAILED]`]};let d=Me(o.plan);return{plan:{bytes:d,fp:F(d)},warnings:[]}}async function Qe(e){let i=m=>{let B=he(m.text),R=new Map(m.index.units.map(h=>[h.id,h]));return h=>{let c=R.get(h);if(c===void 0||c.lines===void 0)return null;let{text:u,segments:U,...b}=c;return{unit:{...b,lines:[c.lines[0],c.lines[1]]},text:B.slice(c.lines[0]-1,c.lines[1]).join(`
|
|
4
4
|
`)}}},n=i(e.before),o=i(e.after),d={},p=[],t=[],s=[],g="",C=0,v=[],w=[],k=Date.now();for(let m=0;m<e.changed.length;m++){let B=e.changed[m],R=n(B),h=o(B);if(R===null||h===null)continue;let c=e.ms-(Date.now()-k);if(c<=0){v=e.changed.slice(m).filter(b=>n(b)!==null&&o(b)!==null);break}let u;try{u=await e.call({sourceId:e.sourceId,before:R,after:h},c)}catch(b){p.push(B),g===""&&(g=b instanceof Error?b.message:String(b));continue}if(u==null)continue;let U=j(u);if(U===null){s.push(B);continue}if(U.length>L.reasonChars){t.push(B);continue}if(C+Buffer.byteLength(U,"utf8")>L.reasonsBytes){w=e.changed.slice(m).filter(b=>n(b)!==null&&o(b)!==null);break}C+=Buffer.byteLength(U,"utf8"),d[B]=U}let O=m=>`${m.length} changed ${m.length===1?"unit":"units"} of ${e.sourceId} (${m.slice(0,5).join(", ")}${m.length>5?`, and ${m.length-5} more`:""})`,I="the version, its units and what changed are stored as they are; only the wording is missing",_=[];return p.length>0&&_.push(`plugin ${e.plugin} gave no reason for ${O(p)}: ${j(g)??"it failed"} \u2014 ${I} [PLUGIN_EXPLAIN_FAILED]`),v.length>0&&_.push(`plugin ${e.plugin} was not asked for a reason for ${O(v)}: its answers took the ${Math.round(e.ms/1e3)} seconds a version's reasons may take \u2014 ${I} [PLUGIN_EXPLAIN_TIMEOUT]`),s.length>0&&_.push(`plugin ${e.plugin} answered with something that is not a line of text for ${O(s)} \u2014 ${I} [PLUGIN_REASON_INVALID]`),t.length>0&&_.push(`plugin ${e.plugin} gave a reason over ${L.reasonChars} characters for ${O(t)}; it is dropped \u2014 ${I} [PLUGIN_REASON_TOO_LONG]`),w.length>0&&_.push(`the reasons of plugin ${e.plugin} passed ${L.reasonsBytes} bytes for one version; none is kept for ${O(w)} \u2014 ${I} [PLUGIN_REASONS_OVER_LIMIT]`),{reasons:d,warnings:_}}export{Fe as a,De as b,je as c,Te as d,Ge as e,Ke as f,le as g,ae as h,en as i,Se as j,nn as k,Xe as l,Ye as m,ze as n,wn as o,In as p,He as q};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { createRequire } from 'module'; const require = createRequire(import.meta.url);
|
|
2
|
-
import{a as t}from"./chunk-
|
|
2
|
+
import{a as t}from"./chunk-UJLULWSR.js";var n=null;function o(){return n??=t()}function e(r){n=r}export{o as a,e as b};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { createRequire } from 'module'; const require = createRequire(import.meta.url);
|
|
2
|
-
import{c as h}from"./chunk-
|
|
2
|
+
import{c as h}from"./chunk-WZLDFEWR.js";import{P as v,ta as O,xb as y,yb as G,zb as b}from"./chunk-Z777GGHB.js";import{f as i,g as a,i as S}from"./chunk-KU3YHPWZ.js";import{m}from"./chunk-4I7YN6YY.js";var C=new Set([a.BELONGS_TO,a.SCOPED_TO]),N="re-pinned onto the use case's live version: its update changed nothing";function A(e,s){let n=e.tipOf(s);return e.superseded.has(n)?[]:b(e,n).filter(t=>t!==n).flatMap(t=>e.edgesInto(t).filter(r=>C.has(r.type)&&!e.superseded.has(r.src)))}function k(e,s){for(let n of e.edgesFrom(s)){if(S(n.type)?.pin?.comparesTo!=="dst_tip"||!e.superseded.has(n.dst))continue;let t=e.tipOf(n.dst);if(e.superseded.has(t)||e.nodeLabel.get(t)===i.USECASE&&!C.has(n.type))return!1}return!0}function U(e){let{store:s,graph:n,by:t}=e,r=A(n,e.ucTip);if(r.length===0)return{record:null,moved:0,errors:null};let c=n.tipOf(e.ucTip),l=r.flatMap(o=>[{kind:"retract",target:o.src,expectedCid:o.src,edgeEcid:o.ecid,reason:N,eventId:`repin:${o.ecid}`},{kind:"enhance",target:o.src,expectedCid:o.src,edges:[{type:o.type,src:o.src,dst:c,props:o.props}],eventId:`repin:${o.ecid}:live`}]),d=h({store:s,graph:n,ops:l,by:t,mintable:[],learn:!1,...e.sid?{sid:e.sid}:{}});return d.errors?{record:null,moved:0,errors:d.errors}:{record:d.record,moved:r.length,errors:null}}var L=new Set([i.USECASE,i.SCENARIO,i.AC,i.TEST]);function $(e,s){return!e.superseded.has(s)&&e.trust.get(s)!=="archived"}function f(e,s,n){let t=e.edgesFrom(s).find(r=>r.type===n);return t?e.tipOf(t.dst):null}function D(e,s,n){if(n===i.USECASE)return s;if(n===i.SCENARIO)return f(e,s,a.BELONGS_TO);if(n===i.AC){let t=f(e,s,a.SCOPED_TO);return t?e.nodeLabel.get(t)===i.USECASE?t:f(e,t,a.BELONGS_TO):null}if(n===i.TEST){let t=f(e,s,a.AUTOMATES);return t?f(e,t,a.BELONGS_TO):null}return null}function*x(e,s){for(let{cid:n,state:t}of e.staleList()){if(t==="superseded")continue;let r=e.nodeLabel.get(n);!r||!L.has(r)||!$(e,n)||D(e,n,r)===s&&(yield{cid:n,label:r})}}function T(e,s){for(let{cid:n}of x(e,s))if(y(e,n))return!0;return!1}function q(e,s){let n=new Set,t=!1,r=!0;for(let{cid:c,label:l}of x(e,s)){let d=G(e,c);if(l===i.USECASE)for(let o of d.sources)n.add(o);else d.sources.length>0&&([t,r]=[!0,!1]);d.pin&&([t,r]=[!0,r&&k(e,c)])}return{sources:[...n].sort(),design:t,repinnable:t&&r}}var z=e=>e.sources.length>0&&!e.design;function _(e,s){let n=null;for(let[t,r]of e.designOf)t!==s&&e.tipOf(t)!==s||(n==null||r.seq>n.seq)&&(n={...r,designed_at_cid:t});return n}function F(e,s){let n=_(e,s);if(n!=null)return n.designed_at_cid===s||!T(e,s)?"current":"stale"}function R(e,s){let n=O(e.superseded,c=>e.nodeLabel.get(c)),t=[s],r=s;for(;n.has(r);)r=n.get(r),t.unshift(r);return t}function Y(e,s,n){let t=v(e,s);if(!t.ok&&t.why==="unknown"){let u=[...e.names.keys()].filter(w=>w.startsWith("uc-")).sort().slice(0,6);return{ok:!1,code:2,message:`unknown use-case '${s}' \u2014 no live node by that logical id or cid${u.length?` (known: ${u.join(", ")})`:""}`}}if(!t.ok&&t.why==="removed")return{ok:!1,code:2,message:`use-case '${s}' was removed (tombstoned) \u2014 nothing to design`};if(!t.ok)return{ok:!1,code:2,message:`'${s}' is a ${t.label??"missing node"}, not a use-case \u2014 design runs per use-case`};let r=t.cid,c=e.resolve(s)?.cid,l=e.nameOf.get(r)??(c?e.nameOf.get(c):void 0)??e.displayNameOf(r)??r.slice(0,19);if(e.trust.get(r)==="archived"){let u=e.archivedReason.get(r);return{ok:!1,code:2,message:`use-case '${l}' is archived${u?` (${u})`:""} \u2014 design runs only over live use-cases`}}let d=_(e,r);if(d==null||n)return{ok:!0};let o=R(e,r),p=o.length;if(F(e,r)==="current")return{ok:!1,code:2,message:m().text("note.already_designed",{use_case:l,version:p}),wall:{kind:"already-designed",display:l,currentV:p}};let g=o.indexOf(d.designed_at_cid),E=g>=0?`v${g+1}`:"an earlier version";return{ok:!1,code:2,message:m().text("note.design_stale",{use_case:l,designed:E,current:p}),wall:{kind:"designed-stale",display:l,currentV:p,designedV:E}}}export{U as a,L as b,$ as c,D as d,T as e,q as f,z as g,_ as h,F as i,Y as j};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { createRequire } from 'module'; const require = createRequire(import.meta.url);
|
|
2
|
-
import{b as x}from"./chunk-
|
|
2
|
+
import{b as x}from"./chunk-DTYT6KBO.js";import{a as l}from"./chunk-HCBYKLMW.js";import{a as i,b as r}from"./chunk-33DWJV67.js";import{e}from"./chunk-UR6MHSHU.js";var o=e(l(),1);function m({title:c,state:t,rows:n}){return(0,o.jsxs)(i,{flexDirection:"column",marginTop:1,children:[(0,o.jsxs)(r,{children:[(0,o.jsx)(r,{bold:!0,children:c}),t?(0,o.jsx)(r,{color:t.color,children:` \u25CF ${t.text}`}):null]}),(0,o.jsx)(x,{rows:n,minWidth:20})]})}export{m as a};
|