@testmuai/kane-cli 0.10.3 → 0.10.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/ChatSurface-WKYH5MYP.js +2 -0
- package/dist/ChromeProfilePicker-ROQIRMWR.js +2 -0
- package/dist/{CliFeedbackPrompt-JWCTMIGI.js → CliFeedbackPrompt-55OKAT4W.js} +1 -1
- package/dist/{CliUploadProgress-XFRRFRL4.js → CliUploadProgress-NK2U3CKQ.js} +1 -1
- package/dist/{ConfigView-6JF4DOJN.js → ConfigView-7A5JTKLF.js} +1 -1
- package/dist/EvidenceViewOffer-U7J5ZRVK.js +2 -0
- package/dist/FolderPicker-R4QDIFTW.js +2 -0
- package/dist/InfoBox-SRQ4TSUT.js +2 -0
- package/dist/LinksBox-7BWLLQVR.js +2 -0
- package/dist/ProfilesView-TQTJR4WQ.js +2 -0
- package/dist/ProjectPicker-A5SXNDUL.js +2 -0
- package/dist/SaveSessionPrompt-IECYZMXW.js +2 -0
- package/dist/SingleShotApp-MN5IE6EU.js +2 -0
- package/dist/SummaryBox-WFOS6GON.js +2 -0
- package/dist/TestMdRunView-URNSXIVC.js +2 -0
- package/dist/TestrunEvidenceTable-SZPZMW3J.js +2 -0
- package/dist/{WhoamiView-H7JNLLCY.js → WhoamiView-G6QP4SID.js} +1 -1
- package/dist/{app-client-U2YYF65L.js → app-client-2RR5ATI6.js} +1 -1
- package/dist/app-download-UGLDWWTX.js +2 -0
- package/dist/{assurance-job-F4L3T4VJ.js → assurance-job-V5QB36WJ.js} +1 -1
- package/dist/{binary-K3XMILST.js → binary-32FXH6PQ.js} +1 -1
- package/dist/bind-3PB77PWJ.js +2 -0
- package/dist/bootstrap-A2O4UZUJ.js +2 -0
- package/dist/{bridge-2UHJOVLX.js → bridge-SPGIYAAG.js} +1 -1
- package/dist/{catalog-YCU6OHNV.js → catalog-P5IOIVYP.js} +1 -1
- package/dist/{catalog-client-MVEEHTG2.js → catalog-client-LR2KPSU7.js} +1 -1
- package/dist/{changelog-5UB3AQT6.js → changelog-GKIKDJ32.js} +1 -1
- package/dist/chat-committer-7E3TRZ6P.js +2 -0
- package/dist/chat-controller-5ZBG23L6.js +2 -0
- package/dist/child-MNLSG77W.js +2 -0
- package/dist/{chunk-5YYCCM6K.js → chunk-2AHQ3D3D.js} +1 -1
- package/dist/{chunk-UWPG5MWM.js → chunk-2EKLTUY2.js} +1 -1
- package/dist/{chunk-KL7XFNSD.js → chunk-2G7UYQOW.js} +1 -1
- package/dist/{chunk-GXQYFOBD.js → chunk-2MBNAW2G.js} +1 -1
- package/dist/{chunk-Y2HQMJGS.js → chunk-2NP3THOE.js} +1 -1
- package/dist/chunk-37KFCYHG.js +18 -0
- package/dist/{chunk-ZHAMVLQZ.js → chunk-3A4KK22B.js} +1 -1
- package/dist/{chunk-L3BUPFAQ.js → chunk-3CFAE36M.js} +1 -1
- package/dist/{chunk-TU2KPOW2.js → chunk-3DFBFYTD.js} +2 -2
- package/dist/{chunk-QE4AWNOV.js → chunk-3RJRCAUX.js} +6 -6
- package/dist/chunk-3UY4WPMQ.js +8 -0
- package/dist/{chunk-3NWUXRSI.js → chunk-4DM5EWEV.js} +1 -1
- package/dist/{chunk-ZMWTRXFH.js → chunk-4DRFMDAW.js} +1 -1
- package/dist/{chunk-PI7OXS62.js → chunk-5EAJO372.js} +1 -1
- package/dist/{chunk-4KL3TSTT.js → chunk-5K7PCSTP.js} +4 -4
- package/dist/{chunk-HV2CDY4K.js → chunk-5LKDOE3P.js} +1 -1
- package/dist/{chunk-AT7AT3AR.js → chunk-5OFHMBZC.js} +5 -5
- package/dist/{chunk-CQDCNP7V.js → chunk-5ORBAYTU.js} +1 -1
- package/dist/{chunk-2TK4MDF2.js → chunk-63BFLTJI.js} +1 -1
- package/dist/{chunk-BBJAKSA7.js → chunk-642GD7E6.js} +2 -2
- package/dist/{chunk-KKLCXRW6.js → chunk-642LB5R2.js} +1 -1
- package/dist/{chunk-Q4SMITTV.js → chunk-66C5A2F5.js} +1 -1
- package/dist/{chunk-X6FCXBXU.js → chunk-6FVGPKVX.js} +1 -1
- package/dist/{chunk-32HED7X2.js → chunk-6KUUSONE.js} +1 -1
- package/dist/{chunk-6FFX4S7N.js → chunk-6OL5EVRC.js} +1 -1
- package/dist/{chunk-SXBPUUQ5.js → chunk-6PZ3SVWE.js} +1 -1
- package/dist/{chunk-SJQTTEXQ.js → chunk-6VG2FG67.js} +1 -1
- package/dist/chunk-6WN4WSXR.js +2 -0
- package/dist/{chunk-CB2BWDHG.js → chunk-76MKY7FG.js} +4 -4
- package/dist/{chunk-LRNUGKYH.js → chunk-77BZTEHJ.js} +1 -1
- package/dist/chunk-7TSM2FCL.js +5 -0
- package/dist/{chunk-KQ4XKTIZ.js → chunk-A5C7HIAH.js} +1 -1
- package/dist/{chunk-ENRFXGID.js → chunk-ABAUIIPD.js} +1 -1
- package/dist/{chunk-JTNEF5ZP.js → chunk-AL6IAMYV.js} +1 -1
- package/dist/{chunk-4CJQ7XZP.js → chunk-AXOSLGQ4.js} +1 -1
- package/dist/{chunk-CNHKZE4F.js → chunk-BDZWRJAL.js} +1 -1
- package/dist/{chunk-VCVEZEVS.js → chunk-BFRWZPIK.js} +1 -1
- package/dist/{chunk-IZ66FKPC.js → chunk-BIGOLVK6.js} +1 -1
- package/dist/{chunk-Q4ALB7SH.js → chunk-BLHFNL5K.js} +1 -1
- package/dist/chunk-BRWCWZE3.js +2 -0
- package/dist/{chunk-X7S7IGCV.js → chunk-BXJNL22L.js} +1 -1
- package/dist/chunk-BZEW7CSM.js +3 -0
- package/dist/{chunk-Z24SD2EJ.js → chunk-C3DMMAFP.js} +1 -1
- package/dist/{chunk-DQXQJJOP.js → chunk-C466XER3.js} +2 -2
- package/dist/{chunk-BLVDV3QQ.js → chunk-C4UME2PA.js} +1 -1
- package/dist/chunk-CBEMXSWF.js +2 -0
- package/dist/{chunk-6QCCTZO3.js → chunk-CBPACEYQ.js} +1 -1
- package/dist/{chunk-MD3RABID.js → chunk-CJGQFKLJ.js} +1 -1
- package/dist/{chunk-YVVFXBT5.js → chunk-CQBLJTDU.js} +1 -1
- package/dist/{chunk-X2MDL6S4.js → chunk-CVVUBCB7.js} +1 -1
- package/dist/{chunk-35BG2EMW.js → chunk-E3C4OWSD.js} +1 -1
- package/dist/{chunk-ERRIDBE7.js → chunk-EIQSXD7B.js} +1 -1
- package/dist/{chunk-YPGZ5E4I.js → chunk-EP4WGGMY.js} +1 -1
- package/dist/{chunk-GAKBHNC4.js → chunk-EUGFABAS.js} +1 -1
- package/dist/{chunk-HBLHKQR7.js → chunk-F4GWIX66.js} +1 -1
- package/dist/{chunk-SALZ6WSF.js → chunk-F4XCCOWC.js} +1 -1
- package/dist/{chunk-NHGPMYM3.js → chunk-FHULYIG3.js} +1 -1
- package/dist/{chunk-7RELCXRW.js → chunk-FKA5SWWF.js} +1 -1
- package/dist/{chunk-OCVDMZWB.js → chunk-FLGOQ6Q6.js} +1 -1
- package/dist/{chunk-YILRYMMG.js → chunk-FNBHP75S.js} +1 -1
- package/dist/{chunk-JBKHX5ES.js → chunk-FOURJ24E.js} +1 -1
- package/dist/{chunk-DC5F2ADJ.js → chunk-FOUUD3LI.js} +1 -1
- package/dist/{chunk-IEHJG6J4.js → chunk-FP6JCXOS.js} +1 -1
- package/dist/{chunk-ZDCXWEQG.js → chunk-GRQKMOKE.js} +1 -1
- package/dist/{chunk-XKOVEMVZ.js → chunk-H23ZMHHC.js} +1 -1
- package/dist/{chunk-E4GIGM5V.js → chunk-H6IPGZTP.js} +1 -1
- package/dist/{chunk-MINDIQET.js → chunk-HBGYEA3O.js} +1 -1
- package/dist/{chunk-KBGMQYMD.js → chunk-HHF7AM3D.js} +1 -1
- package/dist/{chunk-PCQK62MP.js → chunk-HTJDMLZS.js} +1 -1
- package/dist/{chunk-ZPU3WAC4.js → chunk-HY5BBSYX.js} +1 -1
- package/dist/{chunk-TM6VLC6V.js → chunk-IPIARGHE.js} +1 -1
- package/dist/{chunk-M2E5CPPV.js → chunk-IPXITNFD.js} +1 -1
- package/dist/{chunk-NI3TIAD7.js → chunk-IT6M7OMG.js} +1 -1
- package/dist/{chunk-Y3RJHWNK.js → chunk-ITG5WMQG.js} +1 -1
- package/dist/{chunk-WEJR2V7R.js → chunk-J3XOEMKO.js} +1 -1
- package/dist/{chunk-OHGL4GEJ.js → chunk-J3YID4A5.js} +1 -1
- package/dist/{chunk-OCMPWCKQ.js → chunk-J44FV6CH.js} +1 -1
- package/dist/{chunk-3MD2XLE7.js → chunk-J5D4IGAM.js} +9 -8
- package/dist/{chunk-6QH75BPJ.js → chunk-J5QFO7LW.js} +1 -1
- package/dist/{chunk-GJXO6FF7.js → chunk-JBUKEIYL.js} +1 -1
- package/dist/{chunk-EJGCIGQY.js → chunk-JGQ3VB44.js} +1 -1
- package/dist/{chunk-GEZVC4S3.js → chunk-JM6AKCN4.js} +1 -1
- package/dist/{chunk-3KY7HHQU.js → chunk-JSSM2TWY.js} +1 -1
- package/dist/{chunk-3ZC7GSMM.js → chunk-JVXEAO62.js} +1 -1
- package/dist/{chunk-TM45NPWL.js → chunk-JYH7CTF7.js} +1 -1
- package/dist/{chunk-YNDELIXL.js → chunk-JZ7GFPKZ.js} +1 -1
- package/dist/{chunk-CTHUX7O4.js → chunk-KUSHV5SR.js} +1 -1
- package/dist/{chunk-LTPOMMAB.js → chunk-LB5NIDW6.js} +1 -1
- package/dist/{chunk-SIHX5FW5.js → chunk-LJKTIKZY.js} +1 -1
- package/dist/{chunk-LPJKNX6D.js → chunk-LMOW4NM5.js} +1 -1
- package/dist/{chunk-WIVKLNIO.js → chunk-LPJX5L3F.js} +1 -1
- package/dist/{chunk-HRIDAK6Y.js → chunk-LWP7E5FU.js} +1 -1
- package/dist/{chunk-YWWVF5OU.js → chunk-LXYXCANZ.js} +1 -1
- package/dist/{chunk-35WUYKGO.js → chunk-MAQVRBUQ.js} +1 -1
- package/dist/{chunk-NPAUSUNM.js → chunk-MBNSCXVK.js} +1 -1
- package/dist/{chunk-ZMIKNNO6.js → chunk-MIQ6J5YG.js} +1 -1
- package/dist/chunk-MTMHB5LF.js +2 -0
- package/dist/{chunk-RNHSULQM.js → chunk-MUL2QFG2.js} +1 -1
- package/dist/{chunk-MEBEVHGP.js → chunk-N4XUGIAK.js} +1 -1
- package/dist/{chunk-GQAWZEA4.js → chunk-NAUIJF72.js} +1 -1
- package/dist/{chunk-PB6RXDWQ.js → chunk-NFDVDEOH.js} +2 -2
- package/dist/{chunk-LHJSIHLC.js → chunk-NGBXXBHP.js} +1 -1
- package/dist/{chunk-YCVEI7BT.js → chunk-NIBNVPAE.js} +1 -1
- package/dist/chunk-NKJRAQ6L.js +6 -0
- package/dist/{chunk-OZNYQONA.js → chunk-NNVHWFLI.js} +3 -3
- package/dist/{chunk-7SU53QGU.js → chunk-NZ7UCAN6.js} +1 -1
- package/dist/{chunk-7V34ZMMS.js → chunk-OKCVG7AG.js} +1 -1
- package/dist/{chunk-LZGAFKYH.js → chunk-OMCJD4LH.js} +1 -1
- package/dist/{chunk-VO2NNXKR.js → chunk-OPR5XIPT.js} +1 -1
- package/dist/{chunk-EZMRWXRT.js → chunk-OVB5GVRB.js} +1 -1
- package/dist/{chunk-LV7224DG.js → chunk-PCL2FYPE.js} +1 -1
- package/dist/{chunk-AVLYSNEG.js → chunk-PE3CEG6E.js} +1 -1
- package/dist/{chunk-MEMXFTLD.js → chunk-PEHVBCXM.js} +1 -1
- package/dist/{chunk-6HRNG4CK.js → chunk-PKXWYYVK.js} +1 -1
- package/dist/{chunk-YQZ736IQ.js → chunk-PSBR2LVL.js} +1 -1
- package/dist/{chunk-R6TFRAMZ.js → chunk-PUNFWBRW.js} +1 -1
- package/dist/{chunk-7Y55CO42.js → chunk-PZOQ2IQK.js} +1 -1
- package/dist/{chunk-SMGRXKXX.js → chunk-Q4QCSO6Y.js} +1 -1
- package/dist/{chunk-TUSG7DIL.js → chunk-QJ5XHVS5.js} +1 -1
- package/dist/{chunk-TAY7J5VS.js → chunk-QLGQDNA3.js} +1 -1
- package/dist/{chunk-QEM5ZRDN.js → chunk-QRUAI2ST.js} +1 -1
- package/dist/{chunk-C4KAPGBS.js → chunk-QWEQ742S.js} +3 -3
- package/dist/{chunk-Z47ZEFH7.js → chunk-R6S4EJ5R.js} +1 -1
- package/dist/{chunk-WE7HRAGO.js → chunk-RHQLDNZL.js} +1 -1
- package/dist/{chunk-3RO2YGKH.js → chunk-RM5ZVDVR.js} +1 -1
- package/dist/{chunk-N7IWR45S.js → chunk-RU3SWHRE.js} +1 -1
- package/dist/{chunk-OBNVGD5H.js → chunk-S5UITUBB.js} +1 -1
- package/dist/chunk-SACFQNUH.js +47 -0
- package/dist/{chunk-X45RZIAJ.js → chunk-SDIHDYWT.js} +1 -1
- package/dist/{chunk-AHT2ORJT.js → chunk-SFHDRKUX.js} +1 -1
- package/dist/{chunk-OTMHCHH6.js → chunk-SLISNOG6.js} +1 -1
- package/dist/{chunk-T77LTLAD.js → chunk-SULRMI2J.js} +1 -1
- package/dist/{chunk-OOGKX4Y6.js → chunk-TC2PHBPH.js} +1 -1
- package/dist/{chunk-HVOXMCKE.js → chunk-TCK7WR3M.js} +1 -1
- package/dist/{chunk-FOLUB336.js → chunk-TFSWG7AS.js} +1 -1
- package/dist/{chunk-PRBWZXFA.js → chunk-TOOJTCON.js} +6 -6
- package/dist/chunk-TPCW5OU5.js +3 -0
- package/dist/chunk-U5V3L5QH.js +2 -0
- package/dist/{chunk-LXK4B2FE.js → chunk-UJYC2XDD.js} +1 -1
- package/dist/chunk-UV7FPIBL.js +2 -0
- package/dist/{chunk-23DKB2MT.js → chunk-UVL6XQHU.js} +1 -1
- package/dist/{chunk-M7A66MSK.js → chunk-UWEBI76C.js} +1 -1
- package/dist/{chunk-PTLOOVV4.js → chunk-UWQ4KXLB.js} +1 -1
- package/dist/{chunk-ZCBOHWN3.js → chunk-V24LUINK.js} +1 -1
- package/dist/{chunk-ND6OP3O2.js → chunk-V3IWCGZT.js} +1 -1
- package/dist/{chunk-YDB72F4K.js → chunk-V4SL74TK.js} +1 -1
- package/dist/chunk-VEE2O524.js +34 -0
- package/dist/{chunk-VKVYT6KZ.js → chunk-VJRXJJML.js} +2 -2
- package/dist/{chunk-NRAPCFI2.js → chunk-VKIUHHNT.js} +2 -2
- package/dist/{chunk-QHH42RH5.js → chunk-W3PQMIXE.js} +1 -1
- package/dist/{chunk-LLQWEGXD.js → chunk-W5EDS4DF.js} +1 -1
- package/dist/{chunk-LUA25RYS.js → chunk-WAC5WISH.js} +1 -1
- package/dist/{chunk-W54BX6HC.js → chunk-WCIRLITM.js} +1 -1
- package/dist/chunk-WMXBRC4B.js +21 -0
- package/dist/{chunk-RQKMSNEU.js → chunk-WTMCDYR3.js} +1 -1
- package/dist/{chunk-DXIQVBMI.js → chunk-WZ3FE5MT.js} +1 -1
- package/dist/{chunk-GLM5UGTF.js → chunk-X66NIHT4.js} +1 -1
- package/dist/{chunk-B7ZX5HEN.js → chunk-XDAFRUAJ.js} +1 -1
- package/dist/{chunk-JNPFEBUR.js → chunk-XDAHKZ4J.js} +1 -1
- package/dist/chunk-XJV5SF3X.js +26 -0
- package/dist/{chunk-ZCL7XIVS.js → chunk-XKJZG4GR.js} +1 -1
- package/dist/{chunk-EBJW6POT.js → chunk-XRJH4UF3.js} +1 -1
- package/dist/chunk-XTQUCCJH.js +2 -0
- package/dist/chunk-Y3RDLUH5.js +7 -0
- package/dist/{chunk-SVIIUKJ2.js → chunk-Y7GSOKXS.js} +1 -1
- package/dist/{chunk-UJ37XGSP.js → chunk-YF22VTR5.js} +3 -3
- package/dist/chunk-YIBLZIXF.js +13 -0
- package/dist/{chunk-2JFRN62I.js → chunk-YLI7DQMJ.js} +2 -2
- package/dist/chunk-YQXOD7SV.js +102 -0
- package/dist/{chunk-4UX5N7YI.js → chunk-YTWBNACA.js} +1 -1
- package/dist/{chunk-KCXLRR3Q.js → chunk-YUFXE6WU.js} +1 -1
- package/dist/{chunk-SSOUYKVG.js → chunk-ZIRSTOEV.js} +1 -1
- package/dist/command-span-HZSKIZH7.js +2 -0
- package/dist/commands-TRAUFCRZ.js +2 -0
- package/dist/{committer-UO3B3S5Y.js → committer-L2HXEODA.js} +1 -1
- package/dist/{config-7WTZPMAH.js → config-O3BWQUP4.js} +1 -1
- package/dist/cover-cmd-SAWVP7TL.js +2 -0
- package/dist/{credentials-5WIFF5DG.js → credentials-NNNODDXF.js} +1 -1
- package/dist/{deps-bundle-BLLJ2BQ4.js → deps-bundle-CXKBCA7W.js} +1 -1
- package/dist/{deps-resolve-WQ6J6RLI.js → deps-resolve-K7XNTRZX.js} +1 -1
- package/dist/design-chat-S4KYE6PP.js +2 -0
- package/dist/{design-committer-7YIPFKMO.js → design-committer-ZKNW5LUS.js} +1 -1
- package/dist/design-headless-DDAFAJNR.js +2 -0
- package/dist/design-remote-UITWJ72Q.js +3 -0
- package/dist/device-env-SBTHFSVK.js +2 -0
- package/dist/dispatch-BGH5PVZ4.js +2 -0
- package/dist/doctor-SRMLENYN.js +2 -0
- package/dist/{docx-convert-DO5AQYD3.js → docx-convert-PA5S2S7P.js} +1 -1
- package/dist/{dossier-5XKNAK6Q.js → dossier-B6KBSRJY.js} +1 -1
- package/dist/evidence-FOWW3MOS.js +2 -0
- package/dist/evolve-cmd-MDK2H4JY.js +2 -0
- package/dist/evolve-remote-4G7YFC5H.js +2 -0
- package/dist/exit-manager-UZ7DGXS4.js +2 -0
- package/dist/{explain-cmd-KNDORU2D.js → explain-cmd-A5YMPXAJ.js} +1 -1
- package/dist/explain-cmd-Q4NLNJFB.js +12 -0
- package/dist/explore-MWUMVGRM.js +2 -0
- package/dist/explore-context-tty-QLMZGYBX.js +2 -0
- package/dist/explore-entry-QMCVGRP4.js +6 -0
- package/dist/{explore-live-XIWWUV52.js → explore-live-QIET6WO4.js} +1 -1
- package/dist/{explore-run-tty-M56I23IF.js → explore-run-tty-6UTBRCEF.js} +2 -2
- package/dist/{extract-bind-LZ22VFKB.js → extract-bind-UTERWZMW.js} +3 -3
- package/dist/extract-chat-4WBNRVPG.js +2 -0
- package/dist/{extract-cmd-46E2XDWZ.js → extract-cmd-SYZX6CML.js} +2 -2
- package/dist/extract-headless-QBF77JWP.js +2 -0
- package/dist/{feeder-NGWIPZ26.js → feeder-VAY4NYBX.js} +1 -1
- package/dist/folder-flags-IJ556UET.js +2 -0
- package/dist/gaps-cmd-E55OGZ7P.js +3 -0
- package/dist/gate-5UIJVMHL.js +2 -0
- package/dist/gate-VJ7W5QIH.js +2 -0
- package/dist/{generate-headless-HXAVEAEZ.js → generate-headless-VYD2QIUO.js} +3 -3
- package/dist/hold-passthrough-ZHOC2Q26.js +2 -0
- package/dist/identity-66TGWITQ.js +2 -0
- package/dist/{impact-cmd-TJTUFAFO.js → impact-cmd-3P6SKFJC.js} +2 -2
- package/dist/index.js +185 -184
- package/dist/ingest-6UQGSQYU.js +2 -0
- package/dist/ingest-cmd-HMTLO5MB.js +8 -0
- package/dist/ingest-remote-NIW5VAGW.js +2 -0
- package/dist/install-KJDAGU2R.js +2 -0
- package/dist/{interactive-bind-SOD7VTAY.js → interactive-bind-K3ZQFHLH.js} +4 -4
- package/dist/{interactive-remote-7ZSTI66T.js → interactive-remote-SGM76D6M.js} +2 -2
- package/dist/lane-EHU4JRRU.js +2 -0
- package/dist/lattice-auth-DCAVEQKY.js +2 -0
- package/dist/lifecycle-cmd-Y5DH2PL5.js +2 -0
- package/dist/list-cmd-RYHICCUV.js +3 -0
- package/dist/list-commands-QFTIQE6Q.js +2 -0
- package/dist/{list-remote-EFCET42K.js → list-remote-PWAQBF57.js} +1 -1
- package/dist/{locks-cmd-AZKCSGHI.js → locks-cmd-76IU4JB7.js} +1 -1
- package/dist/{logical-ids-74PLU3VR.js → logical-ids-YMNV2MDB.js} +1 -1
- package/dist/login-flow-W7RAVXSD.js +2 -0
- package/dist/maintenance-cmd-JNP2KCSI.js +2 -0
- package/dist/mobile-prompts-SP2RULD7.js +2 -0
- package/dist/onboarding-YPIKXNYA.js +5 -0
- package/dist/open-provider-LXCPVNUU.js +2 -0
- package/dist/{pdf-convert-YB6PJFMI.js → pdf-convert-N2C3KB4Q.js} +1 -1
- package/dist/persist-recorded-session-BWGA7WXR.js +3 -0
- package/dist/phase-seed-G5JSYKSL.js +2 -0
- package/dist/pipeline-YE4IRKQX.js +2 -0
- package/dist/{policy-commands-4PUGESCW.js → policy-commands-MSJIPHDB.js} +1 -1
- package/dist/prepare-target-G7LU4LYX.js +2 -0
- package/dist/pull-cmd-G3PVSSFP.js +2 -0
- package/dist/pull-route-5JQUUSU7.js +2 -0
- package/dist/readmodel-FARAAPUU.js +2 -0
- package/dist/real-device-run-425XK527.js +2 -0
- package/dist/reconcile-cmd-QJBYZVUB.js +5 -0
- package/dist/reconcile-deps-TILDRCHG.js +2 -0
- package/dist/{reconcile-remote-3W6ZTO3G.js → reconcile-remote-JMV26DLX.js} +2 -2
- package/dist/recording-banner-VZ67EWWQ.js +2 -0
- package/dist/registry-3YMKU5GC.js +2 -0
- package/dist/remote-entry-6LQRYR5F.js +2 -0
- package/dist/remote-mode-35BQUMEL.js +4 -0
- package/dist/remote-words-QXVFVHOB.js +2 -0
- package/dist/{require-project-folder-3DTI2CVB.js → require-project-folder-O2XCXDRE.js} +1 -1
- package/dist/resolve-run-intent-QCRZPYXM.js +2 -0
- package/dist/{resolver-CDF7QKVD.js → resolver-LWXOB7PH.js} +1 -1
- package/dist/revert-F6MKJ73M.js +2 -0
- package/dist/review-cmd-PYU7YCAC.js +5 -0
- package/dist/run-EABFRFOF.js +2 -0
- package/dist/run-LX3ARF53.js +2 -0
- package/dist/run-remote-PS45MTHW.js +2 -0
- package/dist/run-startup-gate-YBQB2JLF.js +2 -0
- package/dist/run-test-md-XYOCVA6F.js +20 -0
- package/dist/session-worker.js +2 -2
- package/dist/{sessions-cmd-TLUITRG5.js → sessions-cmd-WUWZYZJW.js} +2 -2
- package/dist/{sessions-remote-INO7AWKB.js → sessions-remote-4J7ITZB4.js} +1 -1
- package/dist/{skill-installer-7JH5QCJF.js → skill-installer-54ZAFNOB.js} +1 -1
- package/dist/store-2F26FIUS.js +2 -0
- package/dist/store-choice-ZE7AZMRC.js +2 -0
- package/dist/store-guard-X5FIEZWZ.js +2 -0
- package/dist/{store-site-K5NHLI7D.js → store-site-AFXB6SBW.js} +1 -1
- package/dist/{stream-warnings-GM7YEOVG.js → stream-warnings-I5LUWVFU.js} +1 -1
- package/dist/support-id-RISKXA53.js +2 -0
- package/dist/sync-cmd-TAVE44DU.js +2 -0
- package/dist/sync-setup-M65RX34Y.js +2 -0
- package/dist/tcg-generate-OXZF7TNQ.js +2 -0
- package/dist/{test-definition-53XNBEDE.js → test-definition-GXEKFRRB.js} +1 -1
- package/dist/testmd-actions-4OHRME2Z.js +2 -0
- package/dist/{testmd-sync-LYHEXWCT.js → testmd-sync-HM24JCS7.js} +1 -1
- package/dist/token-refresh-3SEDPIXO.js +2 -0
- package/dist/{use-case-ref-44BPIP4N.js → use-case-ref-E3PJDHQB.js} +1 -1
- package/dist/{validate-basic-66XDPA3S.js → validate-basic-HWDR665U.js} +1 -1
- package/dist/verdicts-KB6YTIY6.js +2 -0
- package/dist/{version-check-SHNVYTMU.js → version-check-DRE5KT7F.js} +1 -1
- package/dist/{view-cmd-QOB3O6YW.js → view-cmd-3UKV3YEX.js} +1 -1
- package/dist/walk-session-W6OLG5NT.js +2 -0
- package/dist/with-telemetry-BF4BGK5S.js +2 -0
- package/package.json +11 -11
- package/dist/ChatSurface-Z26BOE5U.js +0 -2
- package/dist/ChromeProfilePicker-ODRIAXL3.js +0 -2
- package/dist/EvidenceViewOffer-6344EX74.js +0 -2
- package/dist/FolderPicker-4PCYHE75.js +0 -2
- package/dist/InfoBox-NJ2DL7YC.js +0 -2
- package/dist/LinksBox-HNDNFVUT.js +0 -2
- package/dist/ProfilesView-DEJKJOHY.js +0 -2
- package/dist/ProjectPicker-DTWMWOH7.js +0 -2
- package/dist/SaveSessionPrompt-3GCLB3ZT.js +0 -2
- package/dist/SingleShotApp-HMOXO5DW.js +0 -2
- package/dist/SummaryBox-7PPDMSSM.js +0 -2
- package/dist/TestMdRunView-QLKRUU4V.js +0 -2
- package/dist/TestrunEvidenceTable-T2JUB4TE.js +0 -2
- package/dist/app-download-GKRF2EIM.js +0 -2
- package/dist/bind-SSHAZAB3.js +0 -2
- package/dist/bootstrap-XGKU4WXB.js +0 -2
- package/dist/chat-committer-ZKEKJA2R.js +0 -2
- package/dist/chat-controller-FXRJXUG3.js +0 -2
- package/dist/child-JHYENXE7.js +0 -2
- package/dist/chunk-2RBMQTYS.js +0 -26
- package/dist/chunk-5F5IVART.js +0 -8
- package/dist/chunk-6SD4XTYC.js +0 -6
- package/dist/chunk-7YV2FCN4.js +0 -3
- package/dist/chunk-A2DODRHG.js +0 -2
- package/dist/chunk-BJO6J5X2.js +0 -3
- package/dist/chunk-DIOK3SER.js +0 -34
- package/dist/chunk-DREQ3RAA.js +0 -2
- package/dist/chunk-HC6VLPUB.js +0 -5
- package/dist/chunk-J4FIESTB.js +0 -2
- package/dist/chunk-NZJSGINB.js +0 -47
- package/dist/chunk-SXRHKXSE.js +0 -2
- package/dist/chunk-UJLULWSR.js +0 -21
- package/dist/chunk-ULIIYKZB.js +0 -7
- package/dist/chunk-UXGMKRS4.js +0 -102
- package/dist/chunk-VO66KP2W.js +0 -2
- package/dist/chunk-X52YIWGG.js +0 -13
- package/dist/chunk-ZIHQ5JGB.js +0 -18
- package/dist/commands-JBFLLT7A.js +0 -2
- package/dist/cover-cmd-DU6ZYJFL.js +0 -2
- package/dist/design-chat-ZICGVYIH.js +0 -2
- package/dist/design-headless-HYWZIIDS.js +0 -2
- package/dist/design-remote-HPX4VZ63.js +0 -3
- package/dist/device-env-4P4GUVBW.js +0 -2
- package/dist/dispatch-BV6XMCN3.js +0 -2
- package/dist/doctor-Z2YQ2DBX.js +0 -2
- package/dist/evidence-BJIID6VT.js +0 -2
- package/dist/evolve-cmd-GZCUSCEK.js +0 -2
- package/dist/evolve-remote-LILOAHYH.js +0 -2
- package/dist/exit-manager-EGWAZHCR.js +0 -2
- package/dist/explain-cmd-LXIVHGN7.js +0 -12
- package/dist/explore-SA2P3SGX.js +0 -2
- package/dist/explore-context-tty-PERKIWXD.js +0 -2
- package/dist/explore-entry-E6EY3VV3.js +0 -6
- package/dist/extract-chat-Z64LEAJ5.js +0 -2
- package/dist/extract-headless-XLS56LMN.js +0 -2
- package/dist/folder-flags-ZIDJVDKX.js +0 -2
- package/dist/gaps-cmd-XYOBJVTO.js +0 -3
- package/dist/gate-AK44VDHC.js +0 -2
- package/dist/gate-NB5CJMTN.js +0 -2
- package/dist/hold-passthrough-JGHWMYDM.js +0 -2
- package/dist/identity-HL5CJJXR.js +0 -2
- package/dist/ingest-ZHHHBUXR.js +0 -2
- package/dist/ingest-cmd-OJSKTSQK.js +0 -8
- package/dist/ingest-remote-2WM6PYUW.js +0 -2
- package/dist/install-JBWBF3WX.js +0 -2
- package/dist/lane-CNGO7LH5.js +0 -2
- package/dist/lattice-auth-UQPFQSG7.js +0 -2
- package/dist/lifecycle-cmd-DGIO3VAO.js +0 -2
- package/dist/list-cmd-HQIN3HX4.js +0 -3
- package/dist/list-commands-OFRRBU3D.js +0 -2
- package/dist/login-flow-SYKXXDLH.js +0 -2
- package/dist/maintenance-cmd-X5247RSJ.js +0 -2
- package/dist/mobile-prompts-I66ENBDW.js +0 -2
- package/dist/onboarding-6HIP3KW6.js +0 -5
- package/dist/open-provider-XDJKT3W3.js +0 -2
- package/dist/persist-recorded-session-RSSMTVF3.js +0 -3
- package/dist/phase-seed-ZZSJME7M.js +0 -2
- package/dist/pipeline-NTJDH5TC.js +0 -2
- package/dist/prepare-target-AI3GGZF6.js +0 -2
- package/dist/pull-cmd-NRVB5ZN7.js +0 -2
- package/dist/pull-route-FWCZW76M.js +0 -2
- package/dist/readmodel-TRV4E3MW.js +0 -2
- package/dist/real-device-run-NQ7RNH7C.js +0 -2
- package/dist/reconcile-cmd-7B7THAFJ.js +0 -5
- package/dist/reconcile-deps-UDQBWSLE.js +0 -2
- package/dist/recording-banner-WVDTWTSE.js +0 -2
- package/dist/registry-PFOSXOIH.js +0 -2
- package/dist/remote-entry-BZU4NFNS.js +0 -2
- package/dist/remote-mode-NXUKDUXG.js +0 -4
- package/dist/remote-words-JRDDNOZ6.js +0 -2
- package/dist/resolve-run-intent-QCL7QXIB.js +0 -2
- package/dist/revert-QKHPCRT6.js +0 -2
- package/dist/review-cmd-XBK3TGRE.js +0 -5
- package/dist/run-CSYGVV3D.js +0 -2
- package/dist/run-YUHHD54J.js +0 -2
- package/dist/run-remote-SFR3F2T5.js +0 -2
- package/dist/run-startup-gate-QSFJRYUY.js +0 -2
- package/dist/run-test-md-ZSREINDQ.js +0 -20
- package/dist/store-X4UK4AP7.js +0 -2
- package/dist/store-choice-27HDIFTU.js +0 -2
- package/dist/store-guard-ZXKB5DQH.js +0 -2
- package/dist/sync-cmd-2PCO7LZA.js +0 -2
- package/dist/sync-setup-5WQO73Y5.js +0 -2
- package/dist/tcg-generate-DGJD5KSM.js +0 -2
- package/dist/testmd-actions-XE2JPQHB.js +0 -2
- package/dist/token-refresh-E4FTJVHY.js +0 -2
- package/dist/verdicts-PVB7TV5S.js +0 -2
- package/dist/walk-session-WIEROYOT.js +0 -2
- package/dist/with-telemetry-T2PWI5CY.js +0 -2
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { createRequire } from 'module'; const require = createRequire(import.meta.url);
|
|
2
|
-
import{b as g}from"./chunk-
|
|
2
|
+
import{b as g}from"./chunk-BRWCWZE3.js";import{readFileSync as o,writeFileSync as h,mkdirSync as u,readdirSync as a,unlinkSync as s,existsSync as l,chmodSync as f}from"fs";import{join as n,dirname as P}from"path";var d=class{baseDir;profilesDir;configFile;constructor(t=g){this.baseDir=t,this.profilesDir=n(t,"profiles"),this.configFile=n(t,"config.json")}readConfig(){try{return JSON.parse(o(this.configFile,"utf-8"))}catch{return{}}}writeConfig(t){u(this.baseDir,{recursive:!0,mode:448}),h(this.configFile,JSON.stringify(t,null,2)+`
|
|
3
3
|
`),f(this.configFile,384)}getActiveProfile(){return this.readConfig().active_profile??null}setActiveProfile(t){let i=this.readConfig();i.active_profile=t,this.writeConfig(i)}getDefaultEnv(){return this.readConfig().default_env??"prod"}setDefaultEnv(t){let i=this.readConfig();i.default_env=t,this.writeConfig(i)}credentialsPath(t,i){return n(this.profilesDir,t,i,"credentials")}clientPath(t,i){return n(this.profilesDir,t,i,"client.json")}basicAuthPath(t,i){return n(this.profilesDir,t,i,"basic-auth")}profileConfigPath(t,i){return n(this.profilesDir,t,i,"profile-config.json")}saveProfileConfig(t,i,r){let e=this.loadProfileConfig(t,i)??{};this.writeSecure(this.profileConfigPath(t,i),{...e,...r})}loadProfileConfig(t,i){try{return JSON.parse(o(this.profileConfigPath(t,i),"utf-8"))}catch{return null}}writeSecure(t,i){try{u(P(t),{recursive:!0,mode:448}),h(t,JSON.stringify(i,null,2)+`
|
|
4
4
|
`),f(t,384)}catch(r){let e=r instanceof Error?r.message:String(r);process.stderr.write(`[auth] Failed to save credentials: ${e}
|
|
5
5
|
`)}}saveCredentials(t,i,r){this.writeSecure(this.credentialsPath(t,i),r)}loadCredentials(t,i){try{return JSON.parse(o(this.credentialsPath(t,i),"utf-8"))}catch{return null}}saveClient(t,i,r){this.writeSecure(this.clientPath(t,i),r)}loadClient(t,i){try{return JSON.parse(o(this.clientPath(t,i),"utf-8"))}catch{return null}}getActiveCredentials(){let t=this.getActiveProfile();if(!t)return{credentials:null,profile:null,env:null};let i=this.getDefaultEnv();return{credentials:this.loadCredentials(t,i),profile:t,env:i}}saveBasicAuth(t,i,r){this.writeSecure(this.basicAuthPath(t,i),r)}loadBasicAuth(t,i){try{return JSON.parse(o(this.basicAuthPath(t,i),"utf-8"))}catch{return null}}deleteBasicAuth(t,i){try{s(this.basicAuthPath(t,i))}catch{}}resolveAuth(){let t=this.getActiveProfile();if(!t)return null;let i=this.getDefaultEnv(),r=this.loadBasicAuth(t,i);return r?{method:"basic",...r,profile:t,env:i}:this.loadCredentials(t,i)?{method:"oauth",profile:t,env:i}:null}listProfiles(){let t=[];try{for(let i of a(this.profilesDir)){let r=n(this.profilesDir,i);try{for(let e of a(r)){let c=n(r,e),v=l(n(c,"credentials")),p=l(n(c,"client.json")),y=l(n(c,"basic-auth"));(v||p||y)&&t.push({profile:i,env:e})}}catch{}}}catch{}return t}deleteProfile(t,i){try{s(this.credentialsPath(t,i))}catch{}if(this.getActiveProfile()===t){let r=this.readConfig();delete r.active_profile,this.writeConfig(r)}}deleteProfileFull(t,i){if(i){try{s(this.credentialsPath(t,i))}catch{}try{s(this.clientPath(t,i))}catch{}try{s(this.basicAuthPath(t,i))}catch{}try{s(this.profileConfigPath(t,i))}catch{}}else try{let r=n(this.profilesDir,t);for(let e of a(r)){try{s(n(r,e,"credentials"))}catch{}try{s(n(r,e,"client.json"))}catch{}try{s(n(r,e,"basic-auth"))}catch{}try{s(n(r,e,"profile-config.json"))}catch{}}}catch{}}};export{d as a};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { createRequire } from 'module'; const require = createRequire(import.meta.url);
|
|
2
|
-
import{
|
|
2
|
+
import{f as i}from"./chunk-BZEW7CSM.js";import{a as s,b as c,c as n}from"./chunk-ZCRZFAOT.js";import{appendFileSync as m,mkdirSync as u,readFileSync as g,writeFileSync as f}from"fs";import o from"path";var l=!1,p,x=({verb:r,contextInstanceId:e,sessionId:t})=>l&&e===null?n(p??r,t):c(e,r,t);function P(r){l=!0,p=r}function h(r,e){return{path:r,line:(t,d={})=>{if(r!==null)try{u(o.dirname(r),{recursive:!0}),m(r,JSON.stringify({ts:new Date().toISOString(),level:"info",user_session_id:e,source:"kane-cli",kind:t,data:d})+`
|
|
3
3
|
`)}catch{}}}}function k(r,e){return h(i()?n(r,e):null,e)}var a=r=>o.join(s(),"shared","logs","sessions",`${r}.trace`);function R(r,e){try{u(o.dirname(a(r)),{recursive:!0}),f(a(r),e)}catch{}}function O(r){if(!i())return null;try{return g(a(r),"utf8").trim()||null}catch{return null}}export{x as a,P as b,h as c,k as d,R as e,O as f};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { createRequire } from 'module'; const require = createRequire(import.meta.url);
|
|
2
|
-
import{a as ue,c as fe}from"./chunk-
|
|
2
|
+
import{a as ue,c as fe}from"./chunk-OPR5XIPT.js";import{a as ae}from"./chunk-6PZ3SVWE.js";import{k as re,l as oe}from"./chunk-AXOSLGQ4.js";import{a as C,b as k}from"./chunk-QLGQDNA3.js";import{c as de,d as ce,f as le}from"./chunk-JZ7GFPKZ.js";import{B as A,Ba as ie,Ha as f,M as K,T as H,V as x,W as q,X as O,Z as B,ba as G,fa as z,ga as J,ia as Q,ja as V,ka as X,ma as Y,na as Z,pa as P,qa as ee,ra as ne,s as W,ua as te,va as se,y as D,z as U}from"./chunk-RHQLDNZL.js";import{a as w}from"./chunk-4C7WVQOD.js";import{oa as L}from"./chunk-5EAJO372.js";import{A as I}from"./chunk-BRWCWZE3.js";import{a as S}from"./chunk-WTMCDYR3.js";import{a as p}from"./chunk-FOJHSG5M.js";var ve={usecase:"use_case",scenario:"scenario",test:"test",ac:"acceptance_criterion",source:"source"},b={use_case:"the use case",scenario:"the scenario",test:"the test",acceptance_criterion:"the acceptance criterion",source:"the document"};async function pe(e,n,s,i=()=>{}){let r=e,t=r?.entity;if(typeof t!="string"||t==="")return null;let c=async d=>{if(typeof d!="string")return null;try{let a=await n.mainNode(s,d),o=ve[a.label];if(!o)return null;let l=o==="acceptance_criterion"?a.content.text:a.content.title;return{kind:o,id:a.name,title:typeof l=="string"&&l!==""?l:null}}catch(a){return i(`the conflict's node couldn't be read, so the save's refusal names nothing: ${k(a)}`),null}};if(r?.kind==="source")return{kind:"source",id:t,title:typeof r.fileName=="string"&&r.fileName!==""?r.fileName:null};if(r?.kind==="edge"){let[d,a]=r.ends?await Promise.all([c(r.ends.from),c(r.ends.to)]):[null,null];return d||a?{kind:"link",from:d,to:a}:null}if(r?.kind==="node"||t.startsWith("sha256:"))return c(t);try{return(await n.sources(s)).some(d=>d.sourceId===t)?{kind:"source",id:t,title:null}:null}catch(d){return i(`the project's sources couldn't be read, so the save's refusal names nothing: ${k(d)}`),null}}function $(e){if(e.kind==="source")return e.title?`${b.source} "${e.title}"`:"a document this session reads";let n=e.id?L(e.id):null;return e.kind==="acceptance_criterion"&&n?`${b[e.kind]} ${n}`:e.title?`${b[e.kind]} "${e.title}"`:n?`${b[e.kind]} ${n}`:b[e.kind]}function me(e,n,s,i=[]){return{code:"PROJECT_CHANGED",message:`not saved \u2014 another save also changed ${e.kind!=="link"?$(e):e.from&&e.to?`the link between ${$(e.from)} and ${$(e.to)}`:`a link to ${$(e.from??e.to)}`}`,detail:`this session can't be saved now, so ${Z(n)} won't reach the project`,remedy:V(s,i)}}function ke(e){let n=le(e);return n!==null?de(n,S()):ce("save",S())}async function ge(e,n){if(n.verb!=="evolve")return{notUpdated:[],stillStale:0,repins:new Map};let s=await e.sessionLog?.().catch(()=>[])??[],i=s.filter(t=>t.kind==="evolve_not_updated").at(-1)?.body,r=t=>Array.isArray(t)?t.filter(c=>typeof c=="string"):[];return{notUpdated:r(i?.use_cases),stillStale:r(i?.still_stale).length,repins:q(s)}}function _(e,n){let s=n==="agent"?" --mode agent":"";return e.verb==="evolve"?`kane-cli maintain evolve ${e.useCase??"--from-stale"}${s}`:e.verb==="design"&&e.useCase?`kane-cli design tests --use-case ${e.useCase}${s}`:`kane-cli context extract${s}`}async function Ke(e){let n={...e,trace:e.trace??ke(e.sid)},s=n.mode==="agent",i=n.print??(c=>{process.stdout.write(`${c}
|
|
3
3
|
`)}),r=(c,d)=>(n.trace.line("save_refused",{sid:n.sid,...c.code?{code:c.code}:{},exit:d}),s?n.emit({type:"error",code:c.code,message:c.message,...A(c)}):(re(c),i("")),d),t=!1;try{return await be(n,s,i,r,()=>t=!0)}catch(c){return c instanceof w&&c.retryable?r(t?f.saveUnconfirmed():f.noConnectionToSave(),2):r(f.assuranceOffOr(c,n.projectName,f.saveFailed("your work is")),1)}}async function be(e,n,s,i,r){let t;try{t=await e.person.getSession(e.sid)}catch(u){if(u instanceof w&&u.code==="NOT_FOUND")return i(f.noSuchSession(e.sid),2);throw u}if(t.ended==="failed")return i(f.sessionFailed(e.sid),2);if(t.ended!=="complete")return i(f.notFinished(e.sid,P(t.verb==="design"||t.verb==="evolve"?"design":"extract",e.sid,n)),2);if(t.scope?.state==="finalized")return T(e,t,{},n,s,i,r,!0);let c=await G(e.person,e.projectId,e.sid);if(!z(c,(t.scope?.position??t.basePosition)>t.basePosition))return await e.person.discard(e.sid,t.generation).catch(()=>{}),n?e.onProgress({kind:"save",sid:e.sid,phase:"saved",landed:0}):s(f.nothingToSave),0;let{notUpdated:d,repins:a}=await ge(e,t),o=O(x(t.verb,c),a);if(e.trace?.line("save_check",{sid:e.sid,verb:t.verb,counts:c}),n)return e.onProgress({kind:"save",sid:e.sid,phase:"check",project:e.projectName,counts:c,...d.length>0?{notUpdated:d}:{},...o.replaces?{replaces:o.replaces}:{},...o.keeps?{keeps:o.keeps}:{}}),e.yes?T(e,t,c,n,s,i,r):i(f.confirmRequired(e.sid),2);let l=(await e.person.project(e.projectId))?.mainPosition??null,g=l!==null&&l>t.basePosition;for(let u of ye(e.projectName,o,g))s(u);s("");let m=e.yes||await e.confirm("save this session? (y/N)");return e.yes||s(""),m?T(e,t,c,n,s,i,r):(s(`not saved \u2014 your work is kept in session ${e.sid}`),0)}function ye(e,n,s){return[p.bold(`save this session to "${e}"`),...J(n,s).map(([i,r])=>`${p.dim(` ${i.padEnd(10)}`)}${r}`)]}function we(e,n="",s=process.stdout.columns,i=null,r=null){let t=[];if(e.receipt!==null&&t.push(`${n}${p.green(`\u2714 ${e.receipt}`)}`),i?.line&&t.push(`${n}${p.dim(i.line)}`),i?.replacedHead&&i.replaced){t.push(`${n}${p.dim(i.replacedHead)}`);for(let d of i.replaced){if(t.push(`${n}${p.dim(` ${d.file}`)}`),d.by.length===0)continue;let a=` replaced by ${d.by.length===1?d.by[0]:`${d.by.slice(0,-1).join(", ")} and ${d.by[d.by.length-1]}`}`;!s||n.length+a.length<=s?t.push(`${n}${p.dim(a)}`):d.by.forEach((o,l)=>t.push(`${n}${p.dim(l===0?` replaced by ${o}`:` and ${o}`)}`))}}if(i?.needed){let d=[...D(i.needed,{cwd:process.cwd(),tests:i.needed.tests,indent:0,...s?{columns:s-n.length}:{}}),...U(i.needed.noStartPage,{indent:0})];for(let a of d)t.push(`${n}${p.dim(a)}`)}let c=Re(e.lines,i?.lines??[],r);if(c.length>0){t.push("");let d=a=>s&&!a.startsWith(" kane-cli ")?oe(a,s):a;for(let a of c)t.push(a.tone==="warning"?p.hex(I.amber)(d(a.text)):a.tone==="detail"?p.dim(a.command?$e(a.text,s):a.text):d(a.text));(e.support||i?.support)&&t.push(`if this keeps failing, share this id with support: ${W(e.support?"refused_TEST_MANAGER":"refused_TEST_FILES")}`)}return t}function $e(e,n){let s=e.indexOf("run: kane-cli ");if(!n||e.length<=n||s<0)return e;let i=e.match(/^ */)[0];return`${e.slice(0,s+4)}
|
|
4
4
|
${i} ${e.slice(s+5)}`}function Re(e,n,s){if(n.length===0)return e;if(e.length===0)return n;let i=c=>c.text.startsWith("next: "),r=e.findIndex(i),t=n.findIndex(i);return s!==null&&r>=0&&t>=0?[...e.slice(0,r),...n.slice(0,t),{text:s,tone:"plain"},...e.slice(r+1),...n.slice(t+2)]:[...e,{text:"",tone:"plain"},...n]}async function T(e,n,s,i,r,t,c,d=!1){e.onProgress({kind:"save",sid:e.sid,phase:"saving"}),d&&!i&&r(f.savedBefore);let a=o=>{i||r(d?`finishing test cases in Test Manager\u2026 ${o}`:`saving\u2026 ${o}`)};try{c();let o=await e.person.land(e.sid,n.generation),l=n.verb==="design"||n.verb==="reconcile"||n.verb==="evolve"?await fe({person:e.person,projectId:n.projectId,landing:o,cwd:process.cwd()}):null,g=o.testManager?.notCovered?.length?await ue({person:e.person,projectId:n.projectId,landing:o}):void 0;e.trace?.line("save_landed",Ne(e.sid,o,l));let m=B(s),{stillStale:u,repins:R}=await ge(e,n),{changes:M,approves:j,archives:E,removes:F}=s,v=O(x(n.verb,s),R);if(e.onProgress({kind:"save",sid:e.sid,phase:"saved",landed:o.landed,...m>0?{heldChanges:m}:{},...M?{changes:M}:{},...j?{approves:j}:{},...E?{archives:E}:{},...F?{removes:F}:{},...v.replaces?{replaces:v.replaces}:{},...v.keeps?{keeps:v.keeps}:{},...s.uncounted?{uncounted:s.uncounted}:{},...o.testManager!==void 0?{testManager:o.testManager}:{},...g?{sessionUseCases:[...g]}:{},...l!==null?{testFiles:l}:{},...u>0?{stillStale:u}:{}}),!i){let y=ne(o.testManager,e.sid,e.projectName,g,ee(l)),N=l===null?null:te(l,e.sid,d,{testManager:o.testManager});if(d){let h=y.receipt===null&&y.lines.length===0;a(o.testManager?.error?"stopped":h?"nothing left to do":"done"),(y.receipt!==null||N?.line)&&r("")}else{a("saved"),r("");let h=H(v);r(p.green(`\u2714 saved to "${e.projectName}"${h?` \u2014 ${h}`:""}`));for(let he of K(v))r(p.dim(` ${he}`))}for(let h of we(y,"",void 0,N,se(o.testManager,N,e.projectName)))r(h);if(u>0)for(let h of ie.stillOutOfDate(u))r(h);r("")}return 0}catch(o){if(!(o instanceof w))throw o;if(o.retryable)return a("failed"),i||r(""),t(f.saveUnconfirmed(),2);if(o.code==="SESSION_NOT_FINISHED")return a("failed"),i||r(""),t(f.notFinished(e.sid,P(n.verb==="design"||n.verb==="evolve"?"design":"extract",e.sid,i)),2);if(o.code==="SCOPE_BEHIND_HEAD"){let g={kind:"save",sid:e.sid,phase:"behind"},m=await pe(o.extra.conflict,e.person,e.projectId,C("remote-save")),u=Y(n);if(i){let R=u.length>0?{cmd:`${X(u)} --mode agent`,why:"start again from the latest, adding this session's documents again"}:{cmd:_(n,e.mode),why:"start again from the latest"};return e.emit({...ae(g),...m?{conflict:m}:{},next:[R]}),2}return e.onProgress(g),a("failed"),r(""),t(m?me(m,s,_(n,e.mode),u):f.projectChanged(e.projectName,s,_(n,e.mode),u),2)}let l=o.code==="SCOPE_RECORD_REFUSED";return l&&C("remote-save")(`session ${e.sid}: the save was refused: ${k(o)}`),e.onProgress({kind:"save",sid:e.sid,phase:"failed",reason:"not_accepted",...l?{code:"SCOPE_RECORD_REFUSED"}:{}}),i?1:(a("failed"),r(""),t(f.saveFailed(Q(s)),1))}}function Ne(e,n,s){return{sid:e,landed:n.landed,...n.testManager!==void 0?{test_manager:n.testManager===null?null:{error:n.testManager.error??null}}:{},...s!==null?{test_files:s==="unread"?"unread":{written:s.wrote.length,refused:s.refused.length}}:{}}}export{pe as a,me as b,ke as c,Ke as d,we as e,Ne as f};
|
|
@@ -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-H6IPGZTP.js";import{P as v,ta as O,xb as y,yb as G,zb as b}from"./chunk-5EAJO372.js";import{f as i,g as a,i as S}from"./chunk-KU3YHPWZ.js";import{o as m}from"./chunk-HYJVYYAZ.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,4 +1,4 @@
|
|
|
1
1
|
import { createRequire } from 'module'; const require = createRequire(import.meta.url);
|
|
2
|
-
import{a as F}from"./chunk-2RUSXQ3O.js";import{a as k}from"./chunk-FWGUISUG.js";import{b as $}from"./chunk-
|
|
2
|
+
import{a as F}from"./chunk-2RUSXQ3O.js";import{a as k}from"./chunk-FWGUISUG.js";import{b as $}from"./chunk-5ORBAYTU.js";import{deflateSync as Y}from"zlib";function j(n,s){let e=Buffer.alloc(4);e.writeUInt32BE(s.length);let o=Buffer.concat([Buffer.from(n,"latin1"),s]),i=Buffer.alloc(4);return i.writeUInt32BE(F(o)),Buffer.concat([e,o,i])}var G={1:0,3:2,4:6};function N(n,s){let{width:e,height:o,channels:i}=s;if(n.byteLength!==e*o*i)throw new Error(`pngEncode: raw length ${n.byteLength} != ${e}x${o}x${i}`);let d=Buffer.alloc(13);d.writeUInt32BE(e,0),d.writeUInt32BE(o,4),d[8]=8,d[9]=G[i];let t=e*i,a=Buffer.alloc(o*(t+1));for(let f=0;f<o;f++)a[f*(t+1)]=0,n.copy(a,f*(t+1)+1,f*t,(f+1)*t);return Buffer.concat([Buffer.from([137,80,78,71,13,10,26,10]),j("IHDR",d),j("IDAT",Y(a)),j("IEND",Buffer.alloc(0))])}var U=64,X=16,J=12e6,V=6e6,K=5e3,W=3e4,H="",_=class extends Error{constructor(e,o){super(`${e}: ${o}`);this.code=e}};async function q(n,s,e){let o=n.objs.has(s)?n.objs:n.commonObjs.has(s)?n.commonObjs:null;if(o)try{return o.get(s)??null}catch{return null}if(e.remainingMs<=0)return null;let i=s.startsWith("g_")?n.commonObjs:n.objs,d,t=Date.now();try{return await Promise.race([new Promise(a=>{try{i.get(s,f=>a(f??null))}catch{a(null)}}),new Promise(a=>{d=setTimeout(()=>a(null),Math.min(K,e.remainingMs))})])}finally{clearTimeout(d),e.remainingMs-=Date.now()-t}}async function z(){let n=await import("pdfjs-dist/legacy/build/pdf.mjs");return n.default??n}async function oe(n,s){let e=await z();H=e.version;let o={remainingMs:s?.resolveBudgetMs??W},i,d=e.getDocument({data:new Uint8Array(n),isEvalSupported:!1,verbosity:0});try{i=await d.promise}catch(t){throw t.name==="PasswordException"?new _("PDF_ENCRYPTED","password-protected \u2014 decrypt and re-ingest"):new _("PDF_UNREADABLE",String(t.message??t))}try{let t=[],a=[],f=new Map,D=[],T=new Map,R=0,A=0;for(let u=1;u<=i.numPages;u++){let O=await i.getPage(u);t.push(`[page ${u}]`);let C=await O.getTextContent(),c="",E=null;for(let m of C.items){if(typeof m!="object"||m===null||!("str"in m))continue;let p=m,P=Math.round(p.transform[5]);E!==null&&P!==E&&c.trim()!==""&&(t.push(c.trimEnd()),c=""),c!==""&&!c.endsWith(" ")&&p.str!==""&&!p.str.startsWith(" ")&&P===E&&(c+=" "),c+=p.str,A+=p.str.trim().length,E=P,p.hasEOL&&c.trim()!==""&&(t.push(c.trimEnd()),c="",E=null)}c.trim()!==""&&t.push(c.trimEnd());let B=await O.getOperatorList(),M=0;for(let m=0;m<B.fnArray.length;m++){let p=B.fnArray[m]===e.OPS.paintImageXObject,P=B.fnArray[m]===e.OPS.paintInlineImageXObject;if(!p&&!P)continue;M+=1;let h=`p${u}-${M}`,l=(v,L,w,S)=>{a.push({ref:h,page:u,media_type:"image/png",...L?{blob:L}:{},...S?{appearance:S}:{},delivery:v,...w?{duplicate_of:w}:{}}),t.push(v==="duplicate"&&w?`[img#${h}: image on page ${u} \u2014 same as img#${w}; cite img#${w}]`:`[img#${h} omitted: ${v}]`)};if(P){l("unsupported-image-kind");continue}let r=await q(O,B.argsArray[m][0],o);if(!r?.data||!r.width||!r.height){l("undecodable");continue}let I;if(r.kind===e.ImageKind.RGB_24BPP)I=3;else if(r.kind===e.ImageKind.RGBA_32BPP)I=4;else{l("unsupported-image-kind");continue}let y;try{y=N(Buffer.from(r.data.buffer,r.data.byteOffset,r.data.byteLength),{width:r.width,height:r.height,channels:I})}catch{l("undecodable");continue}let g=$(y);f.set(g,y);let b=k(Buffer.from(r.data.buffer,r.data.byteOffset,r.data.byteLength),{width:r.width,height:r.height,channels:I});if(r.width<U||r.height<U){l("below-dimension-floor",g,void 0,b);continue}let x=T.get(g);if(x!==void 0){l("duplicate",g,x,b);continue}if(y.byteLength>V){l("image-too-large",g,void 0,b);continue}if(R+y.byteLength>J){l("vision-byte-budget-reached",g,void 0,b);continue}if(D.length>=X){l("image-cap-reached",g,void 0,b);continue}T.set(g,h),R+=y.byteLength,D.push(h),a.push({ref:h,page:u,media_type:"image/png",blob:g,appearance:b,delivery:"selected"}),t.push(`[img#${h}: image on page ${u}]`)}}if(A===0&&i.numPages>0)throw new _("PDF_NO_TEXT_LAYER","no extractable text \u2014 image-only or scanned pdfs are not supported yet");return{projection:t.join(`
|
|
3
3
|
`)+`
|
|
4
4
|
`,inventory:a,blobs:f,delivered:D,pages:i.numPages,converter:{name:"pdfjs-dist",version:e.version,policy:"v1"}}}finally{await d.destroy().catch(()=>{})}}export{U as a,X as b,J as c,V as d,H as e,_ as f,oe as g};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { createRequire } from 'module'; const require = createRequire(import.meta.url);
|
|
2
|
-
import{h as w}from"./chunk-
|
|
2
|
+
import{h as w}from"./chunk-MTMHB5LF.js";import{b as f}from"./chunk-BRWCWZE3.js";import{a as h}from"./chunk-RZ4F3BHX.js";import{mkdtemp as O,rm as $}from"fs/promises";import{createWriteStream as R}from"fs";import{Readable as U}from"stream";import{pipeline as F}from"stream/promises";import{tmpdir as T}from"os";import{basename as z,join as A}from"path";import{access as x,cp as P,mkdir as g,readdir as y,readFile as S,rename as I,rm as k,stat as b,writeFile as v}from"fs/promises";import{basename as D,join as d}from"path";function u(){return d(f,"mobile","apps")}function m(){return d(u(),"index.json")}function C(){return{readIndex:async()=>{try{let e=JSON.parse(await S(m(),"utf8"));return{apps:Array.isArray(e.apps)?e.apps:[]}}catch{return{apps:[]}}},writeIndex:async r=>{await g(u(),{recursive:!0});let e=`${m()}.tmp`;await v(e,JSON.stringify(r,null,2)),await I(e,m())},exists:async r=>{try{return await x(r),!0}catch{return!1}},copy:(r,e)=>P(r,e,{recursive:!0,force:!0}),remove:r=>k(r,{recursive:!0,force:!0}),sizeOf:async r=>{try{return(await b(r)).size}catch{return}},now:()=>new Date}}var c=class{deps;constructor(e={}){this.deps={...C(),...e}}async list(){let{apps:e}=await this.deps.readIndex();return[...e].sort((t,s)=>s.lastUsedAt.localeCompare(t.lastUsedAt))}async find(e){return(await this.deps.readIndex()).apps.find(t=>t.key===e)}async put(e){let t=await this.deps.readIndex(),s=t.apps.find(n=>n.key===e.key),a=this.deps.now().toISOString();if(s&&await this.deps.exists(s.path))return s.lastUsedAt=a,await this.deps.writeIndex(t),s;s&&(t.apps=t.apps.filter(n=>n.key!==e.key));let l=D(e.name??e.sourcePath),o=d(u(),e.key),p=d(o,l);await g(o,{recursive:!0}),await this.deps.copy(e.sourcePath,p);let i={key:e.key,path:p,name:l,source:e.source,...e.source==="local"?{originPath:e.sourcePath}:{},addedAt:a,lastUsedAt:a,...await this.deps.sizeOf(p).then(n=>n?{bytes:n}:{})};return t.apps=[...t.apps.filter(n=>n.key!==e.key),i],await this.deps.writeIndex(t),i}async exists(e){if(await this.deps.sizeOf(e.path)!==void 0)return!0;try{return await y(e.path),!0}catch{return!1}}async forget(e){let t=await this.deps.readIndex(),s=t.apps.find(a=>a.key===e);s&&(await this.deps.remove(s.path),t.apps=t.apps.filter(a=>a.key!==e),await this.deps.writeIndex(t))}async prune(){let e=await this.deps.readIndex(),t=[];for(let s of e.apps)if(await this.deps.sizeOf(s.path)!==void 0)t.push(s);else try{await y(s.path),t.push(s)}catch{}return t.length!==e.apps.length&&await this.deps.writeIndex({apps:t}),t}};var E=30*6e4,j=/^APP\d{6,}$/;function Y(r){return!!r&&j.test(r.trim())}function _(){return{store:new c,client:(r,e)=>new w(r,e),fetchToFile:async(r,e)=>{let t=await h(r,{method:"GET",signal:AbortSignal.timeout(E)});if(!t.ok)throw new Error(`Downloading the app failed: ${t.status} ${t.statusText}`);if(!t.body)throw new Error("Downloading the app failed: empty response body");await F(U.fromWeb(t.body),R(e))}}}async function Z(r,e={}){let t={..._(),...e},s=r.appId.trim(),a=await t.store.find(s);if(a&&await t.store.exists(a))return r.onProgress?.(`using the copy of ${a.name} already on this machine`),await t.store.put({key:s,sourcePath:a.path,source:"cloud",name:a.name}),{path:a.path,name:a.name,fromStore:!0};r.onProgress?.(`looking up ${s}\u2026`);let o=await t.client(r.baseUrl,r.auth).details(s);if(r.accepts&&!r.accepts.some(i=>o.name.toLowerCase().endsWith(i)))throw new Error(`${o.name} cannot run on this device \u2014 expected ${r.accepts.join(" or ")}.`);r.onProgress?.(`downloading ${o.name} \u2014 this can take a while, please wait\u2026`);let p=await O(A(T(),"kane-app-dl-"));try{let i=A(p,z(o.name));await t.fetchToFile(o.url,i);let n=await t.store.put({key:s,sourcePath:i,source:"cloud",name:o.name});return r.onProgress?.(`${o.name} is ready`),{path:n.path,name:n.name,fromStore:!1,details:o}}finally{await $(p,{recursive:!0,force:!0})}}export{c as a,Y as b,Z as c};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { createRequire } from 'module'; const require = createRequire(import.meta.url);
|
|
2
|
-
import{
|
|
2
|
+
import{a as G}from"./chunk-UJYC2XDD.js";import{c as D}from"./chunk-SMXABALN.js";import{e as k}from"./chunk-SB26HQO7.js";import{a as q}from"./chunk-NIBNVPAE.js";import{a as $}from"./chunk-HCBYKLMW.js";import{a as S}from"./chunk-V24LUINK.js";import{A as s}from"./chunk-BRWCWZE3.js";import{a as u,b as i}from"./chunk-33DWJV67.js";import{a as Z}from"./chunk-6YGTRKDT.js";import{e as T}from"./chunk-UR6MHSHU.js";var e=T(Z(),1);var r=T($(),1);function ee(n,w,c){return{id:n,label:`${w} (${n})`,isActive:n===c}}var le={escLabel:"use defaults",newestFirst:!0};function me({resolver:n,currentProjectId:w,env:c,onSelect:j,onCancel:E,escLabel:R,newestFirst:B=!1}){let[H,v]=(0,e.useState)([]),[J,l]=(0,e.useState)(!0),[K,m]=(0,e.useState)(!1),[Q,g]=(0,e.useState)(!1),[X,x]=(0,e.useState)(null),[d,p]=(0,e.useState)("list"),[I,A]=(0,e.useState)(""),[C,h]=(0,e.useState)(null),[_,Y]=(0,e.useState)(""),b=(0,e.useRef)(!1),F=(0,e.useRef)(!0);(0,e.useEffect)(()=>{if(!n){x("Login first to browse projects"),l(!1);return}let o=new AbortController,a=_.trim();return F.current?l(!0):a&&g(!0),m(!0),x(null),(async()=>{try{let t=n.cached??await n.resolve();if(!t){x("Login first to browse projects"),l(!1),m(!1),g(!1);return}let L=S(c),M=new k(L.tmsBaseUrl,t.username,t.access_key),f=!0,N=0,O=B?{sort:"-created_at"}:{},W=a?{signal:o.signal,name:a,perPage:10,...O}:{signal:o.signal,perPage:10,...O};for await(let y of M.listProjectsStream(W)){if(f&&(l(!1),g(!1),F.current=!1,f=!1),y.totalLoaded===0&&y.done&&N===0&&!a){b.current=!0,p("naming"),m(!1);return}let U=y.projects.map(P=>ee(P.project_id,P.name,w));v(N===0?U:P=>[...P,...U]),N+=y.projects.length,y.done&&m(!1)}f&&(l(!1),m(!1),g(!1))}catch(t){if(t?.name==="AbortError")return;x(t instanceof Error?t.message:String(t)),l(!1),m(!1),g(!1)}})(),()=>o.abort()},[n,w,c,_,B]);let z=(0,e.useCallback)(o=>{let a=o.trim();if(!a){h("Name cannot be empty");return}h(null),p("creating"),(async()=>{try{if(!n)throw new Error("Not authenticated");let t=n.cached??await n.resolve();if(!t)throw new Error("Not authenticated");let L=S(c),f=await new k(L.tmsBaseUrl,t.username,t.access_key).createProject(a);j(f.id,f.name)}catch(t){h(t instanceof Error?t.message:String(t)),p("naming")}})()},[n,c,j]),V=(0,e.useCallback)(()=>{A(""),h(null),b.current?E():p("list")},[E]);return d==="naming"||d==="creating"?(0,r.jsxs)(u,{flexDirection:"column",borderStyle:"round",borderColor:s.orange,paddingX:2,paddingY:1,children:[(0,r.jsx)(i,{color:s.orange,bold:!0,children:"Create new project"}),b.current&&(0,r.jsx)(u,{marginTop:1,children:(0,r.jsx)(i,{color:s.dim,children:"No projects yet \u2014 let's create one."})}),(0,r.jsxs)(u,{marginTop:1,children:[(0,r.jsx)(i,{color:s.dim,children:"Name: "}),d==="naming"?(0,r.jsx)(D,{value:I,onChange:o=>{A(o),C&&h(null)},onSubmit:z,onCancel:V}):(0,r.jsx)(i,{children:I})]}),C&&(0,r.jsx)(u,{marginTop:1,children:(0,r.jsx)(i,{color:s.red,children:C})}),d==="creating"&&(0,r.jsx)(u,{marginTop:1,children:(0,r.jsx)(i,{color:s.dim,children:"Creating..."})}),d==="naming"&&(0,r.jsx)(q,{bindings:[{keys:"\u21B5",label:"create"}],escBackLabel:b.current?"cancel":"back"})]}):(0,r.jsx)(G,{title:"Projects",items:H,loading:J,loadingMore:K,searching:Q,preserveSelectionById:!0,onSearch:Y,error:X,itemNoun:"projects",onTab:()=>{b.current=!1,p("naming")},extraHint:"new",...R?{escLabel:R}:{},onSelect:o=>{let a=o.label.replace(` (${o.id})`,"");j(o.id,a)},onCancel:E})}export{ee as a,le as b,me as c};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { createRequire } from 'module'; const require = createRequire(import.meta.url);
|
|
2
|
-
import{a as S}from"./chunk-
|
|
2
|
+
import{a as S}from"./chunk-CQBLJTDU.js";import{a as R}from"./chunk-HCBYKLMW.js";import{A as o}from"./chunk-BRWCWZE3.js";import{a as b,b as c,j as x}from"./chunk-33DWJV67.js";import{a as $}from"./chunk-6YGTRKDT.js";import{e as y}from"./chunk-UR6MHSHU.js";var T=y($(),1);var n=y(R(),1);function k(e){return e.caseTc!==void 0&&!e.anyAuthorStepRan&&!e.degradedReadonly&&!e.lockHeld}function A(e){let t=e.decisions.filter(a=>a.kind==="replay").length,l=e.decisions.filter(a=>a.kind==="author").length,p=e.outcomes.filter(a=>a.status==="passed").length,f=e.outcomes.filter(a=>a.status==="failed").length,h=e.outcomes.filter(a=>a.status==="skipped").length,s=o.green,u;e.cancelled||e.overallStatus==="interrupted"?(s=o.orange,u="CANCELLED"):e.overallStatus==="failed"?(s=o.red,u="FAILED"):u="PASSED";let r=`${u} \xB7 ${e.durationS}s \xB7 ${e.outcomes.length} steps (${p} passed, ${f} failed, ${h} skipped)`,C=`${t} replay \xB7 ${l} author`,v=e.retryTriggered,_="yes \u2014 healed after a replay miss",i,m=o.dim;if(e.cancelled)i="\u2013 not committed (cancellation)";else if(e.uploadResult?.notSaved)i=e.caseTc?`\u2717 not pushed to ${e.caseTc}`:"\u2717 not pushed",m=o.red;else if(e.overallStatus==="failed")i="\u2013 not committed (run failed)",m=o.red;else if(!e.shouldCommit)e.isFirstRun?i="\u2013 not committed (first run skipped commit)":k(e)?i=`\u2013 ${e.caseTc} unchanged: every step replayed`:e.lockHeld?i="\u2013 not committed":i="\u2013 not committed (readonly fallback / no lock)";else if(e.committed===!1&&!e.uploadResult?.testcaseId)i="\u2013 not committed (commit did not land)",m=o.red;else{let a=e.uploadResult?.testcaseId;i=e.caseTc?`\u2713 pushed to ${e.caseTc}`:a?`\u2713 pushed (testcase=${a})`:"\u2713 pushed",m=o.green}let D=e.shouldReplaceLocalOutput?"output dir replaced":e.anyAuthorStepRan?"untouched (cancellation or no replace)":"untouched (replay-only)",d,g=o.dim;return e.shouldUploadArtifacts?e.uploadResult?.success||e.uploadResult?.notSaved?(d="\u2713 TMS",g=o.green):e.uploadResult?(d=`\u2717 failed${e.uploadResult.error?`: ${e.uploadResult.error}`:""}`,g=o.red):d="\u2013 not run":d="\u2013 skipped (--local or no auth)",{resultLine:{color:s,text:r},breakdown:C,showRetries:v,retriesText:_,commitText:i,commitColor:m,artifactsText:D,uploadText:d,uploadColor:g}}function O(e){let t=e.decisions.filter(r=>r.kind==="replay").length,l=e.decisions.filter(r=>r.kind==="author").length,p=e.outcomes.filter(r=>r.status==="passed").length,f=e.outcomes.filter(r=>r.status==="failed").length,h=e.outcomes.filter(r=>r.status==="skipped").length,s,u=!1;return e.cancelled?s="cancellation":e.overallStatus==="failed"?s="run_failed":e.shouldCommit&&(e.committed===!0||e.uploadResult?.testcaseId)?(s="ok",u=!0):!e.shouldCommit&&!e.isFirstRun&&k(e)?s="unchanged":!e.shouldCommit&&!e.lockHeld&&!e.isFirstRun?s="readonly_fallback":s="not_committed",{type:"test_md_summary",overall_status:e.overallStatus,duration_s:e.durationS,steps:{total:e.outcomes.length,passed:p,failed:f,skipped:h,replay_decisions:t,author_decisions:l},adaptive_heal:{triggered:e.retryTriggered},commit:{committed:u,reason:s,...e.uploadResult?.testcaseId?{testcase_id:e.uploadResult.testcaseId}:{}},artifacts:{replaced:e.shouldReplaceLocalOutput},upload:{performed:e.shouldUploadArtifacts,...e.uploadResult?{succeeded:!!e.uploadResult.success}:{}},...e.shareUrl?{share_url:e.shareUrl}:{},cancelled:e.cancelled,...e.imports&&e.imports.length>0?{imports:e.imports}:{}}}function B({data:e}){let t=A(e),l=[{label:"result",value:(0,n.jsx)(c,{color:t.resultLine.color,bold:!0,children:t.resultLine.text})},{label:"breakdown",value:(0,n.jsx)(c,{color:o.dim,children:t.breakdown})}];return t.showRetries&&l.push({label:"adaptive heal",value:(0,n.jsx)(c,{color:o.orange,children:t.retriesText})}),l.push({label:"commit",value:(0,n.jsx)(c,{color:t.commitColor,children:t.commitText})}),l.push({label:"artifacts",value:(0,n.jsx)(c,{color:o.dim,children:t.artifactsText})}),l.push({label:"upload",value:(0,n.jsx)(c,{color:t.uploadColor,children:t.uploadText})}),(0,n.jsx)(S,{title:"Run summary",titleColor:"#ff9500",rows:l})}function U({data:e}){let{exit:t}=x();return(0,T.useEffect)(()=>{let l=setTimeout(()=>t(),50);return()=>clearTimeout(l)},[t]),(0,n.jsx)(b,{flexDirection:"column",children:(0,n.jsx)(B,{data:e})})}export{A as a,O as b,B as c,U as d};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { createRequire } from 'module'; const require = createRequire(import.meta.url);
|
|
2
|
-
import{a as k}from"./chunk-
|
|
2
|
+
import{a as k}from"./chunk-V3IWCGZT.js";import{a as f}from"./chunk-HCBYKLMW.js";import{A as u}from"./chunk-BRWCWZE3.js";import{a as m,b as s,k as b}from"./chunk-33DWJV67.js";import{e as p}from"./chunk-UR6MHSHU.js";function B(t){let e=t;return e=e.replace(/@TS\{([^}]+)\}/g,"@S{$1}"),e=e.replace(/@TS-(\d+)/g,(o,i)=>`@S${parseInt(i,10)}.C1`),e=e.replace(/@TS(\d+)/g,(o,i)=>`@S${parseInt(i,10)}`),e=e.replace(/\\n/g,`
|
|
3
3
|
`),e}var c=p(f(),1),S=t=>t!==void 0&&/[A-Za-z0-9]/.test(t);function x(t){let e=[],o="",i=()=>{o&&(e.push({text:o}),o="")},l=(a,d,r)=>(a===0||!S(t[a-1]))&&(d+r>=t.length||!S(t[d+r])),n=0;for(;n<t.length;){let a=t.slice(n,n+2),d=t[n];if(a==="**"||a==="__"){let r=t.indexOf(a,n+2);if(r!==-1&&r>n+2&&(a==="**"||l(n,r,2))){i(),e.push({text:t.slice(n+2,r),bold:!0}),n=r+2;continue}}if(d==="`"){let r=t.indexOf("`",n+1);if(r!==-1&&r>n+1){i(),e.push({text:t.slice(n+1,r),code:!0}),n=r+1;continue}}if(d==="*"||d==="_"){let r=t.indexOf(d,n+1);if(r!==-1&&r>n+1&&(d==="*"||l(n,r,1))){i(),e.push({text:t.slice(n+1,r),italic:!0}),n=r+1;continue}}o+=d,n+=1}return i(),e.length===0&&e.push({text:""}),e}function h(t){return t.map((e,o)=>(0,c.jsx)(s,{bold:e.bold,italic:e.italic,color:e.code?u.dim:void 0,children:e.text},o))}function T(t){return t.split(`
|
|
4
4
|
`).map(e=>{if(e.trim()==="")return{kind:"blank"};let o=e.match(/^\s*[-*+]\s+(.*)$/);if(o)return{kind:"bullet",segs:x(o[1])};let i=e.match(/^\s*(\d+)\.\s+(.*)$/);if(i)return{kind:"numbered",n:i[1],segs:x(i[2])};let l=e.match(/^#{1,6}\s+(.*)$/);return l?{kind:"heading",segs:x(l[1])}:{kind:"para",segs:x(e)}})}function R(t,e,o=""){switch(t.kind){case"blank":return(0,c.jsx)(s,{children:o||" "},e);case"heading":return(0,c.jsxs)(s,{bold:!0,children:[o,h(t.segs)]},e);case"bullet":return(0,c.jsx)(m,{marginLeft:1,children:(0,c.jsxs)(s,{children:[o,"\u2022 ",h(t.segs)]})},e);case"numbered":return(0,c.jsx)(m,{marginLeft:1,children:(0,c.jsxs)(s,{children:[o,`${t.n}. `,h(t.segs)]})},e);default:return(0,c.jsxs)(s,{children:[o,h(t.segs)]},e)}}function $({text:t,accent:e=u.generateAccent,indent:o=0}){let i=T(B(t)),{stdout:l}=b(),n=(l?.columns??80)-o;return(0,c.jsxs)(m,{marginBottom:1,children:[(0,c.jsx)(m,{width:2,flexShrink:0,children:(0,c.jsx)(s,{color:e,children:"\u2503"})}),(0,c.jsx)(m,{flexDirection:"column",width:n-2,children:i.map((a,d)=>R(a,d))})]})}var g=p(f(),1),I=5;function C({thinking:t,expanded:e,thinkingDone:o,maxLines:i=I}){if(!e)return(0,g.jsxs)(m,{paddingX:1,children:[(0,g.jsx)(s,{color:u.dim,children:o?"\u2237 thinking complete ":"\u2237 thinking\u2026 "}),(0,g.jsx)(s,{color:u.muted,children:o?"(ctrl+t to view)":"(ctrl+t to show)"})]});let l=t.split(`
|
|
5
5
|
`),n=Math.max(0,l.length-i),a=n>0?l.slice(-i).join(`
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { createRequire } from 'module'; const require = createRequire(import.meta.url);
|
|
2
|
-
import{a as y}from"./chunk-
|
|
2
|
+
import{a as y}from"./chunk-V24LUINK.js";import{createServer as b}from"http";import{createReadStream as C,promises as S}from"fs";import{randomBytes as R}from"crypto";var u="127.0.0.1";function A(n,e){if(!n)return null;let o=/^bytes=(\d*)-(\d*)$/.exec(n.trim());if(!o)return null;let[,a,r]=o;if(a===""&&r==="")return null;if(a===""){let i=Number(r);return i===0||e===0?"unsatisfiable":{start:Math.max(0,e-i),end:e-1}}let t=Number(a);if(t>=e)return"unsatisfiable";let c=r===""?e-1:Math.min(Number(r),e-1);return c<t?null:{start:t,end:c}}async function I(n){let e=R(16).toString("hex"),o=b((r,t)=>{H(r,t,n,e).catch(()=>t.destroy())});await new Promise((r,t)=>{o.once("error",t),o.listen(n.port??0,u,()=>{o.removeListener("error",t),r()})});let a=o.address().port;return{port:a,urlFor:r=>`http://${u}:${a}/${e}/${encodeURIComponent(r)}`,close:()=>new Promise(r=>{o.close(()=>r()),o.closeAllConnections()})}}async function H(n,e,o,a){let r=n.url??"/",t=s=>{try{o.log?.("warn","EVIDENCE_SERVE_DENIED",{reason:s,path:r})}catch{}};if(n.headers.host!==`${u}:${n.socket.localPort}`){t("host_mismatch"),e.writeHead(403).end();return}let c=n.headers.origin;if(c!==void 0&&!o.allowedOrigins.includes(c)){t("origin_denied"),e.writeHead(403).end();return}let i=c?{"Access-Control-Allow-Origin":c,Vary:"Origin","Access-Control-Expose-Headers":"Content-Range, Content-Length"}:{};if(n.method==="OPTIONS"){let s={...i,"Access-Control-Allow-Methods":"GET, HEAD, OPTIONS","Access-Control-Allow-Headers":"range","Access-Control-Max-Age":"86400"};n.headers["access-control-request-private-network"]==="true"&&(s["Access-Control-Allow-Private-Network"]="true"),e.writeHead(204,s).end();return}if(n.method!=="GET"&&n.method!=="HEAD"){e.writeHead(405,i).end();return}let v;try{let s=new URL(n.url??"/",`http://${u}`).pathname.split("/");if(s.length!==3||s[1]!==a){t("bad_token"),e.writeHead(404,i).end();return}v=decodeURIComponent(s[2])}catch{t("not_found"),e.writeHead(404,i).end();return}let g=o.packs.get(v);if(!g){t("not_found"),e.writeHead(404,i).end();return}let d;try{let s=await S.stat(g);if(!s.isFile())throw new Error("not a file");d=s.size}catch{t("not_found"),e.writeHead(404,i).end();return}let h={...i,"Accept-Ranges":"bytes","Content-Type":"application/zip","Cache-Control":"no-store"};if(n.method==="HEAD"){e.writeHead(200,{...h,"Content-Length":String(d)}).end();return}let l=A(n.headers.range,d);if(l==="unsatisfiable"){t("unsatisfiable"),e.writeHead(416,{...i,"Content-Range":`bytes */${d}`}).end();return}let[m,p,w]=l===null?[0,d-1,200]:[l.start,l.end,206],E={...h,"Content-Length":String(p-m+1)};if(w===206&&(E["Content-Range"]=`bytes ${m}-${p}/${d}`),e.writeHead(w,E),d===0){e.end();return}let f=C(g,{start:m,end:p});f.on("error",()=>e.destroy()),e.on("close",()=>f.destroy()),f.pipe(e)}function O(n,e){return(e??y(n).evidenceViewerUrl).replace(/\/+$/,"")}function k(n,e){return`${e}/?pack=${encodeURIComponent(n)}`}function P(n){return`evidence: view locally with \`kane-cli evidence serve ${n}\``}export{A as a,I as b,O as c,k as d,P as e};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { createRequire } from 'module'; const require = createRequire(import.meta.url);
|
|
2
|
-
import{b as l}from"./chunk-
|
|
2
|
+
import{b as l}from"./chunk-PCL2FYPE.js";var m="12.0";function Z(t,r=m){let n=u=>{let[g,_]=u.split(".");return[Number(g)||0,Number(_)||0]},s=`; this kane-cli needs >= ${r}. Upgrade the controller first`;if(!t)return`the controller speaks a wire older than ${r} (it reports none)${s}`;let[i,p]=n(t),[a,c]=n(r);return i>a||i===a&&p>=c?null:`the controller speaks wire ${t}${s}`}var f=["explore_start","lease_start","lease_end","map_delta","progress","skill_updated","browser_request","browser_release","explore_end","lease_step","session_held","session_released","explore_frame"],b=["browser_ready","browser_failed","delta_ack","commit_refused","targets_added","stop","frames_start","frames_stop","frames_ack"],S=["recon","verify","explore","target","land","session","end","recheck"],x=["completed","unreachable","blocked","unsettled","budget","aborted","cancelled"],o=["read_only","mutating"],y=["queued","running","stopped"],E=["completed","budget","user_stop","stopped_before_start","timeout","heartbeat_lost"],k=["secrets_missing","no_browsers","commit_refused","commit_failed","runner_error","recon_failed","setup_failed","unexpected_event","focus_unknown","focus_unreachable","controller_outdated","vm_never_started"];function ee(t,r){return{code:`failed:${t}`,...r?{message:r}:{}}}var R=["unverified","verified","stale","changed","broken","gone","superseded","verified_to_edge"],w=["direct","flow","instance","held"],F=["toggle","revert","could_not_revert","storage_restored","gating","pagination","chrome","confirm","slow","how_it_works"],A=["console","network","flow_break","ux","policy","screen_changed","session","coverage","app_error","broken_link","slow","accessibility"],T=["reproduced","not_reproduced","inconclusive"],L=["subject","screen"],N=["broken","ux","coverage","changed","safety","performance","accessibility"];var h=["needs_sign_in","needs_value","read_only","state","off_site","path_broken","budget"],I=["telemetry_blocked","post_allowed"],q=["target","blocker","field","write"],v=["seeding","replay","walking","settling","verifying"],D=["open","bug","discarded","resolving","resolved"],K=["opened","promoted","discarded","marked_resolving","resolved_verified","recheck_inconclusive","resolved_by_person","reopened_seen","resolved_reached","restored"],C=["info","low","medium","high"],O=["verified","verified_healed","assert_failed","diverged","blocked","unsettled","partial","unreachable","verified_to_edge","start_failed","end_failed","verified_adapted","adapted"],P=["adapted","exit_moved"],B=["jump","replay","continued"],V=["session","one_shot","pending"],U=["start","end"],M=["session","one_shot","read","pending"],j=["judge","deps"],H=["version","state","different"],W=["navigate","replay"],G=["finding","flow","junction","candidate","junction_note","skill_area","skill_journey"],Y=["label","note","verdict","do_not_touch","resolve"],$=["correct","incorrect"],J=["user","agent"],X=["finding","flow","junction"],te={ExploreEventName:f,ControlMessageName:b,LeaseKind:S,LeaseResult:x,LeasePolicy:o,RunState:y,RemarkCode:E,FailedReason:k,FlowStatus:R,ReachKind:w,JunctionNoteKind:F,FindingKind:A,FindingStatus:D,StatusTransition:K,FindingCategory:N,RecheckResult:T,SimilarBy:L,BlockedBy:h,AuditKind:I,AnnotationKind:q,LeaseStepPhase:v,StatefulVerdictKind:M,StatefulVerdictSource:j,PathSegmentKind:W,FeedbackTargetKind:G,FeedbackType:Y,FeedbackVerdict:$,FeedbackAuthorKind:J,LabelAppliesTo:X,Severity:C,ObservationOutcome:O,FlowChangeKind:P,ReachedVia:B,StatefulType:V,StatefulRole:U,VerdictRelation:H};function re(t,r){return JSON.stringify({command:t,...r})+`
|
|
3
3
|
`}var e=t=>t,ne={FlowStateful:e({type:"req StatefulType",role:"opt StatefulRole",kind:"opt string",pairs_with:"opt string|null",end_control:"opt string|null"}),StatefulVerdict:e({key:"req string",verdict:"req StatefulVerdictKind",confidence:"opt number",reason:"opt string",end_control:"opt string|null",source:"opt StatefulVerdictSource",run_id:"opt string"}),Budget:e({actions:"opt integer",wall_clock_s:"opt integer",model_calls:"opt integer",max_leases:"opt integer|null"}),FlowDef:e({id:"req string",name:"req string",entry:"req string",description:"opt string",parent_id:"opt string|null",exit:"opt string|null",origin:"opt FlowOrigin",priority:"opt integer",assertions:"opt Assertion[]",annotations:"opt map<string>",owners:"opt map<Ownership>",current_observation:"opt string|null",status:"opt FlowStatus",steps_key:"opt string|null",supersedes:"opt string|null",superseded_by:"opt string|null",after_flow:"opt string|null",state:"opt boolean",in_state:"opt string|null",pending_landing:"opt PendingLanding|null",stateful:"opt FlowStateful|null",plan:"opt FlowPlanRevision|null",finding_ids:"opt string[]",feedback:"opt FeedbackRecord[]",changes:"opt FlowChange[]"}),FlowChange:e({run_id:"req string",observation_id:"req string",kind:"req FlowChangeKind",adapted_at:"req integer",from_exit:"opt string|null",to_exit:"opt string|null"}),Delta:e({seq:"req integer",attempt:"req integer",run_id:"req string",lease_id:"req string",junctions:"opt Junction[]",flows:"opt FlowDef[]",candidates:"opt Candidate[]",observations:"opt Observation[]",findings:"opt Finding[]",suggestions:"opt Suggestion[]",lease:"opt Lease|null",evidence:"opt EvidenceRef[]",aliases:"opt map<string>",entry:"opt string|null",verdicts:"opt MatchVerdict[]",stateful_verdicts:"opt StatefulVerdict[]",feedback:"opt FeedbackRecord[]",feedback_applied:"opt FeedbackApplied[]"}),Parallelism:e({max_parallel:"opt integer",peak:"opt integer",average:"opt number",opened:"opt integer"}),Focus:e({junction_id:"req string",name:"opt string",path_len:"opt integer|null"}),Remark:e({code:"req string",message:"opt string"}),CreditReport:e({total:"opt number",calls:"opt integer",by_node:"opt map<number>",by_phase:"opt map<number>",request_ids:"opt string[]"}),AuditNote:e({kind:"req AuditKind",text:"req string",count:"opt integer",first_lease:"opt string"}),RunRecord:e({run_id:"req string",locale:"opt string",complete:"opt boolean",started_at:"opt string",credits:"opt CreditReport|null",focus:"opt string|null",audit_notes:"opt AuditNote[]"}),Projection:e({exploration_id:"req string",project_id:"opt string|null",entry:"opt string|null",junctions:"opt Junction[]",flows:"opt FlowDef[]",candidates:"opt Candidate[]",observations:"opt Observation[]",findings:"opt Finding[]",aliases:"opt map<string>",rejected_pairs:"opt string[][]",runs:"opt RunRecord[]",last_seq:"opt integer",verdicts:"opt MatchVerdict[]",stateful_verdicts:"opt StatefulVerdict[]",labels:"opt ExplorationLabel[]",skill:"opt string|null",skill_run_id:"opt string|null"}),ExploreStart:e({run_id:"req string",exploration_id:"req string",attempt:"req integer",sessions:"req integer",policy:"req LeasePolicy",locale:"opt string",timezone:"opt string",accept_language:"opt string",focus:"opt Focus|null"}),LeaseStart:e({lease_id:"req string",kind:"req LeaseKind",worker_index:"req integer",target:"opt string|null",budget:"opt Budget",reach:"opt LeaseReach|null"}),ReachHop:e({kind:"req PathSegmentKind",flow_id:"opt string|null",to:"opt string|null",url_pattern:"opt string|null"}),LeaseReach:e({target:"opt string|null",path:"opt ReachHop[]"}),LeaseStep:e({lease_id:"req string",worker_index:"req integer",ordinal:"req integer",phase:"req LeaseStepPhase",junction_id:"opt string|null",known:"opt boolean",url_pattern:"opt string|null",flow_id:"opt string|null",intent:"opt string|null",navigated:"opt boolean",step_ordinal:"opt integer|null"}),SessionHeld:e({worker_index:"req integer",kind:"req string",start_flow:"opt string|null",junction_id:"opt string|null",url_pattern:"opt string|null"}),SessionReleased:e({worker_index:"req integer",reason:"opt string|null"}),LeaseEnd:e({lease_id:"req string",result:"req LeaseResult",reason:"opt string|null"}),MapDelta:e({delta:"req Delta"}),Progress:e({frontier:"req integer",visited:"req integer",active_workers:"req integer",elapsed_s:"req number",unacked:"req integer"}),SkillUpdated:e({version:"req integer",run_id:"req string",summary:"opt string",received:"opt string",dropped:"opt string[]"}),BrowserRequest:e({worker_index:"req integer"}),BrowserRelease:e({worker_index:"req integer"}),ExploreEnd:e({totals:"req map<integer>",stop_reason:"req string",unacked:"req integer",complete:"req boolean",remark:"req Remark",credits:"opt CreditReport",focus:"opt Focus|null",refused:"opt string|null",parallelism:"opt Parallelism|null",audit_notes:"opt AuditNote[]"}),BrowserReady:e({worker_index:"req integer",cdp_endpoint:"opt string|null",ws_endpoint:"opt string|null"}),BrowserFailed:e({worker_index:"req integer",reason:"req string"}),DeltaAck:e({seq:"req integer",committed:"req boolean"}),CommitRefused:e({seq:"req integer",reason:"req string"}),TargetsAdded:e({flows:"opt FlowDef[]"}),Stop:e({browsers_released:"opt boolean"}),FramesStart:e({worker_index:"req integer"}),FramesStop:e({worker_index:"req integer"}),FramesAck:e({worker_index:"req integer"}),ExploreFrame:e({worker_index:"req integer",data:"req string",at_ms:"req integer"})};var d="mutating";function z(t){return typeof t=="string"&&o.includes(t)}function ae(t){let r=t.policy;if(r==null||r==="")return{policy:d};let n=String(r).trim();return z(n)?{policy:n}:{error:`--policy ${JSON.stringify(n)}: one of ${o.join(", ")}`,next:`pass --policy read_only (only reads) or --policy mutating (may change data); the default is ${d}`}}function le(t){return t==="mutating"?"mutating":"read-only"}function de(t){return t==="mutating"?"mutating":"read_only"}var pe="--allow-post has no effect under --policy mutating";function Q(t){try{return new URL(t).host||t}catch{return t}}function ce(t){return`This run may change data on ${Q(t)} and any site it reaches (policy mutating). Nothing is blocked except controls named in --deny. Use --policy read_only to only read.`}function ue(t=new l){return{confirmed:r=>(t.load().explore_mutating_confirmed??[]).includes(r),remember:r=>{let n=t.load().explore_mutating_confirmed??[];n.includes(r)||t.set("explore_mutating_confirmed",[...n,r])}}}export{m as a,Z as b,o as c,k as d,ee as e,G as f,Y as g,$ as h,X as i,te as j,re as k,d as l,z as m,ae as n,le as o,de as p,pe as q,Q as r,ce as s,ue as t};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { createRequire } from 'module'; const require = createRequire(import.meta.url);
|
|
2
|
-
import{c as A,l as E}from"./chunk-
|
|
2
|
+
import{c as A,l as E}from"./chunk-MBNSCXVK.js";import{e as _,f as v}from"./chunk-SB26HQO7.js";import{a as P}from"./chunk-4QTH7VYE.js";import{mkdtempSync as N,rmSync as B}from"fs";import{tmpdir as U}from"os";import{join as D}from"path";function T(e){let o=Promise.resolve(),i=new Map,r=s=>{try{B(s,{recursive:!0,force:!0})}catch{}};function a(s){let f=o.then(async()=>{if(i.has(s))throw new Error(`chrome slot ${s} already acquired (one acquire per worker index)`);let c=N(D(U(),"kane-testrun-chrome-")),g;try{g=await e.launch({userDataDir:c,width:e.width,height:e.height,headless:e.headless})}catch(u){throw r(c),u}return i.set(s,{chrome:g,dataDir:c}),{cdpEndpoint:g.cdpEndpoint,release(){let u=i.get(s);if(u){i.delete(s);try{u.chrome.kill()}catch{}r(u.dataDir)}}}});return o=f.catch(()=>{}),f}return{acquire:a,killAll(){for(let[,s]of i){try{s.chrome.kill()}catch{}r(s.dataDir)}i.clear()}}}var x=4;function Y(e){let o=T(e);return{kind:"local",maxParallel:x,async acquire(i){let r=await o.acquire(i);return{cdpEndpoint:r.cdpEndpoint,release:async()=>{r.release()}}},async releaseAll(){o.killAll()},releaseAllSync(){o.killAll()}}}function $(e){return e.replace(/([?&]capabilities=)[^&\s'"]*/g,"$1<redacted>")}function S(e){let o=new Set;for(let r of e)!r||r.length<4||(o.add(r),o.add(encodeURIComponent(r)),o.add(JSON.stringify(r).slice(1,-1)),o.add(encodeURIComponent(JSON.stringify(r).slice(1,-1))));let i=[...o].sort((r,a)=>a.length-r.length);return r=>{let a=$(r);for(let s of i)a=a.split(s).join("<redacted>");return a}}function Q(e){let o=S(e);return i=>JSON.parse(o(JSON.stringify(i)))}import{spawnSync as M}from"child_process";var h=20,ne=["us","eu","mumbai","oregon"],j={stage:"wss://stage-cdp.lambdatestinternal.com",prod:"wss://cdp.lambdatest.com"};function se(e,o){if(!o)return j[e];if(e!=="prod")throw new Error(`--hps-region ${o}: regional HPS hosts are prod only; stage has one host`);return`wss://cdp-${o}.lambdatest.com`}function K(e,o,i,r){let a={user:o.username,accessKey:o.access_key,browserName:"Chrome"};return r&&(a.tunnel=!0,r.name&&(a.tunnelName=r.name)),`${e.replace(/\/+$/,"")}/kane-cli?capabilities=${encodeURIComponent(JSON.stringify(a))}&testId=${encodeURIComponent(i)}`}function ae(e,o,i){let r=new _(e,o.username,o.access_key);return{create:(a,s)=>r.createBrowserSession({...i(),worker_index:a,source:"explore"},{signal:s}),release:(a,s)=>r.endBrowserSession(a,{signal:s})}}var G=`
|
|
3
3
|
const ids = JSON.parse(process.env.KANE_HPS_IDS || "[]");
|
|
4
4
|
Promise.allSettled(ids.map((id) => fetch(process.env.KANE_HPS_FORGE + "/kane-cli/v1/browser-sessions/" + encodeURIComponent(id), {
|
|
5
5
|
method: "DELETE", headers: { Authorization: process.env.KANE_HPS_AUTH, Accept: "application/json" },
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import { createRequire } from 'module'; const require = createRequire(import.meta.url);
|
|
2
|
+
import{a as g}from"./chunk-RZ4F3BHX.js";import{f}from"./chunk-A7RJQJNT.js";import{openAsBlob as A}from"fs";import{basename as b}from"path";var c={emulator:{product:"app-testing",type:"emulator",source:"web-client"},simulator:{product:"app-testing",type:"simulator",source:"web-client"},android:{product:"app-testing",type:"android",source:"web-client"},ios:{product:"app-testing",type:"ios",source:"web-client"}},m={emulator:"application/vnd.android.package-archive",simulator:"application/zip",android:"application/vnd.android.package-archive",ios:"application/zip"},k=30*6e4,u=3e4;function _(n){let t=n??{},e=Array.isArray(t.data)?t.data:[],r=[];for(let a of e){let i=a??{},d=typeof i.app_id=="string"?i.app_id:void 0;d&&r.push({appId:d,name:typeof i.name=="string"&&i.name.trim()!==""?i.name:d,...typeof i.package=="string"?{packageName:i.package}:{},...typeof i.updated_at=="string"?{updatedAt:i.updated_at}:{}})}let s=t.metaData??{},o=typeof s.total=="number"?s.total:typeof s.total=="string"&&Number.isFinite(Number(s.total))?Number(s.total):r.length;return{apps:r,total:o}}function $(){return{fileBody:n=>A(n),request:g}}function R(n){if(!n||typeof n!="object")return null;let t=n,e=typeof t.app_id=="string"?t.app_id:void 0;return e?{appId:e,...typeof t.app_url=="string"?{appUrl:t.app_url}:{},...typeof t.url=="string"?{url:t.url}:{},cached:t.cached===!0,...typeof t.name=="string"?{name:t.name}:{}}:null}function T(n){if(!n||typeof n!="object")return null;let t=n,e=typeof t.app_id=="string"?t.app_id:void 0,r=typeof t.download_url=="string"&&t.download_url!==""?t.download_url:void 0;if(!e||!r)return null;let s=typeof t.app_name=="string"&&t.app_name.trim()!==""?t.app_name:`${e}.bin`;return{appId:e,name:s,url:r,...typeof t.package=="string"?{packageName:t.package}:{},...typeof t.type=="string"?{type:t.type}:{}}}function U(n){if(!n||typeof n!="object")return null;let t=n,e=typeof t.app_id=="string"?t.app_id:void 0,r=a=>typeof t[a]=="string"&&t[a]!==""?t[a]:void 0,s=r("cf_url")??r("cf_ap_url")??r("url");if(!e||!s)return null;let o=typeof t.name=="string"&&t.name.trim()!==""?t.name:`${e}.bin`;return{appId:e,name:o,url:s,...typeof t.package=="string"?{packageName:t.package}:{},...typeof t.type=="string"?{type:t.type}:{}}}function S(n){let t=n?.cause,e=t instanceof Error?t.message:typeof t=="string"?t:void 0,r=n instanceof Error?n.message:String(n);return e&&e!==r?`${r} (${e})`:r}var p=class extends Error{constructor(e,r){super(e);this.status=r;this.name="AppUploadError"}};async function l(n){let t=await n.text();try{let e=JSON.parse(t);return e.message??e.error??t}catch{return t||`app service returned ${n.status}`}}var h=20,y=100,w=class{constructor(t,e,r={}){this.baseUrl=t;this.auth=e;this.deps={...$(),...r}}deps;headers(){return{Authorization:`Basic ${Buffer.from(`${this.auth.username}:${this.auth.accessKey}`).toString("base64")}`,Accept:"application/json"}}async upload(t,e,r={}){let s=b(t);if(!this.auth.orgId||!Number.isFinite(Number(this.auth.orgId)))throw new p(`Could not register ${s}: this account's org id is required to record an upload.`);let o=await this.uploadTarget(s,e);r.onProgress?.(`uploading ${s}\u2026`);let a=await this.deps.request(o.uploadUrl,{method:"PUT",headers:{"Content-Type":m[e]},body:await this.deps.fileBody(t),signal:r.signal??AbortSignal.timeout(k)});if(!a.ok)throw new p(`Uploading ${s} failed: ${a.status} ${await a.text()}`,a.status);let i=o.uploadUrl.split("?")[0];return this.register(s,e,i)}async uploadTarget(t,e){let r=c[e],s=new URLSearchParams({key:t,contentType:m[e],product:r.product}),o=await this.deps.request(`${this.baseUrl}/app/get-upload-url?${s.toString()}`,{method:"GET",headers:this.headers(),signal:AbortSignal.timeout(u)});if(!o.ok)throw new p(`Could not start the upload of ${t}: ${await l(o)}`,o.status);let a=await o.json();if(!a.uploadURL)throw new p(`Could not start the upload of ${t}: no upload url.`);return{key:a.Key??"",uploadUrl:a.uploadURL}}async register(t,e,r){let s=Number(this.auth.orgId),o=c[e],a=await this.deps.request(`${this.baseUrl}/app/url`,{method:"POST",headers:{...this.headers(),"Content-Type":"application/json"},body:JSON.stringify({name:t,source:o.source,type:o.type,org_id:s,url:r,product:o.product}),signal:AbortSignal.timeout(u)});if(!a.ok)throw new p(`Could not register ${t}: ${await l(a)}`,a.status);let i=R(await a.json());if(!i)throw new p(`Registering ${t} returned no app id.`);return i}async list(t){let e=t.limit??h;e<=0&&(e=h),e>y&&(e=y);let r=t.offset!==void 0&&t.offset>0?t.offset:0,s=new URLSearchParams({limit:String(e),offset:String(r),type:c[t.type].type,level:f(t.type)?"org":"user",searchtxt:t.search??""}),o=`${this.baseUrl}/app/list?${s.toString()}`,a;try{a=await this.deps.request(o,{method:"GET",headers:this.headers(),signal:AbortSignal.timeout(u)})}catch(i){throw new p(S(i))}if(!a.ok)throw new p(`Could not list your uploads: ${await l(a)}`,a.status);return _(await a.json())}async details(t){let e=await this.deps.request(`${this.baseUrl}/app/${encodeURIComponent(t)}/download?format=url`,{method:"GET",headers:this.headers(),signal:AbortSignal.timeout(u)});if(e.ok){let o=T(await e.json());if(o)return o}else if(e.status!==404)throw new p(`${t}: ${await l(e)}`,e.status);let r=await this.deps.request(`${this.baseUrl}/app/${encodeURIComponent(t)}/url`,{method:"GET",headers:this.headers(),signal:AbortSignal.timeout(u)});if(!r.ok)throw new p(`${t}: ${await l(r)}`,r.status);let s=U(await r.json());if(!s)throw new p(`${t} returned no download url.`);return s}async liveness(t){try{return await this.details(t),"alive"}catch(e){let r=e instanceof p?e.status:void 0;return r!==void 0&&r>=400&&r<500?"gone":"unknown"}}};export{m as a,_ as b,R as c,T as d,U as e,S as f,p as g,w as h};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { createRequire } from 'module'; const require = createRequire(import.meta.url);
|
|
2
|
-
import{b as f,d as l}from"./chunk-
|
|
2
|
+
import{b as f,d as l}from"./chunk-QWEQ742S.js";import{a as p}from"./chunk-TZXXJWHA.js";function d(t,e,o){return{id:`${t}.internal`,label:e,required:!0,status:"fail",detail:o instanceof Error?o.message:String(o)}}async function k(t,e={}){let o=p();if(!o.supported)return{sections:[{platform:"host",checks:[{id:"host.platform",label:"host",required:!0,status:"fail",detail:o.reason}]}]};let n=t?f().filter(r=>r.toLowerCase()===t.toLowerCase()):f(),{managedDeps:i}=await import("./deps-bundle-CXKBCA7W.js"),s=n.flatMap(r=>r==="android"?["emulator"]:r==="ios"?["simulator"]:[]);await Promise.allSettled(s.map(r=>i().warmResolveCache(r)));let c=[];for(let r of n){let u=l(r);if(!u)continue;let a;try{a=await u.checks(e)}catch(h){a=[d(r,"toolchain check",h)]}c.push({platform:r,checks:a})}return{sections:c}}function m(t){return t==="pass"?"\u2713":t==="fail"?"\u2717":"\u2139"}function x(t){return t.charAt(0).toUpperCase()+t.slice(1)}function C(t){let e=[];if(t.sections.length===0)return"No mobile platforms are supported on this host.";for(let o of t.sections){e.length>0&&e.push(""),e.push(`${x(o.platform)} toolchain`);let n=o.checks.filter(s=>s.status!=="info"),i=new Set;for(let s of n){let c=s.detail?` \u2014 ${s.detail}`:"";if(e.push(` ${m(s.status)} ${s.label}${c}`),s.status==="fail"&&s.fixText&&!i.has(s.fixText)){i.add(s.fixText);for(let r of s.fixText.split(`
|
|
3
3
|
`))e.push(` fix: ${r}`)}}}return e.join(`
|
|
4
4
|
`)}function w(t){return t.sections.length===0?!0:t.sections.every(e=>e.checks.some(o=>o.required&&o.status==="fail"&&!o.fixedByBundle))}function b(t){for(let e of t.sections)for(let o of e.checks)if(o.required&&o.status!=="pass")return 2;return 0}export{k as a,C as b,w as c,b as d};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { createRequire } from 'module'; const require = createRequire(import.meta.url);
|
|
2
|
-
import{e as L}from"./chunk-
|
|
2
|
+
import{e as L}from"./chunk-CVVUBCB7.js";async function T(n,i,c){let[h,d,l,m,a]=await Promise.all([c.includes("source")?n.sources(i):Promise.resolve([]),c.includes("usecase")?n.nodes(i,"usecase"):Promise.resolve([]),c.includes("usecase")?n.stale(i):Promise.resolve([]),c.includes("scenario")?n.nodes(i,"scenario"):Promise.resolve([]),c.includes("test")?n.nodes(i,"test"):Promise.resolve([])]),o=new Set;for(let e of l.filter(s=>s.label==="scenario"&&(s.freshness==="stale"||s.freshness==="orphaned"))){let s=await n.mainNode(i,e.cid);for(let t of s.edgesOut)t.type==="belongs_to"&&t.other?.name&&(t.other.freshness==="superseded"||t.other.supersededBy)&&o.add(t.other.name)}let r=h.filter(e=>e.head!==null).map(e=>{let s=L(e.origin);return{id:e.sourceId,label:"source",title:e.sourceId,trust:"-",fresh:"fresh",upToDate:"yes",...s?{shown:s}:{}}}),R=d.map(e=>{let s=e.name??"-";if(e.trust==="archived")return{id:s,label:"usecase",title:e.title??"",trust:e.trust,fresh:"-",upToDate:"archived"};let t=e.name!==null&&o.has(e.name),u=e.freshness??"fresh",f=u==="stale"?"source_changed":u==="orphaned"?"source_removed":t?"tests_out_of_date":"yes";return{id:s,label:"usecase",title:e.title??"",trust:e.trust,fresh:u,...t?{testsFresh:"stale"}:{},upToDate:f}}),g=(e,s)=>e.map(t=>{let u=t.name??"-",f=t.title??"";if(t.trust==="archived")return{id:u,label:s,title:f,trust:t.trust,fresh:"-",upToDate:"archived"};let w=t.freshness??"fresh",b=w==="stale"?"designed_from_changed":w==="orphaned"?"source_removed":"yes";return{id:u,label:s,title:f,trust:t.trust,fresh:w,upToDate:b}}),y=g(m,"scenario"),_=g(a,"test"),v=e=>Number(/^[a-z]+-(\d+)$/i.exec(e.id)?.[1]??Number.MAX_SAFE_INTEGER),p=(e,s)=>v(e)-v(s)||e.title.localeCompare(s.title);return r.sort((e,s)=>e.id.localeCompare(s.id)),R.sort(p),y.sort(p),_.sort(p),[...r,...R,...y,..._]}async function P(n,i){let c=(await n.nodes(i,"test")).filter(a=>a.trust!=="archived"),h=new Set((await n.nodes(i,"scenario")).filter(a=>a.trust==="archived").map(a=>a.cid)),d=new Set;for(let a of c){let o=await n.mainNode(i,a.cid);for(let r of o.edgesOut)r.type==="automates"&&r.other!==null&&d.add(r.other.cid)}let l=new Set,m=new Set;for(let a of d){let o=await n.mainNode(i,a);for(let r=0;o.supersededBy!==null&&o.supersededBy!==""&&r<64;r++)o=await n.mainNode(i,o.supersededBy);if(!(o.supersededBy===""||m.has(o.cid))&&(m.add(o.cid),!h.has(o.cid)))for(let r of o.edgesOut)r.type==="belongs_to"&&r.other?.name&&l.add(r.other.name)}return l}export{T as a,P as b};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { createRequire } from 'module'; const require = createRequire(import.meta.url);
|
|
2
|
-
import{i as d}from"./chunk-XMPTFXPW.js";import{c as a}from"./chunk-SB26HQO7.js";import{Ha as o}from"./chunk-
|
|
2
|
+
import{i as d}from"./chunk-XMPTFXPW.js";import{c as a}from"./chunk-SB26HQO7.js";import{Ha as o}from"./chunk-RHQLDNZL.js";async function p(e,l,s){let n=l.project,i=l.local===!0;if(n===void 0&&!i)return{kind:"none"};if(n!==void 0&&i)return r(o.folderFlagsBoth());if(l.resume!==void 0)return r(o.folderFlagWithResume(n!==void 0?"--project":"--local"));if(e.kind==="refuse")return r(e.refusal);if(e.kind==="local")return i?{kind:"none"}:r(o.folderWorksLocally());if(e.kind==="remote")return i?r(o.folderLinkedNotLocal(e.projectName)):n===e.projectId?{kind:"none"}:r(o.folderLinkedElsewhere(e.projectName));if(i)return{kind:"local"};let c;try{c=await s.getProject(n)}catch(t){if(t instanceof d)return r({code:t.code,message:t.message,...t.remedy?{remedy:t.remedy}:{}});if(t instanceof a)return r(o.noConnection());throw t}return c===null?r(o.projectIdUnknown(n,l.agent===!0)):{kind:"link",projectId:c.id,projectName:c.name}}var r=e=>({kind:"refuse",refusal:e}),g=e=>({...e.project!==void 0?{project:e.project}:{},...e.local===!0?{local:!0}:{}});export{p as a,g as b};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { createRequire } from 'module'; const require = createRequire(import.meta.url);
|
|
2
|
-
import{N as v,O as x,Q as g}from"./chunk-
|
|
2
|
+
import{N as v,O as x,Q as g}from"./chunk-NNVHWFLI.js";import{a as p}from"./chunk-TCK7WR3M.js";import{a as b}from"./chunk-YDSGXB25.js";import{d as h,i as C}from"./chunk-IPIARGHE.js";import{b as y}from"./chunk-HD6NR44L.js";import{M as E}from"./chunk-5EAJO372.js";async function O(o,e,n,t={},i=process.cwd()){let u=e.mode==="agent";if(o&&e.fromStale)return v(n,"pass a <ref> OR --from-stale, not both"),2;if(!o&&!e.fromStale)return v(n,"evolve needs a <ref> or --from-stale"),2;if(!u&&(e.answer?.length??0)>0)return v(n,"--answer rides --mode agent: the blast-radius question is asked on the stream and answered on the next call. In a terminal, answer the prompt instead"),2;let s=x(i,n);if(!s)return 2;let a=()=>h(E(p(s))).targets.length===0;if(!e.yes&&!n.isTTY&&!u&&!(e.fromStale&&a()))return v(n,"evolve needs a TTY \u2014 the blast-radius confirm is the point; headless, run with --mode agent (the question rides the stream and is answered with --answer on the next call) or let kane-cli maintain reconcile drive it"),2;let d=u?b(e.answer):null,m=t.emitEvent;return C(p(s),{...o?{ref:o}:{},...e.because?{because:e.because}:{},...e.mode?{mode:e.mode}:{},...e.yes?{yes:!0}:{}},{io:n,asks:{blast:d??{ask:async(c,l)=>await n.confirm(`proceed with the re-design of ${l}?`)?"proceed":"decline"}},runDesign:t.runDesignForUc??I,...t.onChild?{onChild:t.onChild}:!m&&n.isTTY?{onChild:$(n)}:{},...m?{emit:m}:{},by:{kind:"human",id:process.env.USER??"operator"}})}function $(o){let e="",n="evolve";return t=>{t.kind==="start"?(e=t.subject,n=t.verb,o.out(`\u25CF ${y(t.verb).ing} ${t.subject}`)):t.kind==="end"&&o.out(t.ok?`\u25CF ${y(n).ed} ${e} \u2014 ${t.durS}s`:`\u25CF ${n} failed \u2014 ${t.exitCode!=null?`exited ${t.exitCode}`:"error"}${t.fixCmd?` \xB7 ${t.fixCmd}`:""}`)}}var I=async(o,e)=>{let{designTestsCommand:n}=await import("./bind-3PB77PWJ.js"),t=a=>n({useCase:o,force:!0,...e.mode?{mode:e.mode}:e.yes?{mode:"override"}:{},...e.because?{because:e.because}:{},...e.changeDelta!==void 0?{changeDelta:e.changeDelta}:{},...e.priorDesign!==void 0?{priorDesign:e.priorDesign}:{},...e.repinsKept?{repinsKept:!0}:{},...e.statement?{statement:e.statement}:{},...a?{onEvent:a}:{}});if(e.mode!=="agent")return t(e.onChildEvent);let i=e.onChildEvent,u=process.stdout.write,s="";process.stdout.write=((a,d,m)=>{if(i){s+=typeof a=="string"?a:Buffer.isBuffer(a)?a.toString("utf8"):String(a);let l=s.indexOf(`
|
|
3
3
|
`);for(;l>=0;)S(s.slice(0,l),i),s=s.slice(l+1),l=s.indexOf(`
|
|
4
|
-
`)}let c=typeof d=="function"?d:m;return typeof c=="function"&&queueMicrotask(()=>c(null)),!0});try{return await t()}finally{process.stdout.write=u,i&&s.length>0&&S(s,i)}};function S(o,e){let n=o.trim();if(!n.startsWith("{"))return;let t;try{t=JSON.parse(n)}catch{return}if(!t||typeof t!="object"||typeof t.type!="string")return;let i=t;i.type!=="done"&&e(i)}async function B(o,e,n={},t,i=process.cwd()){if(!t&&i===process.cwd()){let{remoteEntry:d}=await import("./remote-entry-
|
|
4
|
+
`)}let c=typeof d=="function"?d:m;return typeof c=="function"&&queueMicrotask(()=>c(null)),!0});try{return await t()}finally{process.stdout.write=u,i&&s.length>0&&S(s,i)}};function S(o,e){let n=o.trim();if(!n.startsWith("{"))return;let t;try{t=JSON.parse(n)}catch{return}if(!t||typeof t!="object"||typeof t.type!="string")return;let i=t;i.type!=="done"&&e(i)}async function B(o,e,n={},t,i=process.cwd()){if(!t&&i===process.cwd()){let{remoteEntry:d}=await import("./remote-entry-6LQRYR5F.js"),m=await d("maintain evolve",e.mode==="agent");if(m!==null){if("exit"in m)return m.exit;let{remoteEvolve:c}=await import("./evolve-remote-4G7YFC5H.js");return c({choice:m.choice,...o!==void 0?{ref:o}:{},opts:e})}}let{makeHeadlessIO:u,agentRefusal:s}=await import("./headless-io-FFM5T6KL.js");if(e.mode!==void 0&&e.mode!=="interactive"&&e.mode!=="agent")return s(u("ndjson","evolve",t),`--mode must be interactive | agent, got '${e.mode}'`,"MODE_USAGE");if(e.mode==="agent"){let d=process.stdout.write.bind(process.stdout),m=process.stderr.write.bind(process.stderr),c=u("ndjson","evolve",t??{stdout:r=>{d(r)},stderr:r=>{m(r)}}),l=[],D=r=>{(r.type==="evolve_paused"||r.type==="session_paused")&&Array.isArray(r.next)&&l.push(...r.next),c.event(r)},k={out:c.out,err:(r,w)=>c.event({type:"error",message:r,...w?{code:w}:{}}),isTTY:!1,confirm:async()=>!1,ask:async()=>""},{runWithChannel:T}=await import("./run-channel-IIIYXOIW.js"),f=2;try{f=await T({event:r=>c.event(r)},()=>O(o,e,k,{...n,emitEvent:D},i))}catch(r){f=1,c.event({type:"error",message:r instanceof Error?r.message:String(r)})}return c.done(f,void 0,l.length>0?l:void 0)}let a=t?{...g(),out:d=>t.stdout(`${d}
|
|
5
5
|
`),err:d=>t.stderr(`${d}
|
|
6
6
|
`),isTTY:!1}:g();return O(o,e,a,n,i)}export{O as a,I as b,S as c,B as d};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { createRequire } from 'module'; const require = createRequire(import.meta.url);
|
|
2
|
-
import{b as Q,c as Z,d as ee,e as fe,f as de}from"./chunk-
|
|
2
|
+
import{b as Q,c as Z,d as ee,e as fe,f as de}from"./chunk-6VG2FG67.js";import{a as ge}from"./chunk-CJGQFKLJ.js";import{d as le}from"./chunk-37KFCYHG.js";import{a as ue}from"./chunk-SDIHDYWT.js";import{b as re,c as ie}from"./chunk-LPJX5L3F.js";import{b as se}from"./chunk-5LKDOE3P.js";import{b as ae}from"./chunk-PCL2FYPE.js";import{a as R,b as E,d as ce}from"./chunk-VE3SUJMA.js";import{c as N}from"./chunk-2AHQ3D3D.js";import{d as ne}from"./chunk-WLEWXE6L.js";import{e as M}from"./chunk-SB26HQO7.js";import{b as oe}from"./chunk-TZXXJWHA.js";import{a as J}from"./chunk-HCBYKLMW.js";import{i as te}from"./chunk-Z7S3IWUX.js";import{a as B}from"./chunk-V24LUINK.js";import{a as Y}from"./chunk-JYH7CTF7.js";import{q as w}from"./chunk-WMXBRC4B.js";import{a as c,b as u,i as O,j as q}from"./chunk-33DWJV67.js";import{a as ye}from"./chunk-6YGTRKDT.js";import{a as T,c as W,e as I}from"./chunk-2XW33VOK.js";import{f as z,g as H}from"./chunk-A7RJQJNT.js";import{e as F}from"./chunk-UR6MHSHU.js";var s=F(ye(),1);var r=F(J(),1);function Ae(f){return f.mode==="login"?f.authOnly?"done":"ensure-project":f.complete?"done":f.hasProject?"ensure-folder":"ensure-project"}function Je({resultRef:f,mode:p="singleshot",loginCompleteRef:d,authOnly:A=!1}){let{exit:h}=q(),k=(0,s.useRef)(new Y),P=(0,s.useRef)(new ae),g=(0,s.useRef)(new le),o=k.current,a=P.current,U=g.current,pe=Q(),[x,m]=(0,s.useState)(p==="login"?"login":"gate"),[X,me]=(0,s.useState)(null),[we,$]=(0,s.useState)(null),[Ee,L]=(0,s.useState)(null),[G,ve]=(0,s.useState)(null),[K,S]=(0,s.useState)([]),b=(0,s.useCallback)((e,t,i,n)=>U.log(e,t,i,n),[U]),ke=(0,s.useCallback)((e,t)=>{e?R(o,a,e,t):a.save({project_id:null,project_name:null,folder_id:null,folder_name:null})},[o,a]),C=(0,s.useCallback)(()=>{if(p==="login")d&&(d.current=!0),h();else{let e=a.load().mobile,t=T(e?.tui_target,e?.default_target?.kind),i=t.kind==="unset"||t.kind==="choose-mobile"&&oe();m(i?"target":"input")}},[p,h,d,a]),_=(0,s.useCallback)((e,t)=>{let i=R(o,a,e,t),n=Ae({mode:p,authOnly:A,hasProject:!!i.projectId,complete:ce(i)});n==="done"?C():m(n)},[o,a,C,p,A]);O((e,t)=>{t.ctrl&&e==="c"&&w(0,"Ctrl+C exit")});let V=(0,s.useRef)(!1);s.default.useEffect(()=>{V.current||(V.current=!0,p!=="login"&&de(o,b).then(e=>{me(e),e.status==="authenticated"?_(e.result.profile,e.result.env):e.status==="needs_pick"?m("pick"):($(e.profile??null),L(e.env??null),m("login"))}).catch(e=>{ve(`Auth check failed: ${e instanceof Error?e.message:String(e)}`)}))},[o,b]);let he=(0,s.useCallback)(e=>{f.current={objective:e},h()},[f,h]),Pe=(0,s.useCallback)(async(e,t)=>{o.setActiveProfile(e),o.setDefaultEnv(t),(await fe(o,e,t,b)).status==="authenticated"?_(e,t):($(e),L(t),m("login"))},[o,b,_]),j=(0,s.useCallback)(()=>{let e=o.getActiveProfile(),t=o.getDefaultEnv();if(!e)return null;let i=B(t),n=o.loadBasicAuth(e,t);return new ue(i.controllerBaseUrl,async()=>o.loadCredentials(e,t)?.access_token??null,n,b)},[o,b]),xe=(0,s.useCallback)(async()=>{let e=j();if(!e)return null;let t=e.cached??await e.resolve();if(!t)return null;let i=B(o.getDefaultEnv()),n=new M(i.tmsBaseUrl,t.username,t.access_key);try{let v=(await n.listProjects()).find(D=>D.name==="KaneAI Generated");if(v)return{id:v.project_id,name:v.name};let y=await n.createProject("KaneAI Generated");return{id:y.id,name:y.name}}catch{return null}},[j,o]),be=(0,s.useCallback)(async e=>{let t=j();if(!t)return null;let i=t.cached??await t.resolve();if(!i)return null;let n=B(o.getDefaultEnv()),l=new M(n.tmsBaseUrl,i.username,i.access_key);try{let y=(await l.listFolders(e)).find(je=>je.name==="Untitled");if(y)return{id:y.id,name:y.name};let D=await l.createFolder(e,"Untitled");return{id:D.id,name:D.name}}catch{return null}},[j,o]);if(x==="gate")return(0,r.jsx)(c,{paddingX:1,children:(0,r.jsx)(u,{color:"yellow",children:"Checking authentication..."})});if(G)return(0,r.jsxs)(c,{flexDirection:"column",paddingX:1,children:[(0,r.jsx)(u,{color:"red",children:G}),(0,r.jsx)(u,{color:"gray",children:"Press Ctrl+C to exit."})]});if(x==="pick"&&X?.status==="needs_pick")return(0,r.jsx)(Ce,{profiles:X.profiles,onSelect:Pe});if(x==="login")return(0,r.jsx)(ee,{devMode:process.env.KANE_DEV_MODE==="1",profiles:o.listProfiles(),onBasicLogin:async(e,t,i,n)=>{let{validateBasicAuth:l}=await import("./validate-basic-HWDR665U.js");await l(t,i,n),o.saveBasicAuth(e,t,{username:i,access_key:n}),o.setActiveProfile(e),o.setDefaultEnv(t)},onOAuthLogin:async(e,t)=>{let{LoginFlow:i}=await import("./login-flow-W7RAVXSD.js");o.setDefaultEnv(t),o.setActiveProfile(e),await new i(e,t,o).login()},onComplete:(e,t)=>{$(e),L(t),o.setActiveProfile(e),o.setDefaultEnv(t),_(e,t)},onCancel:()=>{w(0,"Login cancelled")}});if(x==="ensure-project"){let e=o.getActiveProfile()??"default",t=o.getDefaultEnv(),i=()=>{if(p==="login"){m("ensure-folder");return}R(o,a,e,t).folderId?C():m("ensure-folder")};return(0,r.jsxs)(c,{flexDirection:"column",children:[(0,r.jsx)(c,{paddingX:1,marginBottom:1,children:(0,r.jsx)(u,{color:"yellow",children:"Project & folder are required to save tests \xB7 Esc to use defaults \xB7 Ctrl+C to exit"})}),(0,r.jsx)(ie,{resolver:j(),currentProjectId:a.load().project_id,env:t,...re,onSelect:(n,l)=>{E(o,a,e,t,{projectId:n,projectName:l}),S(v=>[...v,`\u2713 Project: ${l} (${n})`]),i()},onCancel:async()=>{let n=await xe();n&&(E(o,a,e,t,{projectId:n.id,projectName:n.name}),S(l=>[...l,`\u2713 Default project: ${n.name} (${n.id})`]),i())}})]})}if(x==="ensure-folder"){let e=o.getActiveProfile()??"default",t=o.getDefaultEnv(),i=o.loadProfileConfig(e,t);return(0,r.jsxs)(c,{flexDirection:"column",children:[(0,r.jsx)(c,{paddingX:1,marginBottom:1,children:(0,r.jsx)(u,{color:"yellow",children:"Project & folder are required to save tests \xB7 Esc to use defaults \xB7 Ctrl+C to exit"})}),(0,r.jsx)(se,{resolver:j(),projectId:i?.project_id??"",currentFolderId:a.load().folder_id,env:t,onSelect:(n,l)=>{E(o,a,e,t,{folderId:n,folderName:l}),S(v=>[...v,`\u2713 Folder: ${l} (${n})`]),C()},onCancel:async()=>{if(!i?.project_id)return;let n=await be(i.project_id);n&&(E(o,a,e,t,{folderId:n.id,folderName:n.name}),S(l=>[...l,`\u2713 Default folder: ${n.name} (${n.id})`]),C())}})]})}if(x==="target"){let e=T(a.load().mobile?.tui_target,a.load().mobile?.default_target?.kind).kind==="choose-mobile";return(0,r.jsx)(c,{paddingX:1,children:(0,r.jsx)(ge,{mode:e?"legacy-mobile":"all",onSelect:t=>{a.setMobile({tui_target:t}),m("input")},onCancel:()=>m("input")})})}if(x==="input"){let e=a.load().mobile,t=T(e?.tui_target,e?.default_target?.kind),i=(()=>{if(H(t.kind)){let n=te(e?.default_target)??"(no device)",l=N(e?.default_app)??"(no app)";return`Config: ${I(t.kind)} \xB7 ${n} \xB7 ${l}`}if(z(t.kind)){let n=W(e,t.kind),l=N(n.app)??"(no app)";return`Config: ${I(t.kind)} \xB7 ${ne(n)} \xB7 ${l}`}return"Config: Desktop \xB7 Chrome"})();return(0,r.jsxs)(c,{flexDirection:"column",children:[K.length>0&&(0,r.jsx)(c,{flexDirection:"column",paddingX:1,marginBottom:1,children:K.map((n,l)=>(0,r.jsx)(u,{color:"green",children:n},l))}),(0,r.jsx)(c,{paddingX:1,children:(0,r.jsx)(u,{color:"gray",children:i})}),(0,r.jsx)(Z,{onSubmit:he,onEscape:()=>w(0,"User pressed Escape"),history:pe,placeholder:"Type an objective..."})]})}return(0,r.jsx)(r.Fragment,{})}function Ce({profiles:f,onSelect:p}){let[d,A]=(0,s.useState)(0),[h,k]=(0,s.useState)(!1);return O((P,g)=>{if(!h){if(g.escape){w(0,"Profile picker cancelled");return}if(g.upArrow&&d>0&&A(o=>o-1),g.downArrow&&d<f.length-1&&A(o=>o+1),g.return){k(!0);let o=f[d];p(o.profile,o.env).catch(()=>k(!1))}}}),(0,r.jsxs)(c,{flexDirection:"column",paddingX:1,children:[(0,r.jsx)(u,{color:"#ff9500",bold:!0,children:"Select a profile:"}),(0,r.jsx)(c,{marginTop:1,flexDirection:"column",children:f.map((P,g)=>(0,r.jsxs)(u,{children:[g===d?"\u276F ":" ",(0,r.jsx)(u,{color:g===d?"#ff9500":"white",bold:g===d,children:P.profile}),(0,r.jsxs)(u,{color:"gray",children:[" [",P.env,"]"]})]},`${P.profile}-${P.env}`))}),h&&(0,r.jsx)(c,{marginTop:1,children:(0,r.jsx)(u,{color:"yellow",children:"Validating credentials..."})})]})}export{Ae as a,Je as b};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { createRequire } from 'module'; const require = createRequire(import.meta.url);
|
|
2
|
-
import{a as s}from"./chunk-HCBYKLMW.js";import{
|
|
2
|
+
import{a as s}from"./chunk-HCBYKLMW.js";import{A as a}from"./chunk-BRWCWZE3.js";import{a as i,b as n}from"./chunk-33DWJV67.js";import{e as r}from"./chunk-UR6MHSHU.js";var o=r(s(),1);function g({bindings:c,suppressEscBack:p=!1,escBackLabel:m="back to chat"}){let e=c.map(t=>`${t.keys} ${t.label}`);return p||e.push(`esc \xB7 ${m}`),(0,o.jsx)(i,{marginTop:1,children:(0,o.jsx)(n,{color:a.dim,children:e.join(" \xB7 ")})})}export{g as a};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { createRequire } from 'module'; const require = createRequire(import.meta.url);
|
|
2
|
+
import{c as y,e as k}from"./chunk-CB344EDO.js";import{spawn as w}from"child_process";var A=new Set(["progress","ask_user","graph_query","ingest_request","proposal","design","impact","error","done","reasoning_delta","reasoning_done","tool_activity","decision_activity","text_delta","usage","receipt","chat_ops","session_paused","session_complete","state_checkpoint","turn_retry"]),M=5e3,E=new Set(["done","session_paused","error"]);function R(g,t={}){let r=t.spawnCmd!==void 0?t.spawnCmd:y();if(!r)throw new Error("assurance agent not found \u2014 your platform package may be missing; reinstall kane-cli (npm i -g @testmuai/kane-cli)");let h=g.source.images?.length??0;r.tier==="dev-python"&&h>0&&t.onWarn?.("warn: development agent in use \u2014 if image citations are missing, update the agent package");let n=w(r.cmd,r.args,{stdio:["pipe","pipe","pipe"],env:k(g.session_id,t.auth)});if(n.stdin.on("error",e=>{e.code!=="EPIPE"&&t.onWarn?.(`agent stdin: ${e.message}`)}),n.stdin.write(JSON.stringify(g)+`
|
|
3
|
+
`),n.stdout.setEncoding("utf8"),n.stderr.setEncoding("utf8"),t.onStderr){let e="";n.stderr.on("data",o=>{e+=o;let s;for(;(s=e.indexOf(`
|
|
4
|
+
`))>=0;){let a=e.slice(0,s);e=e.slice(s+1),a.trim()&&t.onStderr(a)}})}let u=!1,d=new Promise(e=>{n.on("exit",(o,s)=>{u=!0,e({code:o,signal:s})})}),p=null,f=()=>(p??=(async()=>{if(u||n.pid===void 0)return;n.kill("SIGTERM");let e=setTimeout(()=>{u||n.kill("SIGKILL")},t.killGraceMs??M);e.unref?.(),await d,clearTimeout(e)})(),p),l,v=()=>{l===void 0&&(l=setTimeout(()=>{f()},t.killGraceMs??M),l.unref?.())};d.then(()=>clearTimeout(l));async function*S(){let e="",o=!1;for await(let s of n.stdout){e+=s;let a;for(;(a=e.indexOf(`
|
|
5
|
+
`))>=0;){let c=e.slice(0,a).trim();if(e=e.slice(a+1),!c)continue;let m;try{m=JSON.parse(c)}catch{t.onWarn?.(`agent: skipping malformed line: ${c.slice(0,120)}`);continue}let i=m;if(!i||typeof i!="object"||!A.has(i.type)){t.onWarn?.(`agent: skipping unknown event type "${i&&typeof i=="object"?String(i.type??"?"):"?"}"`);continue}if(E.has(i.type)&&v(),yield i,i.type==="done"){o=!0;break}}if(o)break}await d.catch(()=>{})}return{events:S(),send:e=>{n.stdin&&!n.stdin.destroyed&&n.stdin.write(JSON.stringify(e)+`
|
|
6
|
+
`)},kill:f,exited:d,...n.pid!==void 0?{pid:n.pid}:{},...r.tier?{tier:String(r.tier)}:{}}}export{M as a,R as b};
|