@testmuai/kane-cli 0.8.15 → 0.8.17
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-2GPR4S7I.js → ChatSurface-X2HLVN2I.js} +1 -1
- package/dist/{ChromeProfilePicker-XAZGCJKR.js → ChromeProfilePicker-YU7HL6Z5.js} +1 -1
- package/dist/{CliFeedbackPrompt-4SILDU7S.js → CliFeedbackPrompt-7FEEVGCU.js} +1 -1
- package/dist/{CliUploadProgress-OAQBY55Y.js → CliUploadProgress-OTVPBGW4.js} +1 -1
- package/dist/{ConfigView-FDBMJC26.js → ConfigView-UKHUASHL.js} +1 -1
- package/dist/EvidenceViewOffer-LIPGXO23.js +2 -0
- package/dist/FolderPicker-OTQYRAYC.js +2 -0
- package/dist/{InfoBox-ZPUBB7J4.js → InfoBox-2TYT2ROK.js} +1 -1
- package/dist/{LinksBox-MNNNOH23.js → LinksBox-7AS6D7MX.js} +1 -1
- package/dist/{ProfilesView-GY5QCIT3.js → ProfilesView-F4MFHZ7Y.js} +1 -1
- package/dist/{ProjectPicker-UCHMCNFV.js → ProjectPicker-QLGZM35L.js} +1 -1
- package/dist/{SaveSessionPrompt-ATVHKAHN.js → SaveSessionPrompt-T4MS76FY.js} +1 -1
- package/dist/SingleShotApp-4CDTAF3H.js +2 -0
- package/dist/{SummaryBox-2DTNE25L.js → SummaryBox-IX32QPWM.js} +1 -1
- package/dist/TestMdRunView-MRMY3RW5.js +2 -0
- package/dist/{TestrunEvidenceTable-6UE5EMON.js → TestrunEvidenceTable-OK2HAENB.js} +1 -1
- package/dist/{WhoamiView-TFCHIOW5.js → WhoamiView-AHMNIIXZ.js} +1 -1
- package/dist/{app-download-N7MLJQ42.js → app-download-CF4JLXWV.js} +1 -1
- package/dist/{auth-IQPCVCZK.js → auth-D4BDPJPR.js} +1 -1
- package/dist/{binary-VML7EGV4.js → binary-NWVJK542.js} +1 -1
- package/dist/{bind-YV6V5AI6.js → bind-LWN72YES.js} +4 -4
- package/dist/bootstrap-63FBDEEU.js +2 -0
- package/dist/bridge-UMXGHAJF.js +2 -0
- package/dist/{changelog-CJFWGRIL.js → changelog-GIZLIFMN.js} +1 -1
- package/dist/chat-committer-6D7AQI6Z.js +2 -0
- package/dist/chat-controller-UJQ6Z4RE.js +2 -0
- package/dist/{chunk-ZCSEBT2W.js → chunk-233MYVFS.js} +1 -1
- package/dist/{chunk-JGAMMOUC.js → chunk-2LCWGWYC.js} +1 -1
- package/dist/{chunk-D6GBOFK5.js → chunk-2LKNUXRN.js} +1 -1
- package/dist/{chunk-LJGAXIDU.js → chunk-2STKZSVF.js} +1 -1
- package/dist/chunk-3UI5VTQS.js +4 -0
- package/dist/{chunk-3D5MKSG3.js → chunk-3UIZVDOF.js} +1 -1
- package/dist/chunk-3VAU3PNU.js +2 -0
- package/dist/{chunk-A557OSRS.js → chunk-3YBT4UGQ.js} +1 -1
- package/dist/{chunk-FXO7JKMZ.js → chunk-47QKRIPY.js} +3 -3
- package/dist/{chunk-EJXBKCNF.js → chunk-4ASBXR6Q.js} +1 -1
- package/dist/{chunk-5HTSKF5K.js → chunk-4OQ7GEIA.js} +1 -1
- package/dist/{chunk-OWGFFJKK.js → chunk-4PWAODKJ.js} +1 -1
- package/dist/{chunk-MLYNVJNH.js → chunk-5HDM7GDO.js} +1 -1
- package/dist/{chunk-M36MOFJW.js → chunk-5LSPHA3P.js} +5 -5
- package/dist/chunk-5MKY3WMF.js +3 -0
- package/dist/{chunk-IAHOLH5W.js → chunk-5UHM7CKR.js} +1 -1
- package/dist/{chunk-XXE7W5AV.js → chunk-5X7JIGG7.js} +1 -1
- package/dist/{chunk-KALEPJAV.js → chunk-5ZU7S4E7.js} +2 -2
- package/dist/{chunk-RQILLYSP.js → chunk-637S3COE.js} +1 -1
- package/dist/{chunk-GX3FPJUG.js → chunk-63DYVWNX.js} +1 -1
- package/dist/chunk-64TO3MD7.js +93 -0
- package/dist/{chunk-UHSNUUX3.js → chunk-6CYF7Q5W.js} +2 -2
- package/dist/{chunk-4TMQTSIO.js → chunk-6OKOMKYR.js} +1 -1
- package/dist/{chunk-NLEA6NPU.js → chunk-75SSVUGS.js} +1 -1
- package/dist/{chunk-AHXOKBVE.js → chunk-7N6OCHPC.js} +1 -1
- package/dist/chunk-7U7HOEZO.js +2 -0
- package/dist/{chunk-7O54QURK.js → chunk-AACQE24F.js} +1 -1
- package/dist/{chunk-DMT3W26F.js → chunk-AG2MVCNK.js} +1 -1
- package/dist/chunk-AH4QWIYU.js +7 -0
- package/dist/{chunk-GZ65ZA4C.js → chunk-AIR2WVXM.js} +1 -1
- package/dist/{chunk-OGDAWNFY.js → chunk-AW34ZNNO.js} +1 -1
- package/dist/chunk-B6NU3SNG.js +368 -0
- package/dist/{chunk-Z3YYMZHT.js → chunk-BNZQKQOE.js} +1 -1
- package/dist/{chunk-T4R26WER.js → chunk-CCNPXTC6.js} +2 -2
- package/dist/{chunk-YAAQER2L.js → chunk-CCW3VQIY.js} +1 -1
- package/dist/{chunk-GSDXZS4U.js → chunk-D2F5T3NX.js} +1 -1
- package/dist/{chunk-JQW2QFSX.js → chunk-D6E6KRVX.js} +1 -1
- package/dist/chunk-D7WG7SRA.js +2 -0
- package/dist/{chunk-HLCETZ73.js → chunk-DFK5QYB5.js} +1 -1
- package/dist/{chunk-WFBJNVMQ.js → chunk-DQRVB5EU.js} +1 -1
- package/dist/{chunk-Z73ZYROU.js → chunk-DT2LIX5S.js} +1 -1
- package/dist/{chunk-AYJ2YZP5.js → chunk-E6X5BVXC.js} +1 -1
- package/dist/{chunk-SHSXOYKT.js → chunk-EIMHIZKF.js} +1 -1
- package/dist/chunk-EVFFDODK.js +5 -0
- package/dist/{chunk-3IXEARDX.js → chunk-F2OBORCG.js} +1 -1
- package/dist/chunk-FY7TCYPK.js +6 -0
- package/dist/{chunk-QXRT6HSV.js → chunk-GBXF4JE6.js} +1 -1
- package/dist/{chunk-YKYKOV6U.js → chunk-GIC56KI3.js} +1 -1
- package/dist/{chunk-OFWJBOGT.js → chunk-GT6Y2SEY.js} +2 -2
- package/dist/{chunk-XUJXGE42.js → chunk-HLUOLWEJ.js} +1 -1
- package/dist/{chunk-O3XBIURC.js → chunk-HS7OIRGU.js} +1 -1
- package/dist/{chunk-JCMHB4KH.js → chunk-I6RTGDZ7.js} +1 -1
- package/dist/{chunk-YZVR7ESF.js → chunk-ICFJVEEA.js} +1 -1
- package/dist/{chunk-JVEZBJJ7.js → chunk-IDLJHKJX.js} +1 -1
- package/dist/{chunk-N3CVR4Z2.js → chunk-IGI4T3VC.js} +1 -1
- package/dist/{chunk-TEHZUSUY.js → chunk-IHD2WXKT.js} +1 -1
- package/dist/{chunk-NUJVYAI4.js → chunk-IHUF6UP4.js} +1 -1
- package/dist/chunk-IICT4VOU.js +2 -0
- package/dist/{chunk-TVELOH5A.js → chunk-IKB2JKMA.js} +1 -1
- package/dist/{chunk-SWTJMTBY.js → chunk-IPQAKIJO.js} +1 -1
- package/dist/{chunk-7X4R6464.js → chunk-IZ3PYWUL.js} +1 -1
- package/dist/{chunk-CNPIJFZM.js → chunk-JGCB4OUP.js} +1 -1
- package/dist/chunk-JPOYZCTX.js +2 -0
- package/dist/chunk-JQ64X2TO.js +2 -0
- package/dist/{chunk-NWNG5UWD.js → chunk-JWOPRJIO.js} +1 -1
- package/dist/{chunk-R7QMZBBH.js → chunk-JWPBLVPW.js} +1 -1
- package/dist/chunk-K2UJYY2U.js +2 -0
- package/dist/{chunk-ALCE5RLK.js → chunk-KDNNMU7Q.js} +1 -1
- package/dist/chunk-KJQNAOOE.js +6 -0
- package/dist/{chunk-6DHEOPXX.js → chunk-KMF2PPJ5.js} +1 -1
- package/dist/{chunk-XSUJJB7Z.js → chunk-KQCGBDPM.js} +1 -1
- package/dist/{chunk-EFTRH35G.js → chunk-KRI5NSGQ.js} +1 -1
- package/dist/{chunk-EDQZIEPJ.js → chunk-KWANVHJX.js} +1 -1
- package/dist/{chunk-JFUFWICY.js → chunk-KX5IV5FL.js} +2 -2
- package/dist/{chunk-UZIMYV5U.js → chunk-L2SJRAK4.js} +1 -1
- package/dist/chunk-L45HDSJ7.js +15 -0
- package/dist/{chunk-Q77QO3PC.js → chunk-LO47W2DO.js} +4 -4
- package/dist/chunk-LSDWPG6C.js +2 -0
- package/dist/{chunk-74FHTDEE.js → chunk-MDM2LJFN.js} +1 -1
- package/dist/{chunk-QVLYK5JL.js → chunk-MTCLFYNH.js} +1 -1
- package/dist/{chunk-BMVE73M7.js → chunk-N55U4S4W.js} +1 -1
- package/dist/chunk-NFLQWKFR.js +8 -0
- package/dist/{chunk-OPL2MIQG.js → chunk-NJ4BXZBX.js} +1 -1
- package/dist/{chunk-3GELV4IN.js → chunk-OCWS5YVO.js} +14 -14
- package/dist/{chunk-HYTBEPC2.js → chunk-PHR2OSWD.js} +1 -1
- package/dist/{chunk-TU6IMGWO.js → chunk-Q4YYAN6E.js} +1 -1
- package/dist/{chunk-55YDTPB7.js → chunk-Q6F23V7L.js} +1 -1
- package/dist/chunk-QSCXXNC2.js +2 -0
- package/dist/{chunk-YGMUNNKH.js → chunk-RBFCGUR3.js} +1 -1
- package/dist/{chunk-3N6IAVD5.js → chunk-RDHWNSDP.js} +1 -1
- package/dist/{chunk-JL3L6KOG.js → chunk-RGJIGNB3.js} +1 -1
- package/dist/{chunk-TCAHDVII.js → chunk-RRY5IXOB.js} +1 -1
- package/dist/{chunk-6L5RV62W.js → chunk-RSXCS474.js} +1 -1
- package/dist/{chunk-DMCEGMGB.js → chunk-SDJNWR4D.js} +1 -1
- package/dist/{chunk-YCH7H7JX.js → chunk-SEEEGDVK.js} +1 -1
- package/dist/{chunk-7EGIX6Y4.js → chunk-TISVRTL7.js} +3 -3
- package/dist/{chunk-6GLFQHSW.js → chunk-TMOSERKN.js} +2 -2
- package/dist/{chunk-VOTIGXQ4.js → chunk-U2LDPUDZ.js} +1 -1
- package/dist/chunk-U6OTFMIT.js +4 -0
- package/dist/{chunk-2WRBCTNM.js → chunk-UQNRUAES.js} +1 -1
- package/dist/{chunk-ZEVU2OT3.js → chunk-UTIP6SMW.js} +1 -1
- package/dist/chunk-UUYYTJG2.js +6 -0
- package/dist/{chunk-ZKCCG3GK.js → chunk-UXJZUGKL.js} +1 -1
- package/dist/{chunk-52WM3XYO.js → chunk-V4B5QA3U.js} +1 -1
- package/dist/chunk-VIO7CCFW.js +5 -0
- package/dist/{chunk-EPE2ELDH.js → chunk-VIYV6NIW.js} +1 -1
- package/dist/{chunk-IE3OO5GI.js → chunk-VVOKM2VO.js} +1 -1
- package/dist/chunk-WC54SZUO.js +5 -0
- package/dist/{chunk-7WDPU33M.js → chunk-WDK5ETMA.js} +1 -1
- package/dist/chunk-WESMQEPO.js +2 -0
- package/dist/{chunk-RI4ILZZC.js → chunk-WKIYI6MB.js} +1 -1
- package/dist/{chunk-KZG4E5RM.js → chunk-WVHMPIDQ.js} +1 -1
- package/dist/chunk-XLSOQLVT.js +2 -0
- package/dist/chunk-YOVKKZVZ.js +2 -0
- package/dist/chunk-ZLWURCJ7.js +2 -0
- package/dist/{chunk-WNB2IYHY.js → chunk-ZQ6KWTJ2.js} +1 -1
- package/dist/chunk-ZRRBZUDJ.js +18 -0
- package/dist/committer-2QPBANRD.js +2 -0
- package/dist/{config-UGCWZGH5.js → config-WKLEWUPU.js} +1 -1
- package/dist/cover-cmd-7TSQJFGM.js +3 -0
- package/dist/{credentials-GWLYYRTL.js → credentials-FLY3ZXVX.js} +1 -1
- package/dist/{deps-bundle-VNGC2UG6.js → deps-bundle-CAKK3EO5.js} +1 -1
- package/dist/{deps-resolve-YLCEU6I7.js → deps-resolve-MSLEFPVD.js} +1 -1
- package/dist/descriptor-3JJUOHBM.js +2 -0
- package/dist/design-committer-D44GSUXY.js +2 -0
- package/dist/dispatch-SXS276ZT.js +2 -0
- package/dist/{doctor-B4Z6RPKQ.js → doctor-EZPQTFJM.js} +1 -1
- package/dist/{docx-convert-WPZS6OIC.js → docx-convert-SQRTF7XS.js} +1 -1
- package/dist/{dossier-UGJMYYAB.js → dossier-7HVC6BNK.js} +1 -1
- package/dist/evidence-GUOURW6F.js +2 -0
- package/dist/evolve-cmd-LJJFOXXP.js +2 -0
- package/dist/{explain-H5HJEDEF.js → explain-NEFBUX5G.js} +1 -1
- package/dist/{explain-cmd-XVE6Z67Q.js → explain-cmd-5LLIJKM2.js} +1 -1
- package/dist/{explain-cmd-R45I5MT7.js → explain-cmd-ENSJNQK7.js} +1 -1
- package/dist/{extract-bind-7IDQS4QP.js → extract-bind-CGU6WVS7.js} +3 -3
- package/dist/{extract-cmd-KIEOBRIT.js → extract-cmd-7N7CCGN6.js} +2 -2
- package/dist/feeder-66TUPB2R.js +2 -0
- package/dist/gaps-cmd-BNUGDF5N.js +3 -0
- package/dist/{gate-E3BLIUEA.js → gate-OYRDJMF6.js} +1 -1
- package/dist/{generate-headless-XGRIDD6O.js → generate-headless-7TJYESUU.js} +2 -2
- package/dist/index.js +162 -165
- package/dist/ingest-OSNNM3DH.js +2 -0
- package/dist/ingest-cmd-B4T5CW5R.js +2 -0
- package/dist/install-6KJ2MZX3.js +2 -0
- package/dist/interactive-bind-HUZDSGFX.js +26 -0
- package/dist/lifecycle-cmd-GIVLSUPE.js +2 -0
- package/dist/list-cmd-KEKKQDUF.js +3 -0
- package/dist/{list-commands-VRRCVWKO.js → list-commands-SMBBT5CY.js} +1 -1
- package/dist/logical-ids-GLVM2SVR.js +2 -0
- package/dist/login-flow-5ZIG7JXT.js +2 -0
- package/dist/maintenance-cmd-MLQ3IRFV.js +2 -0
- package/dist/{mobile-prompts-CMIVWDHQ.js → mobile-prompts-EEPPPA6S.js} +1 -1
- package/dist/{objective-variable-gate-EEYJ6B3X.js → objective-variable-gate-AEBWIGH7.js} +1 -1
- package/dist/open-provider-OTZ37JB6.js +2 -0
- package/dist/{pdf-convert-5H4HQNN3.js → pdf-convert-RLXSXFWN.js} +1 -1
- package/dist/{persist-recorded-session-JXL5E53A.js → persist-recorded-session-IRWGMXGI.js} +1 -1
- package/dist/phase-seed-H7KXNQO6.js +2 -0
- package/dist/pipeline-OV3TWKSZ.js +2 -0
- package/dist/prepare-target-35OI7XBL.js +2 -0
- package/dist/readmodel-FVLRQWZ7.js +2 -0
- package/dist/reconcile-cmd-NBBDE7DJ.js +2 -0
- package/dist/reconcile-deps-DJNIY7TP.js +4 -0
- package/dist/reconcile-engine-Z2XKUCQ7.js +2 -0
- package/dist/recording-banner-GCR6A46M.js +2 -0
- package/dist/{records-TJJJWBUD.js → records-LMCVKPE5.js} +1 -1
- package/dist/registry-V3ULHPLM.js +2 -0
- package/dist/{require-project-folder-SKEZMSN7.js → require-project-folder-YBB5T3OE.js} +1 -1
- package/dist/{resolve-run-intent-THC3EPAX.js → resolve-run-intent-XGZN6OQ6.js} +1 -1
- package/dist/{resolver-2NUNLK7N.js → resolver-WNV53IOL.js} +1 -1
- package/dist/revert-NOUECRW4.js +2 -0
- package/dist/review-cmd-ZXTLZ4GE.js +5 -0
- package/dist/run-YWKZGZVL.js +2 -0
- package/dist/run-YZP2PTNW.js +2 -0
- package/dist/run-test-md-N43FRXB6.js +17 -0
- package/dist/{sessions-cmd-DV442ZCY.js → sessions-cmd-IV25N2L7.js} +1 -1
- package/dist/skill-installer-G7Z5ZDAQ.js +3 -0
- package/dist/{spawner-7FUA3JXA.js → spawner-ABB7B5CQ.js} +1 -1
- package/dist/store-guard-YIQQF4LC.js +2 -0
- package/dist/{structured-answers-NADW6D44.js → structured-answers-3C2DCFFF.js} +1 -1
- package/dist/sync-cmd-4AKHO5EG.js +2 -0
- package/dist/sync-setup-E7UV25KK.js +2 -0
- package/dist/tcg-generate-XJN5OMIJ.js +2 -0
- package/dist/testmd-actions-WFDWYEAU.js +2 -0
- package/dist/{testmd-sync-HYZI6NRM.js → testmd-sync-I2E6W6JL.js} +1 -1
- package/dist/token-refresh-NADDXLYM.js +2 -0
- package/dist/{validate-basic-OKLJLDML.js → validate-basic-WZY6A3KD.js} +1 -1
- package/dist/{variable-receipt-CMCDUJI2.js → variable-receipt-JONRYHCY.js} +1 -1
- package/dist/verdicts-JMVS6HNJ.js +2 -0
- package/dist/{version-check-4DQJBSXW.js → version-check-CD7DHZI2.js} +1 -1
- package/dist/{view-cmd-P3XRFORJ.js → view-cmd-ASH2UFUW.js} +1 -1
- package/dist/walk-session-ZPXR7ASG.js +2 -0
- package/dist/with-telemetry-QXCHDKPW.js +2 -0
- package/package.json +11 -11
- package/dist/EvidenceViewOffer-YSNRKKPC.js +0 -2
- package/dist/FolderPicker-XCTJ5447.js +0 -2
- package/dist/SingleShotApp-IPNZBFXB.js +0 -2
- package/dist/TestMdRunView-2FQIEI5W.js +0 -2
- package/dist/bootstrap-KCPWDBLX.js +0 -2
- package/dist/bridge-5UKX7YIO.js +0 -2
- package/dist/chat-committer-HDE3TP5I.js +0 -2
- package/dist/chat-controller-3EPK7UZG.js +0 -2
- package/dist/chunk-27ERHOW3.js +0 -2
- package/dist/chunk-4PMZ5FCD.js +0 -2
- package/dist/chunk-6K4FDYMH.js +0 -89
- package/dist/chunk-AKX4VRRR.js +0 -2
- package/dist/chunk-CRZUBDJ3.js +0 -6
- package/dist/chunk-FFVNISYH.js +0 -2
- package/dist/chunk-GP7WD4UY.js +0 -4
- package/dist/chunk-HOA4VWSD.js +0 -5
- package/dist/chunk-JQCOKL6U.js +0 -15
- package/dist/chunk-JSS22MFY.js +0 -17
- package/dist/chunk-JUJ4SAGH.js +0 -2
- package/dist/chunk-KUS324VE.js +0 -3
- package/dist/chunk-L2TV4G56.js +0 -4
- package/dist/chunk-O25AL4B7.js +0 -5
- package/dist/chunk-O66WXOOC.js +0 -5
- package/dist/chunk-ORQGQSWG.js +0 -8
- package/dist/chunk-PGXJ275T.js +0 -2
- package/dist/chunk-S4JUCBCT.js +0 -7
- package/dist/chunk-SIYSKT6I.js +0 -3
- package/dist/chunk-TNBF5OMZ.js +0 -2
- package/dist/chunk-UHT5SVP5.js +0 -2
- package/dist/chunk-VZDLRJ5N.js +0 -368
- package/dist/chunk-W77SZLFC.js +0 -2
- package/dist/chunk-YMLC55J4.js +0 -2
- package/dist/chunk-YYYQ5MVD.js +0 -6
- package/dist/committer-IYQPXG6C.js +0 -2
- package/dist/cover-cmd-SWJ2NZUZ.js +0 -3
- package/dist/descriptor-PWUUNYV7.js +0 -2
- package/dist/design-committer-J57IAAA5.js +0 -2
- package/dist/dispatch-OMQCT7WO.js +0 -2
- package/dist/evidence-XJGXVLO5.js +0 -2
- package/dist/evolve-cmd-QQQPPGL3.js +0 -2
- package/dist/feeder-RSHMGW6B.js +0 -2
- package/dist/gaps-cmd-RGIPUSIR.js +0 -3
- package/dist/ingest-QGLVY7ND.js +0 -2
- package/dist/ingest-cmd-R5H5SF5K.js +0 -2
- package/dist/install-W3VPVPAQ.js +0 -2
- package/dist/interactive-bind-X5DVLRRW.js +0 -26
- package/dist/lifecycle-cmd-6R2PR2HM.js +0 -2
- package/dist/list-cmd-QCIYKWYQ.js +0 -3
- package/dist/logical-ids-DN6IZSUM.js +0 -2
- package/dist/login-flow-5HL2QYEL.js +0 -2
- package/dist/maintenance-cmd-GZ4EMT3V.js +0 -2
- package/dist/open-provider-UFSCTIQQ.js +0 -2
- package/dist/phase-seed-HKJ2EF7R.js +0 -2
- package/dist/pipeline-RSCRNNPW.js +0 -2
- package/dist/prepare-target-XZ3FTVBW.js +0 -2
- package/dist/readmodel-IBFRM6EO.js +0 -2
- package/dist/reconcile-cmd-4VRTUM2D.js +0 -2
- package/dist/reconcile-deps-ZCJ2QCK5.js +0 -4
- package/dist/reconcile-engine-IVLZCYZB.js +0 -2
- package/dist/recording-banner-SRLPSTFP.js +0 -3
- package/dist/registry-CPQHW2L2.js +0 -2
- package/dist/revert-6BBBK3I4.js +0 -2
- package/dist/review-cmd-BMJQZ6XJ.js +0 -5
- package/dist/run-TURFDLC6.js +0 -2
- package/dist/run-UDP5VPYS.js +0 -2
- package/dist/run-test-md-MRYNFNPO.js +0 -17
- package/dist/skill-installer-CVJ5VTEJ.js +0 -3
- package/dist/store-guard-XQ5MSUB2.js +0 -2
- package/dist/sync-cmd-5INKTZN2.js +0 -2
- package/dist/sync-setup-4R54VRAO.js +0 -2
- package/dist/tcg-generate-2BOPGRM6.js +0 -2
- package/dist/testmd-actions-2CPJZAC2.js +0 -2
- package/dist/token-refresh-NTE4LQRN.js +0 -2
- package/dist/verdicts-EMCYGQWM.js +0 -2
- package/dist/walk-session-MUGS6CZY.js +0 -2
- package/dist/with-telemetry-3T53GIQC.js +0 -2
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { createRequire } from 'module'; const require = createRequire(import.meta.url);
|
|
2
|
-
import{d as G,f as q,h as H}from"./chunk-
|
|
2
|
+
import{d as G,f as q,h as H}from"./chunk-RSXCS474.js";import{a as j,b as z,c as K}from"./chunk-MTCLFYNH.js";import{d as B,f as O}from"./chunk-3YBT4UGQ.js";import{a as N}from"./chunk-MMBBQ4OZ.js";import{b as F,c as $,j as R}from"./chunk-TMOSERKN.js";import{a as L}from"./chunk-TZXXJWHA.js";import{n as T}from"./chunk-RSSOJ3L2.js";import{a as Y,b as C,c as V}from"./chunk-5UHM7CKR.js";import{h as J}from"./chunk-TAOHYWEO.js";import{e as E}from"./chunk-Z7S3IWUX.js";import{b as M}from"./chunk-PHR2OSWD.js";function X(e){return e.kind==="simulator"?e.id:e.virtualName??e.id}function Z(e,r,t={}){let o={platform:e.platform,udid:e.id,target_kind:e.kind};return r&&(o.app_package=r),t.noReset!==void 0&&(o.no_reset=t.noReset),t.appiumUrl&&(o.appium_url=t.appiumUrl),e.platform==="android"&&t.autoGrantPermissions!==void 0&&(o.auto_grant_permissions=t.autoGrantPermissions),e.platform==="ios"&&t.autoAcceptAlerts!==void 0&&(o.auto_accept_alerts=t.autoAcceptAlerts),o}function Q(e=process.env){let r=e.KANE_APPIUM_URL?.trim();return r||null}import{createHash as De}from"crypto";import{readdir as ke,stat as xe}from"fs/promises";import{basename as g,extname as Ie,join as Ue,relative as Se}from"path";import{createHash as ge}from"crypto";import{createReadStream as fe}from"fs";import{mkdir as me,readFile as he,rename as ve,writeFile as we}from"fs/promises";import{dirname as be,join as ye}from"path";var Pe=60,Te=5;function W(){return{entries:[]}}function ee(){return ye(M,"mobile","app-cache.json")}async function A(e){let r=ge("sha256");for await(let t of fe(e))r.update(t);return r.digest("hex")}function Ce(){return{readFile:e=>he(e,"utf8"),writeFile:async(e,r)=>{await me(be(e),{recursive:!0});let t=`${e}.tmp`;await we(t,r),await ve(t,e)},hashFile:A,now:()=>new Date}}function D(e){if(!e)return;let r=/\/(\d{4})\/(\d{2})\/(\d{2})\//.exec(e);if(!r)return;let[,t,o,a]=r,s=new Date(`${t}-${o}-${a}T00:00:00Z`);return Number.isNaN(s.getTime())?void 0:s.toISOString()}function Ae(e,r){if(!e.storedAt)return!0;let t=new Date(e.storedAt).getTime();return Number.isNaN(t)?!0:(r.getTime()-t)/864e5>=Pe-Te}var u=class{deps;constructor(r={}){this.deps={...Ce(),...r}}async read(){try{let r=JSON.parse(await this.deps.readFile(ee()));if(!r||typeof r!="object")return W();let t=r;return{entries:Array.isArray(t.entries)?t.entries:[]}}catch{return W()}}async write(r){await this.deps.writeFile(ee(),JSON.stringify(r,null,2))}async hashOf(r){return this.deps.hashFile(r)}async lookup(r){return(await this.read()).entries.find(o=>o.sha256===r.sha256&&o.env===r.env&&o.orgId===r.orgId&&o.type===r.type)}async remember(r){let t=await this.read();t.entries=[...t.entries.filter(o=>!(o.sha256===r.sha256&&o.env===r.env&&o.orgId===r.orgId&&o.type===r.type)),r],await this.write(t)}async forget(r){let t=await this.read(),o=t.entries.length;t.entries=t.entries.filter(a=>!(a.sha256===r.sha256&&a.env===r.env&&a.orgId===r.orgId&&a.type===r.type)),t.entries.length!==o&&await this.write(t)}isNearExpiry(r){return Ae(r,this.deps.now())}};var re={emulator:[".apk"],simulator:[".zip"]};function te(e){return e.skipped===!0}function _e(e,r){let t=Ie(e).toLowerCase();return t===".ipa"?`${g(e)} is a device build \u2014 .ipa is not accepted for ${r} runs.`:re[r].includes(t)?null:`${g(e)} cannot be uploaded for a ${r} run \u2014 expected one of ${re[r].join(", ")}.`}async function k(e,r){if(!(await xe(e)).isDirectory())return r.hashOf(e);let o=[],a=async p=>{for(let i of await ke(p,{withFileTypes:!0})){let n=Ue(p,i.name);i.isDirectory()?await a(n):i.isFile()&&o.push(n)}};await a(e),o.sort();let s=De("sha256");for(let p of o)s.update(Se(e,p)),s.update("\0"),s.update(await A(p)),s.update("\0");return s.digest("hex")}async function oe(e){let r=_e(e.path,e.type);if(r)return{skipped:!0,reason:r};let t=e.cache??new u,o=e.client??new J(e.baseUrl,{...e.auth,orgId:e.orgId}),a;try{a=await k(e.path,t)}catch(i){return{skipped:!0,reason:`could not read ${g(e.path)}: ${i.message}`}}let s={sha256:a,env:e.env,orgId:e.orgId,type:e.type},p=await t.lookup(s);if(p){if(await o.liveness(p.appId)!=="gone")return{appId:p.appId,...p.appUrl?{appUrl:p.appUrl}:{},fromCache:!0};e.onProgress?.(`${p.appId} is no longer in the cloud \u2014 uploading again`),await t.forget(s)}try{e.onProgress?.(`uploading ${g(e.path)}\u2026`);let i=await o.upload(e.path,e.type);return await t.remember({sha256:a,env:e.env,orgId:e.orgId,type:e.type,appId:i.appId,...i.appUrl?{appUrl:i.appUrl}:{},...D(i.url)?{storedAt:D(i.url)}:{},sourcePath:e.path}),e.onProgress?.(i.cached?`${g(e.path)} already in the cloud (${i.appId})`:`${g(e.path)} uploaded (${i.appId})`),{appId:i.appId,...i.appUrl?{appUrl:i.appUrl}:{},fromCache:!1}}catch(i){return{skipped:!0,reason:i.message}}}function v(e){return`${e.platform}|${X(e)}`}var m=new Map,ae=new Set;function ie(e){return ae.has(v(e))}function nr(e,r,t){r.state==="stopped"&&(m.has(v(r))||se(e,r,t))}async function ne(e,r,t){let o=m.get(v(r));return o?(t?.(`waiting for ${r.displayName} to finish booting\u2026`),o):se(e,r,t)}function se(e,r,t){let o=v(r),a=e.prepare(r,t);m.set(o,a),r.state==="stopped"&&a.then(()=>ae.add(o),()=>{});let s=()=>{m.get(o)===a&&m.delete(o)};return a.then(s,s),a.catch(()=>{}),a}import{basename as Me}from"path";import{spawnSync as Ee}from"child_process";async function Fe(e,r,t){if(!e.teardownPlan||!t.appPackage&&!t.shutdown)return;let o;try{o=await e.teardownPlan(r,t)}catch{return}o.length!==0&&T(`device:${r.id}`,()=>{G({udid:r.id,displayName:r.displayName});for(let a of o)try{Ee(a.file,a.args,{timeout:3e4,stdio:"ignore"})}catch{}})}var pe={emulator:[".apk"],simulator:[".zip"]};async function $e(e,r,t,o){if(e.kind==="package")return e;if(e.kind==="app_id"){let a=r.cloudUpload;if(!a)throw new Error(`${e.value} is an app id, which needs an account to download it. Log in, or pass a path to a local build instead.`);let s=await V({appId:e.value,baseUrl:a.baseUrl,auth:a.auth,...pe[t]?{accepts:pe[t]}:{},...o?{onProgress:o}:{}}),p=I(s.path);if(!p||p.kind==="app_id")throw new Error(`${s.name} is not a build this CLI can install (from ${e.value}).`);return p}try{let a=new u,s=await k(e.value,a),p=new Y;await p.find(s)||o?.(`copying ${Me(e.value)} into the local app store\u2026`);let n=await p.put({key:s,sourcePath:e.value,source:"local"});return{...e,value:n.path}}catch{return e}}function Re(e){T(`appium:${e}`,()=>{H({deviceClass:e,owner:process.pid})})}var x=class extends Error{constructor(r){super(r),this.name="MobileHostUnsupportedError"}},w=class extends Error{constructor(t,o){super(t);this.doctorText=o;this.name="MobilePreflightError"}};async function Ne(e,r,t){let o=t.cloudUpload,a=await oe({path:e,type:r,env:o.env,orgId:o.orgId,userId:o.userId,auth:o.auth,baseUrl:o.baseUrl,...t.onProgress?{onProgress:t.onProgress}:{}});if(te(a)){t.onProgress?.(`app not uploaded \u2014 ${a.reason}`);return}return a.appId}var Be="app must be a build (.apk for an emulator, .zip of the .app bundle for a simulator) or an app id from your cloud uploads \u2014 a package id names something already installed on one device, so it cannot be uploaded, exported as code, or run anywhere else.",de=/\.(apk|zip)$/i;function I(e){let r=e.trim();if(C(r))return{kind:"app_id",value:r};let t=de.exec(r)?.[1]?.toLowerCase();return t?{kind:t,value:r}:null}function Oe(e){return!!e&&(de.test(e)||C(e.trim()))}function Le(e){return e.filter(r=>r.required&&r.status==="fail")}function je(e,r){return!!r&&E(e,r)}async function Dr(e){let r=L();if(!r.supported)throw new x(r.reason);let t=Q()??e.appiumUrl??e.defaults?.appium_url,o=!!(e.agent||!e.interactive),a=R(),s=!!N();o&&e.platform?.toLowerCase()!=="ios"&&!s&&((await a.status("emulator")).installed||await a.ensure("emulator",{automatic:!0,onProgress:e.onProgress}));let p=await j(e.platform,{appiumUrl:t});if(K(p)){let d=p.sections.flatMap(P=>Le(P.checks)).map(P=>P.label).join(", ");throw new w(`Mobile toolchain not ready (${d}). Run \`kane-cli doctor --target ${e.platform?.toLowerCase()==="ios"?"simulator":e.platform?.toLowerCase()==="android"?"emulator":"<emulator|simulator>"}\` for details.`,z(p))}let i=await O({device:e.device,platform:e.platform,defaultTarget:e.defaults?.default_target,interactive:e.interactive}),n;if(i.ok)n=i.target;else if(i.reason==="needs-picker"&&e.pickTarget){let d=await e.pickTarget(i.candidates);if(!d)throw new Error("Target selection cancelled");n=d}else throw new Error(i.message);let f=B(n.platform);if(!f)throw new Error(`No provider for platform "${n.platform}"`);let l=F(n);if(!l)throw new Error(`No managed dependencies serve ${n.platform} ${n.kind} targets yet.`);if(!(s&&n.platform.toLowerCase()==="android"))try{await a.ensure(l,{automatic:o,onProgress:e.onProgress})}catch(d){throw d instanceof $?new w(d.message,d.message):d}let le=n.state!=="ready"||ie(n);n=await ne(f,n,e.onProgress);let ce=await q(l,{...t?{appiumUrl:t}:{},device:{udid:n.id,displayName:n.displayName},onProgress:e.onProgress});Re(l);let U=je(n,e.defaults?.default_target)?e.defaults?.default_app:void 0,h=e.app??(Oe(U)?U:void 0);if(e.app&&!I(e.app))throw new Error(`${e.app}: ${Be}`);let c=h?I(h):null,S=c?await $e(c,e,l,e.onProgress):null,b=S?await f.ensureApp(n,S,e.onProgress):void 0,y=c?.kind==="app_id"?c.value:e.cloudUpload&&c&&h?await Ne(c.value,l,e):void 0;await Fe(f,n,{shutdown:le,...b?{appPackage:b}:{}});let ue=Z(n,b,{noReset:e.noReset??e.defaults?.no_reset,appiumUrl:ce.url,autoGrantPermissions:e.defaults?.auto_grant_permissions,autoAcceptAlerts:e.defaults?.auto_accept_alerts}),_=y??h;return{device:ue,target:n,provider:f,...y?{appId:y}:{},..._?{appRef:_}:{}}}export{X as a,Z as b,te as c,_e as d,oe as e,nr as f,ne as g,x as h,w as i,Be as j,I as k,Oe as l,Dr as m};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { createRequire } from 'module'; const require = createRequire(import.meta.url);
|
|
2
|
-
import{b as V}from"./chunk-
|
|
2
|
+
import{b as V}from"./chunk-KDNNMU7Q.js";import{a as Y}from"./chunk-Q2F5QB2W.js";import{b as C,c as E}from"./chunk-VVOKM2VO.js";import{z as J}from"./chunk-IICT4VOU.js";import{M as K,c as $,e as G,g as B,m as j,x as U}from"./chunk-RDHWNSDP.js";import{a as L,f as P,h as T}from"./chunk-XLSOQLVT.js";import{existsSync as ve,mkdirSync as he,readFileSync as Ee,writeFileSync as we}from"fs";import{basename as A,dirname as Ie,extname as ee,join as ke}from"path";import{spawnSync as oe}from"child_process";import{appendFileSync as re,existsSync as O,readFileSync as z}from"fs";import{dirname as se,join as H}from"path";var ae="# kane-cli context store: shared through a location, never merged with git",ce=".context/",de=new Set([".context",".context/","/.context","/.context/"]);function X(e,n={}){let t=n.env??process.env;if(t.KANE_CONTEXT_GITIGNORE==="0")return{outcome:"skipped"};try{if(!le(e))return{outcome:"not-a-repo"};let i=H(e,".gitignore");if(me(i))return{outcome:"already",path:i};if((n.checkIgnore??(o=>pe(o,t)))(e)===!0)return{outcome:"already"};let g="";if(O(i)){let o=z(i);o.length>0&&o[o.length-1]!==10&&(g=`
|
|
3
3
|
`)}return re(i,`${g}${ae}
|
|
4
4
|
${ce}
|
|
5
5
|
`),{outcome:"added",path:i}}catch(i){return{outcome:"failed",reason:i instanceof Error?i.message:String(i)}}}function le(e){let n=e;for(;;){if(O(H(n,".git")))return!0;let t=se(n);if(t===n)return!1;n=t}}function me(e){return O(e)?z(e,"utf8").split(/\r?\n/).some(n=>de.has(n.trim())):!1}function pe(e,n){let t=oe("git",["-C",e,"check-ignore","-q",".context"],{env:{...n,GIT_TERMINAL_PROMPT:"0"},stdio:"ignore",timeout:5e3});return t.error||t.status===null?null:t.status===0?!0:t.status===1?!1:null}import{extname as ue}from"path";var fe={kind:"jira",media_type:"application/x-kane-jira-envelope",extensions:[],cite:"verbatim",maxBytes:2e6},ge={kind:"confluence",media_type:"application/x-kane-confluence-envelope",extensions:[],cite:"verbatim",maxBytes:2e6},De={kind:"web",media_type:"application/x-kane-web-envelope",extensions:[],cite:"verbatim",maxBytes:2e6},xe={kind:"linear",media_type:"application/x-kane-linear-envelope",extensions:[],cite:"verbatim",maxBytes:2e6},_e={kind:"linear-doc",media_type:"application/x-kane-linear-doc-envelope",extensions:[],cite:"verbatim",maxBytes:2e6},q=[{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(ye)?"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,ge,xe,_e],ye=Buffer.from([208,207,17,224,161,177,26,225]),S={pdf:"pdf",docx:"docx",jira:"jira",confluence:"confluence",web:"web",linear:"linear","linear-doc":"linearDoc"},Fe=new Set(Object.keys(S));function W(e){let n=ue(e).toLowerCase(),t=q.find(i=>i.extensions.includes(n));return t?{ok:!0,media:t}:{ok:!1,code:"UNSUPPORTED_MEDIA",allowlist:q.flatMap(i=>i.extensions)}}function w(e){return e>=1024*1024?`${(e/(1024*1024)).toFixed(1)} MB`:`${Math.max(1,Math.round(e/1024))} KB`}function Me(e,n,t){return Y({source_id:e,source_cid:"sha256:".padEnd(71,"0"),doc_kind:n,numbered_text:V(t)})}var Q=2e3;function Be(e){let t=A(e,ee(e)).toLowerCase().replace(/[^a-z0-9._-]+/g,"-").replace(/^[^a-z0-9]+/,"");return B(t),t}function qe(e){let n=/^(.*?)[-_.]?v?\d+$/.exec(e);if(!n)return null;let t=(n[1]??"").replace(/[-_.]+$/,"");return t.length>0&&t!==e?t:null}function te(e){let n=ke(e,"meta.json");return ve(n)?{created:!1}:(he(e,{recursive:!0}),we(n,JSON.stringify({schema:L,canonicalizer:"v1"},null,2)+`
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import { createRequire } from 'module'; const require = createRequire(import.meta.url);
|
|
2
|
+
import{b as G}from"./chunk-HS7OIRGU.js";import{a as A,b as C}from"./chunk-UJZZDPDY.js";import{a as x}from"./chunk-BZAGVBCX.js";import{a as S}from"./chunk-LSDWPG6C.js";import{P as v,Q as w,S as U}from"./chunk-6CYF7Q5W.js";import{B as $,z as E}from"./chunk-IICT4VOU.js";import{f as d,g as m}from"./chunk-XLSOQLVT.js";var k=new Set([d.USECASE,d.SCENARIO,d.AC,d.TEST]);function b(e,t){return!e.superseded.has(t)&&e.trust.get(t)!=="archived"}function h(e,t,n){let s=e.edgesFrom(t).find(o=>o.type===n);return s?e.tipOf(s.dst):null}function O(e,t,n){if(n===d.USECASE)return t;if(n===d.SCENARIO)return h(e,t,m.BELONGS_TO);if(n===d.AC){let s=h(e,t,m.SCOPED_TO);return s?e.nodeLabel.get(s)===d.USECASE?s:h(e,s,m.BELONGS_TO):null}if(n===d.TEST){let s=h(e,t,m.AUTOMATES);return s?h(e,s,m.BELONGS_TO):null}return null}function L(e,t){let n=e.nameOf.get(t);if(n)return n;for(let[s,o]of e.names)if(e.tipOf(o)===t)return s;return t}function F(e,t){return{ucTip:t,display:L(e,t),seamRef:e.nameOf.get(t)??t}}function N(e,t){let n=e.resolve(t);if(!n)return{ok:!1,message:`unknown ref '${t}' \u2014 no test/scenario/ac/use-case by that id or cid`};let s=n.tip,o=e.nodeLabel.get(s);if(!o||!k.has(o))return{ok:!1,message:`'${t}' is a ${o??"missing node"} \u2014 evolve takes a test, scenario, acceptance criterion, or use-case`};let a=O(e,s,o);return!a||e.nodeLabel.get(a)!==d.USECASE?{ok:!1,message:`cannot resolve '${t}' to a parent use-case \u2014 its ${o} chain is broken`}:e.superseded.has(a)?{ok:!1,message:`use-case ${L(e,a)} was removed \u2014 nothing to evolve`}:{ok:!0,target:F(e,a)}}function Z(e,t){return D(e,t)}function D(e,t){let n=[];for(let{cid:o}of e.byLabel(d.SCENARIO)){if(!b(e,o)||!e.edgesFrom(o).some(r=>r.type===m.BELONGS_TO&&e.tipOf(r.dst)===t))continue;let a=e.edgesInto(o).filter(r=>r.type===m.AUTOMATES&&b(e,r.src));if(a.length===0)n.push({scenario:o,test:null});else for(let r of a)n.push({scenario:o,test:r.src})}let s=new Map;for(let{cid:o}of e.byLabel(d.AC)){if(!b(e,o)||O(e,o,d.AC)!==t)continue;let a=e.edgesInto(o).filter(r=>r.type===m.VERIFIES&&b(e,r.src)).map(r=>r.src).sort();s.set(o,a)}return{pairs:n,verifies:s}}function B(e,t){let n=r=>`${r.scenario}\0${r.test??""}`,s=new Set(e.pairs.map(n)),o=new Set(t.pairs.map(n)),a=[];for(let[r,i]of e.verifies){let u=t.verifies.get(r);u&&(i.length===u.length&&i.every((l,g)=>l===u[g])||a.push({ac:r,before:i,after:u}))}return{superseded:e.pairs.filter(r=>!o.has(n(r))),minted:t.pairs.filter(r=>!s.has(n(r))),retained:t.pairs.filter(r=>s.has(n(r))),moves:a}}function _(e,t,n,s,o){let a=i=>t.nameOf.get(i)??i,r=i=>` - ${a(i.scenario)} \xB7 ${i.test?a(i.test):"(no test)"}`;e.out(`evolved: use-case ${n} \u2014 design record ${s.before} \u2192 ${s.after}`),e.out(` superseded ${o.superseded.length} pair(s)`);for(let i of o.superseded)e.out(r(i));e.out(` minted ${o.minted.length} pair(s)`);for(let i of o.minted)e.out(r(i));e.out(` retained ${o.retained.length} pair(s)`);for(let i of o.retained)e.out(r(i));if(o.moves.length===0)e.out(" verifies none moved");else{e.out(" verifies moved:");for(let i of o.moves){let u=l=>l.length>0?l.map(a).join(" + "):"(none)";e.out(` - ${a(i.ac)}: ${u(i.before)} \u2192 ${u(i.after)}`)}}}async function R(e,t,n,s,o,a,r){let i=E(e),u=S(i,t.ucTip);if(!u)return a==="batch"?(s.out(`note: ${t.display} has no design output \u2014 nothing to evolve; run kane-cli design tests --use-case ${t.display} first`),{code:0,outcome:"no-design"}):(v(s,`nothing to evolve \u2014 run kane-cli design tests --use-case ${t.display} first (no design output)`),{code:2,outcome:"no-design"});let l=D(i,t.ucTip),g=[`evolve ${t.display}`,` re-designs use-case ${t.display}`,` affects ${l.pairs.length} pair(s)`,...n.because?[` because ${n.because}`]:[]];if(n.yes)for(let y of g)s.out(y);else{for(let I of g)s.out(I);if(!await s.confirm(`proceed with the re-design of ${t.display}?`))return s.out(a==="batch"?`skipped ${t.display}`:"declined \u2014 nothing evolved"),{code:0,outcome:"declined"}}let p=G(e,i,t.ucTip,n.because),c=await A(r,{verb:"evolve",subject:t.display},()=>o(t.seamRef,{yes:!!n.yes,...n.mode?{mode:n.mode}:{},...n.because?{because:n.because}:{},...p!==void 0?{changeDelta:p.change_delta,priorDesign:p.prior_design}:{}}),y=>({ok:y===0,exitCode:y}));if(c===3)return s.out(`design session for ${t.display} paused \u2014 resume with \`kane-cli design tests --resume\`, then re-run evolve for the diff`),{code:c,outcome:"paused"};if(c!==0)return v(s,`design run for ${t.display} ended with exit code ${c} \u2014 no diff to report`),{code:c,outcome:"failed"};let f=E(e),T=f.tipOf(t.ucTip),P=S(f,T)?.seq;return _(s,f,t.display,{before:u.seq,after:P??"?"},B(l,D(f,T))),{code:0,outcome:"evolved"}}function j(e){let t=new Map,n=0;for(let{cid:o,state:a}of e.staleList()){if(a==="superseded")continue;let r=e.nodeLabel.get(o);if(!r||!k.has(r)||!b(e,o)||!$(e,o))continue;let i=O(e,o,r);!i||e.nodeLabel.get(i)!==d.USECASE||e.superseded.has(i)||(n++,t.has(i)||t.set(i,F(e,i)))}return{targets:[...t.values()].sort((o,a)=>o.display<a.display?-1:o.display>a.display?1:0),staleCount:n}}function M(e,t){for(let{cid:n,state:s}of e.staleList()){if(s==="superseded")continue;let o=e.nodeLabel.get(n);if(!(!o||!k.has(o)||!b(e,n))&&$(e,n)&&O(e,n,o)===t)return!0}return!1}async function q(e,t,n,s={},o=process.cwd()){if(e&&t.fromStale)return v(n,"pass a <ref> OR --from-stale, not both"),2;if(!e&&!t.fromStale)return v(n,"evolve needs a <ref> or --from-stale"),2;let a=w(o,n);if(!a)return 2;let r=s.runDesignForUc??Y,i=s.onChild??(n.isTTY?V(n):void 0);n.out(`evolving ${e??"stale use-cases"}: reading the graph\u2026`);let u=E(a),l,g=null;if(e){let c=N(u,e);if(!c.ok)return v(n,c.message),2;if(!t.because&&S(u,c.target.ucTip)&&!M(u,c.target.ucTip))return v(n,`nothing changed underneath ${e} \u2014 its sources and requirements are current; use --because "<reason>" to re-design anyway`),2;l=[c.target]}else{let{targets:c,staleCount:f}=j(u);if(c.length===0)return n.out("nothing stale \u2014 nothing to evolve"),0;g=`from-stale: ${f} stale node(s) \u2192 ${c.length} use-case(s)`,l=c}if(!t.yes&&!n.isTTY)return v(n,"evolve needs a TTY \u2014 the blast-radius confirm is the point; headless evolution rides `kane-cli maintain reconcile`"),2;if(g&&n.out(g),e){let c=await R(a,l[0],t,n,r,"single",i);return c.outcome==="evolved"&&t.because&&x(a,{ts:new Date().toISOString(),command:"evolve",id:e,verdict:"gap-resolved-evolve",polarity:"preference",by:{kind:"human",id:process.env.USER??"operator"},target:e,reason:t.because}),c.code}let p=0;for(let c of l){let{code:f}=await R(a,c,t,n,r,"batch",i);f!==0&&p===0&&(p=f)}return p}function V(e){let t="",n="evolve";return s=>{s.kind==="start"?(t=s.subject,n=s.verb,e.out(`\u25CF ${C(s.verb).ing} ${s.subject}`)):s.kind==="end"&&e.out(s.ok?`\u25CF ${C(n).ed} ${t} \u2014 ${s.durS}s`:`\u25CF ${n} failed \u2014 ${s.exitCode!=null?`exited ${s.exitCode}`:"error"}${s.fixCmd?` \xB7 ${s.fixCmd}`:""}`)}}var Y=async(e,t)=>{let{designTestsCommand:n}=await import("./bind-LWN72YES.js"),s=()=>n({useCase:e,force:!0,...t.mode?{mode:t.mode}:t.yes?{mode:"override"}:{},...t.because?{because:t.because}:{},...t.changeDelta!==void 0?{changeDelta:t.changeDelta}:{},...t.priorDesign!==void 0?{priorDesign:t.priorDesign}:{}});if(t.mode!=="agent")return s();let o=process.stdout.write;process.stdout.write=((...a)=>!0);try{return await s()}finally{process.stdout.write=o}};async function ee(e,t){return q(e,t,U(),{})}export{N as a,Z as b,R as c,j as d,q as e,Y as f,ee as g};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { createRequire } from 'module'; const require = createRequire(import.meta.url);
|
|
2
|
-
import{a as C,b as F,c as B}from"./chunk-
|
|
2
|
+
import{a as C,b as F,c as B}from"./chunk-WESMQEPO.js";import{f as w,g as h}from"./chunk-XLSOQLVT.js";var z={window:10,latest_only:!1,stale_at_run_weight:.5,counted_verdicts:["passed","failed"],accepted_oracle_modes:["authored","inferred","runtime-derived"],verified_threshold:.5,min_passes:1,risk_weights:{high:3}},Y={window:10,latest_only:!0,stale_at_run_weight:0,counted_verdicts:["passed","failed"],accepted_oracle_modes:["authored","inferred"],verified_threshold:1,min_passes:1,risk_weights:{high:3}},K={lenient:z,strict:Y};function Q(e,t){let s=e.slice(-t.window),o=new Map;for(let d of s)o.set(d.execution_id,d);let c=[...o.values()].sort((d,a)=>d.ts<a.ts?-1:d.ts>a.ts?1:d.execution_id<a.execution_id?-1:1).filter(d=>t.counted_verdicts.includes(d.verdict)&&t.accepted_oracle_modes.includes(d.oracle_mode));return t.latest_only&&c.length>1?[c[c.length-1]]:c}function Z(e,t){let s=Q(e,t),o=0,c=0,d=0;for(let l of s){let b=l.stale_at_run?t.stale_at_run_weight:1;o+=b,l.verdict==="passed"&&(c+=b,d++)}let a=o>0?Math.round(c/o*100)/100:0;return{score:a,verified:a>=t.verified_threshold&&d>=t.min_passes,passes:d,counted:s.length}}function U(e,t){let s=0,o=0;for(let c of e){let d=t[c.risk]??1;s+=d,c.verified&&(o+=d)}return s>0?Math.round(o/s*100):0}function ee(e,t){let s={},o={},c=[],d=0;for(let a of e.usecases){let l=[];for(let i of a.acceptance_criteria){let _=Z(i.executions??[],t);s[i.id]=_;let m={risk:i.risk,verified:_.verified};l.push(m),c.push(m)}let b=l.filter(i=>i.verified).length,n=l.length>0&&b===l.length?"covered":b>0?"partial":"uncovered";n==="covered"&&d++,o[a.id]={status:n,pct:U(l,t.risk_weights)}}return{config:t,acs:s,usecases:o,summary:{coverage_pct:U(c,t.risk_weights),acs_verified:`${c.filter(a=>a.verified).length}/${c.length}`,usecases_covered:`${d}/${e.usecases.length}`,uncovered:Object.values(o).filter(a=>a.status==="uncovered").length}}}function pe(e,t=K){return{rollup_version:1,stale_sources:new Set(e.usecases.flatMap(s=>s.stale_sources??[])).size,high_risk_gaps:(e.gaps??[]).filter(s=>s.risk==="high").length,aspects:Object.fromEntries(Object.entries(t).map(([s,o])=>[s,ee(e,o)]))}}var P={high:3};function ge(e){let t=e.byLabel(w.USECASE).filter(({cid:n})=>C(e,n)),s=new Map(t.map(({cid:n})=>[n,[]]));for(let{cid:n,content:i}of e.byLabel(w.AC)){if(!C(e,n))continue;let _=B(e,n),m=_?s.get(_):void 0;m&&m.push({risk:String(i.risk??""),designed:F(e,n),stale:e.stale(n)!=="fresh"})}let o={},c=[],d=0,a=0,l=0,b=0;for(let{cid:n}of t){let i=s.get(n),_=i.map(v=>({risk:v.risk,verified:v.designed}));c.push(..._),a+=i.length;let m=i.filter(v=>v.designed).length;d+=m;let x=i.filter(v=>v.stale).length,A=e.edgesInto(n).some(v=>v.type===h.BELONGS_TO&&C(e,v.src));A||b++;let k=i.length===0||m===0?"undesigned":m===i.length&&x===0&&A?"complete":"partial";k==="complete"&&l++,o[e.displayNameOf(n)??n]={pct:U(_,P),status:k,staleAcs:x}}return{pct:U(c,P),acs_designed:`${d}/${a}`,usecases_complete:`${l}/${t.length}`,ucs_needing_scenarios:b,perUc:o,config:{criterion:"live_verifies_edge",risk_weights:{high:3},freshness:"not_discounted"}}}var y=(e,t)=>e.nameOf.get(t)??t,R=(e,t)=>!e.superseded.has(t);function te(e,t){return e.byLabel(w.SCENARIO).filter(({cid:s})=>R(e,s)).filter(({cid:s})=>e.edgesFrom(s).some(o=>o.type===h.BELONGS_TO&&e.tipOf(o.dst)===t)).map(({cid:s})=>s)}function se(e,t,s){let o=[];for(let{cid:c}of e.byLabel(w.AC)){if(!R(e,c))continue;let d=e.edgesFrom(c).find(l=>l.type===h.SCOPED_TO);if(!d)continue;let a=e.tipOf(d.dst);a===t?o.push({cid:c,scope:{type:"usecase",ref:y(e,t)}}):s.has(a)&&o.push({cid:c,scope:{type:"scenario",ref:y(e,a)}})}return o}function ne(e){let t=e.filter(s=>s!==void 0).map(s=>s.execution);return t.includes("failed")?"failed":t.includes("blocked")?"blocked":t.includes("passed")?"passed":"not-run"}var ie={passed:"passed",failed:"failed",broken:"blocked",skipped:"not-run"};function re(e,t,s,o){return t?.find(c=>c.ac_cid&&s?e.tipOf(c.ac_cid)===e.tipOf(s):c.ac_ref===o)?.verdict}function oe(e,t){let s=t.flatMap(o=>o?.acs??[]).filter(o=>o.ref===e).map(o=>ie[o.verdict]??"not-run");return s.length===0?ne(t):s.includes("failed")?"failed":s.includes("blocked")?"blocked":s.includes("passed")?"passed":"not-run"}function be(e){return ce(e,new Map)}function ce(e,t,s){let o=s?.scope==="run",c=[],d=new Set,a=new Map;for(let[n,i]of e.nameOf)a.set(e.tipOf(n)??n,i);let l=n=>a.get(n)??y(e,n);for(let{cid:n,content:i}of e.byLabel(w.USECASE)){if(!R(e,n)||e.trust.get(n)==="archived")continue;let _=e.tipOf(n),m=e.derivesInto(_).filter(r=>!e.superseded.has(r.ecid)),x=[...new Set(m.map(r=>String(r.props?.source_id??"")).filter(Boolean))].sort(),A=x.map(r=>{let p=e.heads.get(r);if(typeof p!="string")return{id:r};let f=e.getNode(p)?.content.blob;return{id:r,media_type:e.mediaOf(p).media_type,...typeof f=="string"?{cid:f}:{}}}),k=m[0],v=new Map;for(let r of m)r.props?.source_id&&r.props?.source_cid&&v.set(String(r.props.source_id),String(r.props.source_cid));let M=x.filter(r=>{let p=e.heads.get(r),f=v.get(r);return p!=null&&f!==void 0&&p!==f}).sort(),T=e.edgesFrom(n).filter(r=>r.type===h.DEPENDS_ON&&!e.superseded.has(r.ecid)).map(r=>ue(e,r.dst)).filter(r=>r!==null).sort(),D=te(e,_),W=new Set(D),q=D.map(r=>{let p=e.getNode(r)?.content??{},f=e.edgesFrom(r).filter(S=>S.type===h.EXERCISES&&!e.superseded.has(S.ecid)&&R(e,e.tipOf(S.dst))).map(S=>y(e,e.tipOf(S.dst))).sort();return{id:y(e,r),case_type:String(p.case_type??""),intent:String(p.intent??""),exercises:f}}).sort((r,p)=>r.id<p.id?-1:1),L=!1,E=new Set([_]);for(let r of D)E.add(r);let H=se(e,_,W).map(({cid:r,scope:p})=>{let f=e.getNode(r)?.content??{},S=[...new Set(e.edgesInto(r).filter(u=>u.type===h.VERIFIES&&!e.superseded.has(u.ecid)).map(u=>e.tipOf(u.src)).filter(u=>!!u&&R(e,u)))].sort((u,g)=>l(u)<l(g)?-1:1),G=S.length>0,N=S.map(u=>t.get(`id:${l(u)}`)??t.get(`def:${String(e.getNode(u)?.content.definitionId??"")}`)),$=N.some(u=>u!==void 0);$&&(L=!0),E.add(r);for(let u of S)E.add(u);let J=G&&!$?"unknown":e.stale(r)==="fresh"?"fresh":"stale",O=f.expected_answer??{},I=y(e,r),j=S.flatMap(u=>(e.execHistory?.(l(u))??[]).map(g=>({execution_id:String(g.execution_id),ts:String(g.started_at),verdict:String(re(e,g.per_ac,r,I)??g.verdict),stale_at_run:!!g.stale_at_run,oracle_mode:String(g.oracle_mode),...g.via_parent?{via_parent:String(g.via_parent)}:{}}))).sort((u,g)=>u.ts<g.ts?-1:1).slice(-10);return{id:I,text:String(f.text??""),risk:String(f.risk??""),scope:p,covered_by:S.map(u=>l(u)),...G?{link_type:"verifies"}:{},execution:oe(I,N),fresh:J,derived:!!f.derived,...f.kind||f.expected_answer?{expected_answer:{...f.kind?{kind:String(f.kind)}:{},statement:String(f.text??""),...O.operator!==void 0?{operator:O.operator}:{},...O.operand!==void 0?{operand:O.operand}:{}}}:{},...G?{satisfied_by:S.map((u,g)=>{let X=e.getNode(u)?.content.check??{},V=N[g]?.steps?.checkStepId??X.verified_against;return{test:l(u),...V?{step:V}:{}}})}:{},...j.length?{executions:j}:{}}}).sort((r,p)=>r.id<p.id?-1:1);if(!(o&&!L)){for(let r of E)d.add(r);c.push({id:y(e,n),title:String(i.title??""),...i.description||i.summary?{description:String(i.description??i.summary)}:{},...Array.isArray(i.actors)&&i.actors.length?{actors:i.actors.map(String)}:{},...i.value?{value:String(i.value)}:{},risk:String(i.risk??""),status:e.trust.get(n)==="trusted"?"approved":"draft",sources:A,...M.length?{stale_sources:M}:{},...T.length?{depends_on:T}:{},...k?{provenance:{derived_from:`${String(k.props?.source_id??"")}#${String(k.props?.anchor??"")}`}}:{},scenarios:q,acceptance_criteria:H})}}c.sort((n,i)=>n.id<i.id?-1:1);let b=e.byLabel(w.GAP).filter(({cid:n})=>R(e,n)&&e.trust.get(n)!=="archived").filter(({content:n})=>{if(!o||typeof n.uc=="string"&&d.has(e.tipOf(n.uc)))return!0;let i=typeof n.ref=="string"?e.resolve(n.ref):null;return i!==null&&d.has(e.tipOf(i.cid))}).map(({cid:n,content:i})=>({ref:y(e,n),kind:String(i.kind??""),...i.risk?{risk:String(i.risk)}:{},...i.question?{question:de(i.question)}:{}})).sort((n,i)=>n.ref<i.ref?-1:1);return{usecases:c,...b.length?{gaps:b}:{},...o?{scope:"run"}:{}}}function de(e){if(typeof e=="string")return e;let t=e?.header;return typeof t=="string"?t:""}function ue(e,t){let s=e.tipOf(t);return e.nodeLabel.get(s)!==w.USECASE||!R(e,s)?null:y(e,s)}export{K as a,Q as b,Z as c,pe as d,ge as e,re as f,be as g,ce as h};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { createRequire } from 'module'; const require = createRequire(import.meta.url);
|
|
2
|
-
import{a as n}from"./chunk-
|
|
2
|
+
import{a as n}from"./chunk-PHR2OSWD.js";import{createHash as _}from"crypto";import{existsSync as m,readFileSync as u}from"fs";import{dirname as T,join as f,resolve as o}from"path";import{fileURLToPath as E}from"url";var s=T(E(import.meta.url)),l=2;function p(e,r){let t=_("sha256");return t.update(`kane-assurance-contract
|
|
3
3
|
`),t.update(e),t.update(`
|
|
4
4
|
agent_state_schema=${r}`),"sha256:"+t.digest("hex")}function d(){return[o(s,".."),o(s,"../../..")]}function i(){return"sha256:4f00de27d151118e79aafd46ebe51bb69ce7dd9fabe647124c62f2d187e11aa7"}var a=class extends Error{constructor(t,c){super(`agent/cli contract mismatch (cli ${t||"<unset>"}, agent ${c||"<unset>"}) \u2014 rebuild or reinstall the stale half`);this.expected=t;this.actual=c;this.name="PairMismatchError"}};function I(){return{TESTMUAI_CONTRACT_DIGEST:i(),TESTMUAI_CLIENT_VERSION:process.env.KANE_DEV_FORCE_CLIENT_RELEASE??`kane-cli/${n}`}}export{a,I as b};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { createRequire } from 'module'; const require = createRequire(import.meta.url);
|
|
2
|
+
import{e as z}from"./chunk-EHN5HTUD.js";import{b as X,c as v,e as W,i as Y,j as Z,k as ee,l as te,m as E,o as ne}from"./chunk-L45HDSJ7.js";import{a as Q}from"./chunk-CAOZKSQ3.js";import{d as q}from"./chunk-PHR2OSWD.js";import{copyFileSync as Se,cpSync as Re,existsSync as P,mkdirSync as xe,readFileSync as qe,readdirSync as Ie,rmSync as ze,writeFileSync as Qe}from"fs";import{dirname as Xe,isAbsolute as Ye,join as R,relative as Ze,resolve as et}from"path";import{writeFileSync as we,mkdirSync as ve,readFileSync as Pe}from"fs";import{dirname as je,basename as se}from"path";function ie(e){let t=e.outPath??v(e.sourcePath);ve(je(t),{recursive:!0});let n=[];n.push("---"),n.push(`test: ../${se(e.sourcePath)}`),n.push(`status: ${e.overallStatus}`),n.push(`started: ${e.startedISO}`),n.push(`duration_s: ${e.durationS}`),n.push(`session_id: ${e.sessionId}`),n.push("---",""),n.push(`# ${e.title??se(e.sourcePath)} \u2014 Result`,"");for(let r=0;r<e.rootSteps.length;r++){let o=e.rootSteps[r],s=e.outcomes.find(l=>l.rootStepIndex===r+1);if(n.push(De(o,s)),s?.stepMd5&&n.push(`md5: ${s.stepMd5}`),s?.status==="failed"&&s.reason&&n.push(`Reason: ${s.reason}`),s?.softFailures?.length)for(let l of s.softFailures){let a=l.reason?`: ${l.reason}`:"";n.push(`\u26A0 optional sub-step ${l.subStepIndex} failed${a}`)}o.body.kind==="objective"&&s?.status!=="skipped"&&n.push(o.body.text),n.push("")}return we(t,n.join(`
|
|
3
|
+
`),"utf8"),t}function De(e,t){if(!t)return`## ${e.heading} (no outcome)`;let n=t.duration_s!=null?`${t.duration_s}s`:"\u2014";if(t.status==="skipped")return`## ${e.heading} \u23ED skipped`;let r=t.softFailed?" (optional)":"";if(t.refKind&&t.status==="passed"){let o=t.helperResultRelPath?` \u2192 ${t.helperResultRelPath}`:"";return`## ${e.heading} \u2713 passed (via @${t.refKind} ${t.refLabel} \u2014 ${t.inlinedCount} inlined steps, ${n}${o})`}if(t.refKind&&t.status==="failed"){let o=t.failedSubStepIndex&&t.failedSubStepIndex.length>0?` \u2014 at sub-step ${t.failedSubStepIndex.join(" \u2192 sub-step ")}`:"",s=t.helperResultRelPath?` \u2192 ${t.helperResultRelPath}`:"";return`## ${e.heading} \u2717 failed${r} (via @${t.refKind} ${t.refLabel}${o}, ${n}${s})`}return t.status==="passed"?`## ${e.heading} \u2713 passed (${n})`:`## ${e.heading} \u2717 failed${r} (${n})`}var $e=/^##\s+(.+?)\s+(✓ passed|✗ failed(?:\s+\(optional\))?|⏭ skipped)(?:\s+\((.*)\))?\s*$/,Fe=/via\s+@\w+\s+(\S+).*?(?:→\s+(\S+))?\s*$/,Oe=/^md5:\s+([a-f0-9]{32})\s*$/;function re(e,t){for(let n=t;n<e.length&&!/^##\s/.test(e[n]);n++){if(e[n].trim()==="")continue;let r=Oe.exec(e[n]);return r?r[1]:null}return null}function D(e){let n=Pe(e,"utf8").split(`
|
|
4
|
+
`),r="passed";if(n[0]?.trim()==="---")for(let s=1;s<n.length&&n[s].trim()!=="---";s++){let l=/^status:\s+(passed|failed|interrupted)\s*$/.exec(n[s]);l&&(r=l[1])}let o=[];for(let s=0;s<n.length;s++){let l=$e.exec(n[s]);if(!l)continue;let a=l[1],i=l[2],c=l[3]??"",f=i.startsWith("\u2713")?"passed":i.startsWith("\u23ED")?"skipped":"failed";if(/via\s+@/.test(c)){let m=Fe.exec(c),w=m?.[1]??"",x=m?.[2]??null;o.push({kind:"import",heading:a,status:f,md5:re(n,s+1),importPath:w,helperResultRelPath:x})}else o.push({kind:"objective",heading:a,status:f,md5:re(n,s+1)})}return{overallStatus:r,steps:o}}import{copyFileSync as oe,existsSync as H,mkdirSync as _e,writeFileSync as ae,promises as at}from"fs";import{join as $,dirname as de,basename as Ae}from"path";async function pe(e){for(let t=0;t<e.totalRunDirs;t++){let n=e.runIndex+t,r=$(e.sessionDir,"runs",String(n)),o=$(e.stagingStepDir,"flows",String(t));_e(o,{recursive:!0});let s=$(o,"actions.ndjson");if(e.packTestDir){let i=$(e.packTestDir,"logs",`${n}-actions.ndjson`);if(H(i)){oe(i,s);continue}let c=de(de(e.packTestDir)),f=Ae(e.packTestDir),S=H(c)?await z(c,`tests/${f}/logs/${n}-actions.ndjson`).catch(()=>null):null;ae(s,S??"");continue}let l=[$(r,"run-test","actions.ndjson"),$(r,"actions.ndjson")],a=!1;for(let i of l)if(H(i)){oe(i,s),a=!0;break}a||ae(s,"")}}import{existsSync as ue,readFileSync as ce,readdirSync as Ke}from"fs";import{join as F}from"path";function Te(e){if(e.action_type!=="upload_files")return null;let t=e.action_params?.media;if(!t||typeof t!="object")return null;let n=typeof t.media_id=="string"?t.media_id:"",r=typeof t.name=="string"?t.name:"",o=typeof t.media_url=="string"?t.media_url:"";if(!n||!r||!o)return null;let s=typeof t.type=="string"&&t.type?t.type:"doc";return{media_id:n,name:r,media_url:o,type:s}}function Ee(e){let t=e.action_params?.file_paths,n=Array.isArray(t)?t[0]:t;return typeof n=="string"&&n.length>0?n:null}function Le(e){let t={};for(let[n,r]of Object.entries(e??{}))t[n]={...r,refs:[...r.refs??[]]};return t}function Ue(e,t){if(!t)return!1;let n=t.endsWith("/")?t:t+"/";return e.startsWith(n)}function le(e,t,n,r={}){let o=Le(e);for(let s of t){let l=Te(s);if(!l)continue;let a=o[l.media_id]??={name:l.name,media_url:l.media_url,type:l.type,refs:[],recorded_at:n};a.recorded_at=n;let i=Ee(s);if(!(!i||Ue(i,r.ignoreAliasUnder))){for(let[c,f]of Object.entries(o))c!==l.media_id&&(f.refs=f.refs.filter(S=>S!==i));a.refs.includes(i)||a.refs.push(i)}}return o}function ut(e){let t=e?.media;if(!t||typeof t!="object")return[];let n=[];for(let[r,o]of Object.entries(t)){if(!r||!o||typeof o!="object")continue;let s=o;typeof s.name!="string"||!s.name||typeof s.media_url!="string"||!s.media_url||n.push({media_id:r,name:s.name,media_url:s.media_url,type:typeof s.type=="string"&&s.type?s.type:"doc",refs:Array.isArray(s.refs)?s.refs.filter(l=>typeof l=="string"&&l.length>0):[]})}return n}function Ne(e){let t=[];for(let n of e){let r;try{r=ce(n,"utf8")}catch{continue}for(let o of r.split(`
|
|
5
|
+
`)){let s=o.trim();if(s)try{let l=JSON.parse(s);l&&typeof l=="object"&&t.push(l)}catch{}}}return t}function V(e){try{return Ke(e,{withFileTypes:!0}).filter(t=>t.isDirectory()).map(t=>t.name).sort((t,n)=>t.localeCompare(n,void 0,{numeric:!0}))}catch{return[]}}function yt(e){if(!e)return[];let t=[];for(let n of V(F(e,"runs")))for(let r of[F(e,"runs",n,"run-test","actions.ndjson"),F(e,"runs",n,"actions.ndjson")])if(ue(r)){t.push(r);break}return t}function fe(e){let t=[],n=F(e,".internal","steps");for(let r of V(n)){let o=F(n,r,"flows");for(let s of V(o)){let l=F(o,s,"actions.ndjson");ue(l)&&t.push(l)}}return t}function Ce(e){try{let n=JSON.parse(ce(e,"utf8"))?.media;return n&&typeof n=="object"?n:void 0}catch{return}}function me(e){let t=Ce(e.priorMetaPath),n=Ne(e.recordFiles),r=le(t,n,e.now??new Date().toISOString(),{ignoreAliasUnder:e.ignoreAliasUnder??q});return Object.keys(r).length>0?r:void 0}import{existsSync as L,readdirSync as We}from"fs";import{dirname as He,join as O,basename as B}from"path";function Mt(e,t){let n=[];return e.steps.forEach((r,o)=>{let s=t[o];r.block||!r.replayOnly||!s||s.kind!=="author"||n.push({flatIndex:r.flatIndex,file:r.owningFile,heading:r.trace[r.trace.length-1].heading,kind:r.replayOnly,reason:s.reason})}),n}function wt(e){let t=[],n=new Set,r=new Map;function o(i){if(r.has(i))return r.get(i);let c=v(i),f=L(c)?D(c):null;return r.set(i,f),f}let s=new Map;function l(i){if(s.has(i))return s.get(i);let c=O(i,"Result.md"),f=L(c)?D(c):null;return s.set(i,f),f}function a(i){for(let c=1;c<i.trace.length;c++){let f=i.trace[c-1],S=o(f.file);if(!S)continue;let m=S.steps[f.stepIndex-1];if(m){if(m.kind!=="import")return{kind:"author",reason:"structure-mismatch"};if(B(m.importPath)!==B(i.trace[c].file))return{kind:"author",reason:"structure-mismatch"};if(m.md5!=null&&m.md5!==f.rowMd5)return{kind:"author",reason:"structure-mismatch"}}}return null}for(let i of e.steps){let c=i.trace[i.trace.length-1].stepIndex,f=i.replayOnly;if(i.block){let g=o(i.owningFile)?.steps[c-1],j=i.controlFlow!==void 0,A=g?.kind==="objective"&&g.status==="skipped";if(j||A){t.push({kind:"replay",recordingDir:"",flowCount:0,unrecorded:!0,...f?{replayOnly:f}:{}});continue}}let S=n.has(i.owningFile);for(let g=0;g<i.trace.length-1&&!S;g++)n.has(i.trace[g].file)&&(S=!0);if(S&&!f){t.push({kind:"author",reason:o(i.owningFile)===null?"no-result-md":"downstream-of-divergence"});continue}let m=a(i);if(m){for(let g=0;g<i.trace.length;g++)n.add(i.trace[g].file);if(!f){t.push(m);continue}}let w=o(i.owningFile),x;if(w===null&&i.trace.length>1){let g=J(i.trace);x=ge(i,l(g),c,g)}else x=ge(i,w,c);if(f&&x.kind==="replay"&&(x={...x,replayOnly:f}),t.push(x),x.kind==="author"){n.add(i.owningFile);for(let g=0;g<i.trace.length-1;g++)n.add(i.trace[g].file)}}return t}function ge(e,t,n,r=null){if(!t)return{kind:"author",reason:"no-result-md"};let o=t.steps[n-1];if(!o)return{kind:"author",reason:"no-result-md"};if(o.kind!=="objective")return{kind:"author",reason:"structure-mismatch"};if(o.status!=="passed")return{kind:"author",reason:"recorded-failed"};let s=E(e);if(s!==o.md5)return{kind:"author",reason:"md5-mismatch"};let l=r===null?ee(e.owningFile,n,s.slice(0,8)):O(r,".internal","steps",`${n}-${s.slice(0,8)}`),a=Ve(l);return a===0?{kind:"author",reason:"missing-recording"}:{kind:"replay",recordingDir:l,flowCount:a}}function Ve(e){let t=O(e,"flows");if(!L(t))return 0;let n;try{n=We(t,{withFileTypes:!0}).filter(o=>o.isDirectory()&&/^\d+$/.test(o.name)).map(o=>parseInt(o.name,10))}catch{return 0}if(n.length===0)return 0;let r=Math.max(...n);for(let o=0;o<=r;o++)if(!L(O(t,String(o),"actions.ndjson")))return 0;return r+1}function vt(e){return e.some(t=>t.kind==="author")}function Pt(e){for(let t=0;t<e.length;t++)if(e[t].kind==="author")return t;return e.length}function J(e){let t=s=>{let l=B(s);return l.endsWith("_test.md")?l.slice(0,-8):l.endsWith(".md")?l.slice(0,-3):l},n=t(e[0].file),r=t(e[e.length-1].file),o=e.slice(0,-1).map(s=>String(s.stepIndex));return O(He(e[e.length-1].file),`helper-output-${r}-${n}-${o.join("-")}`)}function jt(e){return Array.from({length:e.flowCount},(t,n)=>O(e.recordingDir,"flows",String(n),"actions.ndjson"))}import{existsSync as he,mkdirSync as Be,rmSync as Je,cpSync as Ge}from"fs";function ye(e,t){he(e)&&(he(t)&&Je(t,{recursive:!0,force:!0}),Be(t,{recursive:!0}),Ge(e,t,{recursive:!0}))}async function Ht(e){let t=new Map;for(let a of e.stepRunRecords)t.set(a.testmdStepIndex,a);let n=e.authoredFlatIdx??new Set,r=[],o=[],s=new Map,l=a=>{if(s.has(a))return s.get(a);let i=R(a,"Result.md"),c=P(i)?D(i):null;return s.set(a,c),c};for(let a of e.resolvedTest.unitFiles){let i=a.file===e.resolvedTest.rootPath,c=Q(a.file,qe(a.file,"utf8")),f=v(a.file),S=P(f)?D(f):null,m=[],w=[],x=[],g=[];if(!i)for(let p of e.resolvedTest.steps){if(p.owningFile!==a.file||p.trace.length<2)continue;let d=J(p.trace);g.includes(d)||g.push(d)}let j=p=>{if(S!==null)return null;for(let d of g){let M=l(d)?.steps[p-1];if(M)return{row:M,dir:d}}return null},A=[],U=!1,G=!1,K=!1,N=!1;for(let p of c.steps){let d=p.index,u=S?.steps[d-1];if(p.body.kind==="objective"){let h=e.resolvedTest.steps.filter(y=>y.owningFile===a.file&&y.trace[y.trace.length-1].stepIndex===d&&t.has(y.flatIndex)),I=h.length>0?h[h.length-1]:null;if(I){U=!0,n.has(I.flatIndex)&&(G=!0);let y=E(I),k;i?k=e.outcomes.find(Me=>Me.rootStepIndex===d)??{rootStepIndex:d,status:"skipped"}:k={rootStepIndex:d,status:ke(I,e.outcomes)},k.status==="failed"&&(K=!0),k.stepMd5==null&&(k.stepMd5=y),m.push(k),w.push({stepIndex:d,md5:y,rec:t.get(I.flatIndex)}),(!u||u.kind!=="objective"||u.status!==k.status||k.status==="passed"&&u.md5!==y)&&(N=!0)}else if(u&&u.kind==="objective")m.push({rootStepIndex:d,status:u.status,...u.md5?{stepMd5:u.md5}:{}}),x.push(d);else if(!i&&j(d)?.row.kind==="objective"){let y=j(d),k=y.row;m.push({rootStepIndex:d,status:k.status,...k.md5?{stepMd5:k.md5}:{}}),A.push({psIdx:d,dir:y.dir})}else i?m.push(e.outcomes.find(y=>y.rootStepIndex===d)??{rootStepIndex:d,status:"skipped"}):m.push({rootStepIndex:d,status:"skipped"});continue}let M=Ye(p.body.path)?p.body.path:et(Xe(a.file),p.body.path),T=te({path:p.body.path,bindings:p.body.bindings,optional:p.optional??!1}),C=Ze(X(a.file),v(M)),_=e.resolvedTest.steps.filter(h=>h.trace.some((I,y)=>y<h.trace.length-1&&I.file===a.file&&I.stepIndex===d)&&t.has(h.flatIndex));if(_.length>0){U=!0;let h;if(i)h=e.outcomes.find(I=>I.rootStepIndex===d)??{rootStepIndex:d,status:"passed",refKind:"import",refLabel:p.body.path};else{let I=_.some(y=>ke(y,e.outcomes)==="failed");h={rootStepIndex:d,status:I?"failed":"passed",refKind:"import",refLabel:p.body.path,inlinedCount:_.length}}h.status==="failed"&&(K=!0),h.stepMd5==null&&(h.stepMd5=T),h.helperResultRelPath==null&&(h.helperResultRelPath=C),m.push(h),(!u||u.kind!=="import"||u.status!==h.status||u.md5!==T)&&(N=!0)}else if(u&&u.kind==="import")m.push({rootStepIndex:d,status:u.status,refKind:"import",refLabel:u.importPath,...u.md5?{stepMd5:u.md5}:{},...u.helperResultRelPath?{helperResultRelPath:u.helperResultRelPath}:{}});else if(!i&&j(d)?.row.kind==="import"){let h=j(d).row;m.push({rootStepIndex:d,status:h.status,refKind:"import",refLabel:p.body.path})}else i?m.push(e.outcomes.find(h=>h.rootStepIndex===d)??{rootStepIndex:d,status:"skipped",refKind:"import",refLabel:p.body.path}):m.push({rootStepIndex:d,status:"skipped",refKind:"import",refLabel:p.body.path})}if(!(i||U&&(G||K||S===null||N)))continue;r.push(a.file);let b=Y(a.file);xe(R(b,".internal"),{recursive:!0});for(let p of w){let d=R(b,".internal","steps",`${p.stepIndex}-${p.md5.slice(0,8)}`);xe(d,{recursive:!0}),await pe({sessionDir:e.sessionDir,runIndex:p.rec.runIndex,totalRunDirs:p.rec.totalRunDirs,stagingStepDir:d,packTestDir:e.packTestDir})}if(x.length>0){let p=Z(a.file);if(P(p))for(let d of Ie(p)){let u=parseInt(d.split("-")[0]??"",10);!Number.isNaN(u)&&x.includes(u)&&Re(R(p,d),R(b,".internal","steps",d),{recursive:!0})}}for(let p of A){let d=R(p.dir,".internal","steps");if(P(d))for(let u of Ie(d))parseInt(u.split("-")[0]??"",10)===p.psIdx&&Re(R(d,u),R(b,".internal","steps",u),{recursive:!0})}let be=m.some(p=>p.status==="failed");if(ie({sourcePath:a.file,title:c.title,rootSteps:c.steps,outcomes:m,overallStatus:i?e.overallStatus:be?"failed":"passed",startedISO:e.startedISO,durationS:i?e.durationS:0,sessionId:e.sessionId,outPath:R(b,"Result.md")}),i){let p={};e.commitId&&(p.commit_id=e.commitId),e.tmsIds.testId&&(p.test_id=e.tmsIds.testId),e.tmsIds.testcaseId&&(p.testcase_id=e.tmsIds.testcaseId),e.tmsIds.projectId&&(p.project_id=e.tmsIds.projectId),e.tmsIds.folderId&&(p.folder_id=e.tmsIds.folderId),e.tmsIds.orgId&&(p.org_id=e.tmsIds.orgId),e.tmsIds.sessionName&&(p.session_name=e.tmsIds.sessionName);let d=me({priorMetaPath:W(a.file),recordFiles:fe(b)});d&&(p.media=d);let u=ne(a.file);u&&(p.tc_id=u),Qe(R(b,".internal","meta.json"),JSON.stringify(p,null,2)+`
|
|
6
|
+
`,"utf8");let M=R(e.sessionDir,"execution.json");if(P(M))try{Se(M,R(b,".internal","execution.json"))}catch{}if(e.codeExportDir){let T=e.codeExportLanguage??"python",C=e.codeExportFramework??"playwright",_=R(b,`${C}-${T}-code`);try{ye(e.codeExportDir,_)}catch(h){process.stderr.write(`warn: codegen copy failed: ${h.message}
|
|
7
|
+
`)}}}else if(a.kind==="test"||a.kind==="module"){let p=W(a.file);if(P(p))try{Se(p,R(b,".internal","meta.json"))}catch{}}!i&&g.length>0&&m.every(d=>d.status!=="skipped")&&o.push({unitFile:a.file,dirs:g.filter(d=>P(d))})}return{changedUnitFiles:r,legacySweep:o}}function Vt(e){for(let t of e)try{ze(t,{recursive:!0,force:!0})}catch{}}function ke(e,t){let n=e.trace[0].stepIndex,r=t.find(a=>a.rootStepIndex===n);if(!r)return"skipped";if(r.status==="passed")return"passed";if(r.status==="skipped")return"skipped";let o=e.trace.slice(1).map(a=>a.stepIndex),s=r.failedSubStepIndex??[],l=Math.min(o.length,s.length);for(let a=0;a<l;a++)if(o[a]!==s[a])return o[a]<s[a]?"passed":"skipped";return o.length===s.length?"failed":o.length<s.length?"passed":"skipped"}export{ie as a,Mt as b,wt as c,vt as d,Pt as e,jt as f,ut as g,yt as h,me as i,ye as j,Ht as k,Vt as l};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { createRequire } from 'module'; const require = createRequire(import.meta.url);
|
|
2
|
-
import{b as f}from"./chunk-
|
|
2
|
+
import{b as f}from"./chunk-AG2MVCNK.js";import{c as g}from"./chunk-UD7KKHPW.js";import{existsSync as u}from"fs";import{dirname as A,resolve as l}from"path";import{fileURLToPath as E}from"url";var p=A(E(import.meta.url));function _(){return[l(p,".."),l(p,"../../..")]}function x(s){return{"darwin-arm64":"kane-cli-darwin-arm64","darwin-x64":"kane-cli-darwin-x64","linux-x64":"kane-cli-linux-x64","linux-arm64":"kane-cli-linux-arm64","win32-x64":"kane-cli-win-x64"}[s]??null}function T(s){return{"darwin-arm64":"kane-cli-assurance-darwin-arm64","darwin-x64":"kane-cli-assurance-darwin-x64","linux-x64":"kane-cli-assurance-linux-x64","linux-arm64":"kane-cli-assurance-linux-arm64","win32-x64":"kane-cli-assurance-win-x64"}[s]??null}function I(s=_()){let n=x(`${process.platform}-${process.arch}`),i=T(`${process.platform}-${process.arch}`),a=process.platform==="win32"?"assurance-agent.exe":"assurance-agent";for(let e of s){for(let t of i?["@testmuai","@lambdatestincprivate"]:[]){let m=l(e,"node_modules",t,i,"bin",a);if(u(m))return{cmd:m,args:[],tier:"platform"}}for(let t of n?["@testmuai","@lambdatestincprivate"]:[]){let m=l(e,"node_modules",t,n,"bin",a);if(u(m))return{cmd:m,args:[],tier:"platform"}}let c=l(e,"dist","bin",a);if(u(c))return{cmd:c,args:[],tier:"embedded"};let r=l(e,"../assurance-agent/dist",a);if(u(r))return{cmd:r,args:[],tier:"sibling"};let o=l(e,"../assurance-agent/main.py");if(u(o)){let t=l(e,"../assurance-agent/.venv/bin/python");return{cmd:u(t)?t:"python3",args:[o],tier:"dev-python"}}}return null}function U(s,n={}){return{...process.env,...n,...f(),TESTMUAI_SOURCE:"kane-cli",TESTMUAI_SESSION_ID:s,ASSURANCE_LOG_LEVEL:process.env.ASSURANCE_LOG_LEVEL??"info"}}async function P(){if(process.env.TESTMUAI_API_KEY||process.env.TESTMUAI_BASIC_AUTH)return{};try{let{CredentialsManager:s}=await import("./credentials-FLY3ZXVX.js"),n=process.env.TESTMUAI_ENV==="stage"?"stage":"prod",i=new s,a=i.getActiveProfile()??"default",e={TESTMUAI_ENV:n},c=i.loadBasicAuth(a,n);if(c)return e.TESTMUAI_BASIC_AUTH=Buffer.from(`${c.username}:${c.access_key}`,"utf8").toString("base64"),e;let r=i.loadCredentials(a,n);if(r){try{let{refreshOAuthToken:t}=await import("./token-refresh-NADDXLYM.js");await t({creds:i,profile:a,env:n,credentials:r})}catch{}let o=i.loadCredentials(a,n)??r;if(typeof o.access_token=="string"){let t=await w(n,o.access_token);return t?(e.TESTMUAI_BASIC_AUTH=t,e):(e.TESTMUAI_API_KEY=o.access_token,e)}}return{}}catch{return{}}}var h=8e3;function d(){return g("warn: session auth may expire during long runs \u2014 if that happens, run `kane-cli login` and retry","AUTH_EXCHANGE_FAILED"),null}async function w(s,n){try{let[{getEnvironment:i},{ControllerClient:a}]=await Promise.all([import("./config-WKLEWUPU.js"),import("./controller-client-ZF5IXRUV.js")]),e=new a(i(s).controllerBaseUrl,n),c;try{let r=await Promise.race([e.getTmsCredentials().catch(()=>null),new Promise(o=>{c=setTimeout(()=>o(null),h)})]);if(typeof r?.username!="string"||!r.username||typeof r.access_key!="string"||!r.access_key)return d();try{let[{refreshIdentitySnapshot:o},{telemetryEnvName:t}]=await Promise.all([import("./identity-ADZ4PAJF.js"),import("./bootstrap-63FBDEEU.js")]);await o(t(),r)}catch{}return Buffer.from(`${r.username}:${r.access_key}`,"utf8").toString("base64")}finally{clearTimeout(c)}}catch{return d()}}export{x as a,T as b,I as c,U as d,P as e};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { createRequire } from 'module'; const require = createRequire(import.meta.url);
|
|
2
|
-
import{c as k}from"./chunk-RFHMDQXZ.js";import{a as b}from"./chunk-
|
|
2
|
+
import{c as k}from"./chunk-RFHMDQXZ.js";import{a as b}from"./chunk-IHD2WXKT.js";import{a as C}from"./chunk-JWOPRJIO.js";import{q as m,r as u,s as f,t as x,u as y}from"./chunk-PHR2OSWD.js";import{createServer as S}from"http";import{randomBytes as A}from"crypto";import{URL as L}from"url";var P=class{profile;environment;creds;oauth;constructor(r="default",o="prod",e){this.profile=r,this.environment=o,this.creds=e??new C,this.oauth=new b(o)}async login(){let{server:r,port:o}=await this.startCallbackServer(),e=y(o);try{let t=this.creds.loadClient(this.profile,this.environment),i=t?.redirect_uris;(!t||!i?.includes(e))&&(t=await this.oauth.registerClient(e),this.creds.saveClient(this.profile,this.environment,t));let c=t.client_id,[h,d]=b.generatePkce(),a=A(32).toString("hex"),n=this.oauth.buildAuthorizationUrl(c,d,a,e),l=await this.waitForCallback(r,o,n,a);if(!l)throw new Error("Login cancelled or timed out");let p=await this.oauth.exchangeCode(l,c,h,e),g={access_token:p.access_token,refresh_token:p.refresh_token,expires_at:Math.floor(Date.now()/1e3)+p.expires_in,scope:p.scope??"*"};return this.creds.saveCredentials(this.profile,this.environment,g),this.creds.setActiveProfile(this.profile),g}catch(t){throw r.close(),t}}startCallbackServer(){return new Promise((r,o)=>{let e=u,t=()=>{let i=S();i.on("error",c=>{c.code==="EADDRINUSE"&&e<f?(e++,t()):o(new Error(`Failed to start callback server: ${c.message}. Ports ${u}-${f} are all in use.`))}),i.listen(e,m,()=>{r({server:i,port:e})})};t()})}waitForCallback(r,o,e,t){return new Promise(i=>{let c=!1,h=setTimeout(()=>d(null),12e4),d=a=>{c||(c=!0,clearTimeout(h),r.close(),i(a))};r.on("request",(a,n)=>{let l=new L(a.url??"/",`http://${m}:${o}`);if(l.pathname!==x){n.writeHead(404),n.end();return}let p=l.searchParams.get("state"),g=l.searchParams.get("code");if(l.searchParams.get("error")){n.writeHead(200,{"Content-Type":"text/html; charset=utf-8"}),n.end(v({state:"error",title:"Login failed",message:"We couldn't complete the sign-in. You can close this tab and try again from your terminal."})),d(null);return}if(p!==t){n.writeHead(400,{"Content-Type":"text/html; charset=utf-8"}),n.end(v({state:"error",title:"Invalid state",message:"The sign-in response didn't match this session. Please return to your terminal and try again."})),d(null);return}n.writeHead(200,{"Content-Type":"text/html; charset=utf-8"}),n.end(v({state:"success",title:"You're signed in",message:"Head back to your terminal \u2014 KaneAI is ready when you are.",autoClose:!0})),d(g)}),k(e).catch(a=>{let n=a instanceof Error?a.message:String(a);process.stderr.write(`[auth] Could not open browser: ${n}
|
|
3
3
|
Please open this URL manually: ${e}
|
|
4
4
|
`)})})}};function v(s){let r=s.state==="success",o=r?"#22c55e":"#ef4444",e=r?"rgba(34, 197, 94, 0.12)":"rgba(239, 68, 68, 0.12)",t=r?'<svg viewBox="0 0 24 24" width="36" height="36" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M5 12.5l4.5 4.5L19 7"/></svg>':'<svg viewBox="0 0 24 24" width="36" height="36" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M6 6l12 12M18 6L6 18"/></svg>',i=s.autoClose?"<script>setTimeout(function(){try{window.close();}catch(e){}}, 1500);</script>":"";return`<!doctype html>
|
|
5
5
|
<html lang="en">
|