@testmuai/kane-cli 0.8.23 → 0.10.0-rc.1
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-VPD5G67Q.js +2 -0
- package/dist/ChromeProfilePicker-CRKQEFYD.js +2 -0
- package/dist/CliFeedbackPrompt-M7BMWLKK.js +2 -0
- package/dist/CliUploadProgress-OP7DXMC2.js +2 -0
- package/dist/ConfigView-XI74BCCH.js +2 -0
- package/dist/EvidenceViewOffer-HAAK6DS5.js +2 -0
- package/dist/FolderPicker-W5S6RFCP.js +2 -0
- package/dist/InfoBox-OWUEHV2D.js +2 -0
- package/dist/LinksBox-PNSESNCU.js +2 -0
- package/dist/ProfilesView-PYDZZHKO.js +2 -0
- package/dist/ProjectPicker-BGFCUGT5.js +2 -0
- package/dist/SaveSessionPrompt-SUJE54GS.js +2 -0
- package/dist/ScrollbackTap-4SPXGFMU.js +2 -0
- package/dist/SingleShotApp-4TDXZEUA.js +2 -0
- package/dist/SummaryBox-FALOODAQ.js +2 -0
- package/dist/TestMdRunView-4GPRWHEU.js +2 -0
- package/dist/TestrunEvidenceTable-OBVQJ6IO.js +2 -0
- package/dist/WhoamiView-6WXGRANY.js +2 -0
- package/dist/{agent-parse-2MLJOJTH.js → agent-parse-CAS45UKA.js} +1 -1
- package/dist/app-client-U2YYF65L.js +2 -0
- package/dist/app-download-RXVZB6MM.js +2 -0
- package/dist/assurance-job-C3TXZGLL.js +7 -0
- package/dist/auth-7Z54TMQQ.js +2 -0
- package/dist/{binary-MOJTQGUV.js → binary-DJCDMGPX.js} +1 -1
- package/dist/bind-XVO4CQYV.js +2 -0
- package/dist/bootstrap-TY5RANJ7.js +2 -0
- package/dist/bridge-T6QMYKED.js +2 -0
- package/dist/build-5ZN47FAT.js +2 -0
- package/dist/catalog-RRQF4TCA.js +2 -0
- package/dist/{changelog-2N6HKKKQ.js → changelog-GBEVIUFJ.js} +1 -1
- package/dist/chat-committer-ZCSRJEUB.js +2 -0
- package/dist/chat-controller-XINCDH6Z.js +2 -0
- package/dist/child-G2GCW73X.js +2 -0
- package/dist/chunk-22PIMG52.js +2 -0
- package/dist/chunk-252FWF2G.js +19 -0
- package/dist/{chunk-AT3RME5W.js → chunk-2IZRPMZN.js} +1 -1
- package/dist/chunk-2NFS4KE4.js +2 -0
- package/dist/{chunk-LHUW5QDT.js → chunk-2OOFURWD.js} +1 -1
- package/dist/chunk-2OSFI33O.js +97 -0
- package/dist/chunk-2S3W2JT3.js +5 -0
- package/dist/chunk-2SWSVJUP.js +12 -0
- package/dist/chunk-2TVPA3LL.js +2 -0
- package/dist/chunk-2XW33VOK.js +2 -0
- package/dist/chunk-33DWJV67.js +235 -0
- package/dist/chunk-34R7BNZ2.js +2 -0
- package/dist/chunk-35ECWCCK.js +2 -0
- package/dist/chunk-3BSYOCSW.js +3 -0
- package/dist/chunk-3G2LSTK5.js +2 -0
- package/dist/chunk-3GXN6VF6.js +2 -0
- package/dist/chunk-3JLEDSG5.js +4 -0
- package/dist/chunk-3QICDXY5.js +5 -0
- package/dist/chunk-3UVSAAES.js +10 -0
- package/dist/chunk-42PALMW2.js +4 -0
- package/dist/chunk-432ZOE42.js +21 -0
- package/dist/chunk-44B6THYK.js +2 -0
- package/dist/chunk-47WQBG5I.js +6 -0
- package/dist/{chunk-J2FJ62K4.js → chunk-4D5PC6QE.js} +1 -1
- package/dist/chunk-4I7YN6YY.js +3 -0
- package/dist/chunk-4IEQNX7F.js +2 -0
- package/dist/{chunk-SYJXTB4J.js → chunk-4LPX2OLV.js} +1 -1
- package/dist/chunk-4LTHDJ3D.js +2 -0
- package/dist/chunk-4QTH7VYE.js +2 -0
- package/dist/chunk-54XA5MZH.js +2 -0
- package/dist/chunk-57MDWTON.js +2 -0
- package/dist/{chunk-3C32LVLX.js → chunk-5BUIIFLC.js} +1 -1
- package/dist/chunk-5D7ENQTQ.js +2 -0
- package/dist/chunk-63EKRZKI.js +2 -0
- package/dist/{chunk-EHN5HTUD.js → chunk-65VANXOF.js} +51 -51
- package/dist/chunk-672CQECV.js +47 -0
- package/dist/chunk-6LIC2R22.js +3 -0
- package/dist/chunk-6NFOH4AC.js +4 -0
- package/dist/chunk-6NWT2TEJ.js +2 -0
- package/dist/chunk-6PIIUAZF.js +3 -0
- package/dist/{chunk-MBJHS653.js → chunk-6U7ID777.js} +1 -1
- package/dist/chunk-6UVIY56J.js +2 -0
- package/dist/chunk-72KYMWQ5.js +2 -0
- package/dist/chunk-72RC7JSA.js +21 -0
- package/dist/chunk-74W4AOT2.js +2 -0
- package/dist/chunk-77ZZQJLX.js +2 -0
- package/dist/chunk-7DFBOVUB.js +2 -0
- package/dist/chunk-7EXDYXXD.js +2 -0
- package/dist/chunk-7HO4NX5W.js +1 -0
- package/dist/chunk-7KX2BHKG.js +2 -0
- package/dist/chunk-7LKCWO2R.js +11 -0
- package/dist/{chunk-ULGZPRKU.js → chunk-7NCJMWFX.js} +1 -1
- package/dist/chunk-7RPKHKA3.js +2 -0
- package/dist/chunk-7RWP4Y3H.js +2 -0
- package/dist/chunk-7V4BQSSV.js +2 -0
- package/dist/chunk-7XBNMOH4.js +6 -0
- package/dist/chunk-A6TJOZ24.js +2 -0
- package/dist/chunk-A7RJQJNT.js +2 -0
- package/dist/chunk-AA674WLL.js +2 -0
- package/dist/chunk-AIXJYMSP.js +9 -0
- package/dist/chunk-AJQZ3ST5.js +8 -0
- package/dist/chunk-AQ2OG2EF.js +2 -0
- package/dist/chunk-AUJSC7PU.js +4 -0
- package/dist/chunk-AVI5H4UM.js +13 -0
- package/dist/chunk-AZLNLHUA.js +4 -0
- package/dist/chunk-B2HXPGIZ.js +26 -0
- package/dist/chunk-B7ZX5HEN.js +8 -0
- package/dist/{chunk-XQQHSC7G.js → chunk-BJJUKB5K.js} +1 -1
- package/dist/{chunk-66MOZKD2.js → chunk-BSRSXYDZ.js} +1 -1
- package/dist/{chunk-TONFENRW.js → chunk-BVO4C5F2.js} +1 -1
- package/dist/chunk-BWXLZS5O.js +2 -0
- package/dist/chunk-BY65QAAN.js +4 -0
- package/dist/chunk-BZVNI44O.js +6 -0
- package/dist/chunk-C5Z7MQE6.js +2 -0
- package/dist/chunk-C6HI6Y3S.js +2 -0
- package/dist/chunk-CB4ARIHR.js +2 -0
- package/dist/chunk-CPBBYNL7.js +4 -0
- package/dist/{chunk-GFNCGN5V.js → chunk-D4FFXCX6.js} +2 -2
- package/dist/chunk-D756UWY2.js +6 -0
- package/dist/chunk-DBMW3VUN.js +4 -0
- package/dist/chunk-DD5TULWQ.js +34 -0
- package/dist/{chunk-SY4T44VC.js → chunk-DDJNYQBH.js} +1 -1
- package/dist/{chunk-KJIDMW6N.js → chunk-DHQ4SQWA.js} +1 -1
- package/dist/chunk-DNGOT65K.js +3 -0
- package/dist/chunk-DPGOAFKF.js +2 -0
- package/dist/chunk-DREQ3RAA.js +2 -0
- package/dist/chunk-DTUPEKEO.js +2 -0
- package/dist/chunk-E6KSRQXL.js +8 -0
- package/dist/chunk-EF47KRUK.js +2 -0
- package/dist/chunk-ENL4XTQ2.js +2 -0
- package/dist/chunk-EXFDIVNI.js +9 -0
- package/dist/chunk-EZN7CF45.js +4 -0
- package/dist/chunk-F3U6T4YD.js +22 -0
- package/dist/{chunk-DHJSM5DT.js → chunk-FCD3NYOM.js} +1 -1
- package/dist/chunk-FFL55I2M.js +2 -0
- package/dist/chunk-FIP5L6LV.js +9 -0
- package/dist/chunk-FOJHSG5M.js +6 -0
- package/dist/chunk-FSYOTRMC.js +2 -0
- package/dist/chunk-GFLB2SHW.js +2 -0
- package/dist/chunk-GMTHZUZ3.js +2 -0
- package/dist/chunk-GRURFGBP.js +2 -0
- package/dist/chunk-GZFLJORM.js +2 -0
- package/dist/{chunk-PXHN7SFG.js → chunk-H3HHSTEK.js} +4 -4
- package/dist/chunk-HAW5WEKT.js +13 -0
- package/dist/chunk-HFJSP4KD.js +2 -0
- package/dist/chunk-HHW6MRU3.js +6 -0
- package/dist/chunk-HIUAUZNL.js +2 -0
- package/dist/chunk-HJLMH7ZM.js +2 -0
- package/dist/{chunk-5GUD3CIH.js → chunk-HQ2E2XCU.js} +1 -1
- package/dist/chunk-I2KOGINW.js +7 -0
- package/dist/chunk-I2MC6VVX.js +2 -0
- package/dist/chunk-I5NSJBOZ.js +2 -0
- package/dist/chunk-I6OQISK4.js +2 -0
- package/dist/chunk-IBBD36FQ.js +2 -0
- package/dist/chunk-IINZZ4BZ.js +2 -0
- package/dist/{chunk-UYI4WPNQ.js → chunk-IMDMRJQ6.js} +2 -2
- package/dist/chunk-IXW7FOGX.js +2 -0
- package/dist/chunk-IZ65ZPWY.js +3 -0
- package/dist/chunk-JD52IXON.js +9 -0
- package/dist/chunk-JGRXMTME.js +15 -0
- package/dist/{chunk-NBXYL2JT.js → chunk-JIRNI5TB.js} +7 -7
- package/dist/chunk-JNSWKGTB.js +2 -0
- package/dist/chunk-JPYW6U4D.js +2 -0
- package/dist/chunk-JQSLUGD4.js +3 -0
- package/dist/chunk-K45BKGB5.js +8 -0
- package/dist/chunk-KF4DKXSS.js +2 -0
- package/dist/chunk-KGNE5CIM.js +2 -0
- package/dist/chunk-KM3YCIDV.js +3 -0
- package/dist/chunk-KU3YHPWZ.js +2 -0
- package/dist/chunk-L4UVUFL6.js +3 -0
- package/dist/chunk-LCSJ7GOG.js +2 -0
- package/dist/chunk-LKQFG4RW.js +5 -0
- package/dist/chunk-LNNWCBPQ.js +2 -0
- package/dist/chunk-LRS5MGBY.js +3 -0
- package/dist/chunk-LRXBJTD4.js +4 -0
- package/dist/chunk-LSDJOVWW.js +6 -0
- package/dist/chunk-LWJRSUE2.js +2 -0
- package/dist/chunk-LX2I4JEH.js +2 -0
- package/dist/{chunk-K6VDRR3H.js → chunk-M6MBMRFR.js} +1 -1
- package/dist/chunk-MGNRNLBE.js +2 -0
- package/dist/chunk-MII3JOO3.js +4 -0
- package/dist/chunk-MNBGG4H3.js +16 -0
- package/dist/chunk-MYVKUJGS.js +2 -0
- package/dist/chunk-MYZHOBS4.js +2 -0
- package/dist/chunk-MZOIHUVX.js +27 -0
- package/dist/{chunk-OFRYEWZE.js → chunk-N3TCNZSX.js} +1 -1
- package/dist/chunk-NC7D7GOM.js +21 -0
- package/dist/{chunk-CLQP3DHT.js → chunk-NDEI7R4K.js} +1 -1
- package/dist/chunk-NFRA64NU.js +10 -0
- package/dist/chunk-NLZZLANH.js +4 -0
- package/dist/{chunk-5HOHXV2K.js → chunk-NQTYWHPB.js} +1 -1
- package/dist/chunk-NWBLYMH7.js +3 -0
- package/dist/chunk-NWD54VV5.js +2 -0
- package/dist/chunk-NXRF7FFS.js +2 -0
- package/dist/chunk-O3HHTKZ5.js +6 -0
- package/dist/{chunk-FPFS6OSR.js → chunk-OAKYUBD3.js} +1 -1
- package/dist/chunk-OEWYXCTA.js +7 -0
- package/dist/{chunk-BASTDR3M.js → chunk-OF7WPCTQ.js} +1 -1
- package/dist/chunk-OFSDB7B4.js +3 -0
- package/dist/chunk-OJ33Q6DU.js +2 -0
- package/dist/chunk-OQ5G773E.js +2 -0
- package/dist/chunk-OVNRRI4E.js +2 -0
- package/dist/{chunk-RAARDC2O.js → chunk-OZNBTSW5.js} +1 -1
- package/dist/chunk-P2ZQDQDB.js +2 -0
- package/dist/chunk-P7MSVLAH.js +6 -0
- package/dist/chunk-PUVMC4PX.js +26 -0
- package/dist/{chunk-SEEEGDVK.js → chunk-PZA3BSOE.js} +1 -1
- package/dist/chunk-Q3C6NDGI.js +2 -0
- package/dist/chunk-QCKA665H.js +2 -0
- package/dist/chunk-QDFY5GGO.js +5 -0
- package/dist/chunk-QHRUBG7J.js +2 -0
- package/dist/chunk-QI5RZ7LL.js +2 -0
- package/dist/chunk-QNLVC5ZB.js +2 -0
- package/dist/{chunk-DSKJ6J7Y.js → chunk-QQ4TKLWP.js} +1 -1
- package/dist/chunk-QS5ZJFGF.js +4 -0
- package/dist/chunk-QTZBVDPR.js +12 -0
- package/dist/chunk-QXQ7KVEN.js +2 -0
- package/dist/chunk-R4JUKTDO.js +2 -0
- package/dist/chunk-R7KXAISS.js +12 -0
- package/dist/chunk-RDP7GWSY.js +2 -0
- package/dist/chunk-REKHAN53.js +5 -0
- package/dist/{chunk-5RHR4DMF.js → chunk-RFEON5GN.js} +1 -1
- package/dist/chunk-RFIIM33J.js +2 -0
- package/dist/chunk-RG372DON.js +6 -0
- package/dist/chunk-RPRXRKKR.js +2 -0
- package/dist/chunk-RTVWQK7I.js +2 -0
- package/dist/chunk-RW3Z2HMB.js +7 -0
- package/dist/chunk-RX47NRSM.js +2 -0
- package/dist/chunk-RX6776AI.js +5 -0
- package/dist/chunk-S53AQU7R.js +6 -0
- package/dist/{chunk-HJX5PQRD.js → chunk-SA6IKFFD.js} +1 -1
- package/dist/{chunk-2MEQTHNI.js → chunk-SLKYD44Y.js} +1 -1
- package/dist/chunk-SMTBOSEJ.js +2 -0
- package/dist/chunk-SMXABALN.js +2 -0
- package/dist/chunk-SONMD3W5.js +5 -0
- package/dist/chunk-SWMTXMKB.js +2 -0
- package/dist/chunk-SXRHKXSE.js +2 -0
- package/dist/chunk-T3HEJASG.js +5 -0
- package/dist/chunk-T4AVLJCW.js +6 -0
- package/dist/{chunk-J6TBTWW7.js → chunk-T6K2MEWP.js} +1 -1
- package/dist/{chunk-D6BULK7E.js → chunk-T7H4LBFK.js} +1 -1
- package/dist/chunk-TNORODUF.js +2 -0
- package/dist/chunk-TW63WWEN.js +2 -0
- package/dist/chunk-UALJTPSA.js +18 -0
- package/dist/chunk-UAWWLLTI.js +2 -0
- package/dist/chunk-UEE3RZN4.js +14 -0
- package/dist/chunk-UTM7D4PI.js +2 -0
- package/dist/chunk-UUJIGOEO.js +2 -0
- package/dist/chunk-UYDHOHSZ.js +2 -0
- package/dist/chunk-V5JGXOV7.js +2 -0
- package/dist/chunk-V7S6S5W3.js +2 -0
- package/dist/{chunk-HBSYBL6J.js → chunk-VG44B5JD.js} +1 -1
- package/dist/chunk-VJGWVBZR.js +1 -0
- package/dist/chunk-VLDCHFXF.js +2 -0
- package/dist/chunk-VO66KP2W.js +2 -0
- package/dist/{chunk-D4XR7EEQ.js → chunk-VQLH63X7.js} +14 -12
- package/dist/chunk-VRIZDOO5.js +2 -0
- package/dist/chunk-VYHT2IET.js +1397 -0
- package/dist/chunk-VZJ6LUXX.js +2 -0
- package/dist/chunk-W3OVSDBN.js +29 -0
- package/dist/chunk-W7FLXW6Q.js +5 -0
- package/dist/{chunk-IEW7AW64.js → chunk-WEM3MOAL.js} +1 -1
- package/dist/chunk-WI7K6VKQ.js +2 -0
- package/dist/chunk-WMGKUERB.js +6 -0
- package/dist/{chunk-DFS4RMVP.js → chunk-WN5VKKJ3.js} +1 -1
- package/dist/chunk-WOSANGV6.js +5 -0
- package/dist/chunk-WYSZ6TPW.js +15 -0
- package/dist/chunk-XB6BJPDL.js +2 -0
- package/dist/{chunk-5ESGUPSR.js → chunk-XBEYWXPV.js} +1 -1
- package/dist/chunk-XIPKSXRQ.js +16 -0
- package/dist/chunk-XJ7HCXKW.js +2 -0
- package/dist/chunk-XMPTFXPW.js +5 -0
- package/dist/chunk-XZYA7DNH.js +2 -0
- package/dist/chunk-Y4T4SLDO.js +2 -0
- package/dist/chunk-Y6Y6RAY4.js +2 -0
- package/dist/chunk-YDPTSDIJ.js +2 -0
- package/dist/chunk-YDSGXB25.js +2 -0
- package/dist/chunk-YIKF4ERQ.js +375 -0
- package/dist/chunk-Z55KBMYV.js +2 -0
- package/dist/chunk-ZCRZFAOT.js +2 -0
- package/dist/chunk-ZFM77AQU.js +2 -0
- package/dist/{chunk-Q6F23V7L.js → chunk-ZFMRQ57Y.js} +1 -1
- package/dist/chunk-ZHWU6L2G.js +5 -0
- package/dist/chunk-ZTHYAHDN.js +17 -0
- package/dist/chunk-ZZP5SHUV.js +3 -0
- package/dist/committer-JGY66PFM.js +2 -0
- package/dist/config-5ZOALGKE.js +2 -0
- package/dist/controller-client-PB3AZAGG.js +2 -0
- package/dist/cover-cmd-UA2SVIZZ.js +2 -0
- package/dist/{credentials-PSQWWFGD.js → credentials-MRG452Y6.js} +1 -1
- package/dist/{deps-bundle-PPOQHJTB.js → deps-bundle-FWINW4XM.js} +1 -1
- package/dist/{deps-resolve-AX6ZAKLH.js → deps-resolve-IET4KIBO.js} +1 -1
- package/dist/descriptor-7T32VRMB.js +2 -0
- package/dist/design-chat-MM5PJD2N.js +2 -0
- package/dist/design-committer-TRYP3LOZ.js +2 -0
- package/dist/design-headless-FZONCKHW.js +2 -0
- package/dist/design-remote-SPVRIY2H.js +3 -0
- package/dist/device-env-LXJ65AVF.js +2 -0
- package/dist/dispatch-DVQ3H7EJ.js +2 -0
- package/dist/doctor-VAX2BWQF.js +2 -0
- package/dist/docx-convert-6IZO5P5K.js +2 -0
- package/dist/{dossier-7HVC6BNK.js → dossier-NROC2MCY.js} +1 -1
- package/dist/evidence-LVVK7ROT.js +2 -0
- package/dist/evidence-presentation-YYTIDCBS.js +2 -0
- package/dist/evolve-cmd-AGRKG7T3.js +2 -0
- package/dist/evolve-remote-BGHULJTL.js +2 -0
- package/dist/{exit-manager-ZLDO54S4.js → exit-manager-EDHCETUN.js} +1 -1
- package/dist/explain-DGJ5T6V5.js +2 -0
- package/dist/explain-cmd-VYAANFFZ.js +4 -0
- package/dist/explain-cmd-WOBGS6KX.js +12 -0
- package/dist/explore-LOKNOVNP.js +2 -0
- package/dist/explore-context-tty-JTZVZFOE.js +2 -0
- package/dist/explore-entry-5OGNLFAU.js +6 -0
- package/dist/explore-live-2XZHUYFS.js +5 -0
- package/dist/explore-run-tty-LGTIK2NA.js +5 -0
- package/dist/extract-bind-NM2BBK4I.js +14 -0
- package/dist/extract-chat-HLQMJJIC.js +2 -0
- package/dist/extract-cmd-T2TSAC3N.js +6 -0
- package/dist/extract-headless-OQTQ3FJK.js +2 -0
- package/dist/feeder-NY45UFJK.js +2 -0
- package/dist/folder-flags-WXUR6OPJ.js +2 -0
- package/dist/gaps-cmd-PTSKPTF7.js +3 -0
- package/dist/gate-P57VP4E5.js +2 -0
- package/dist/gate-WISOUTHQ.js +2 -0
- package/dist/{generate-headless-TEDHS3F2.js → generate-headless-JYZP6VXZ.js} +3 -3
- package/dist/headless-io-FFM5T6KL.js +2 -0
- package/dist/hold-passthrough-IOWPVB4W.js +2 -0
- package/dist/identity-HL5CJJXR.js +2 -0
- package/dist/index.js +194 -175
- package/dist/ingest-PDGS5ZTL.js +2 -0
- package/dist/ingest-cmd-LHCBMO4Z.js +8 -0
- package/dist/ingest-remote-D5TO5JQP.js +2 -0
- package/dist/ink-screen-RZ7QDIUI.js +2 -0
- package/dist/install-Z6K2D2VY.js +2 -0
- package/dist/interactive-bind-5EJQUGKI.js +26 -0
- package/dist/interactive-remote-D77ULJGL.js +65 -0
- package/dist/interrupt-guard-QETBPINI.js +2 -0
- package/dist/lane-AQYRIW24.js +2 -0
- package/dist/lattice-auth-74XGF77Y.js +2 -0
- package/dist/lifecycle-cmd-7SM6UCMH.js +2 -0
- package/dist/list-cmd-Z6FZXMFU.js +3 -0
- package/dist/list-commands-CZYZ7GIG.js +2 -0
- package/dist/list-remote-WOPOC6KK.js +15 -0
- package/dist/locks-cmd-JJ2QNTNY.js +2 -0
- package/dist/logical-ids-RXAQJZ3T.js +2 -0
- package/dist/login-flow-2FZEOVHM.js +2 -0
- package/dist/maintenance-cmd-VRTGZVRE.js +2 -0
- package/dist/mobile-prompts-KNAHU64X.js +2 -0
- package/dist/{next-KZXH4UA4.js → next-O6SUSX3R.js} +1 -1
- package/dist/{objective-variable-gate-JALOH6SL.js → objective-variable-gate-3Z7DNVVC.js} +1 -1
- package/dist/onboarding-LGT6PMDZ.js +5 -0
- package/dist/open-provider-OZAG6WZS.js +2 -0
- package/dist/{paths-JCYX6UWL.js → paths-UMIX3RJF.js} +1 -1
- package/dist/pdf-convert-447ACUB3.js +2 -0
- package/dist/persist-recorded-session-BX7II5P7.js +3 -0
- package/dist/phase-seed-LCJ4WSYV.js +2 -0
- package/dist/pipeline-IXVTVRS5.js +2 -0
- package/dist/prepare-target-ULMKVKMC.js +2 -0
- package/dist/pull-cmd-6AL2WYHB.js +2 -0
- package/dist/pull-route-TTVARJMV.js +2 -0
- package/dist/readmodel-INMP6MNW.js +2 -0
- package/dist/real-device-run-2LFS5WE2.js +2 -0
- package/dist/reconcile-cmd-R6H37SQR.js +5 -0
- package/dist/reconcile-deps-TWJ3FTSU.js +2 -0
- package/dist/reconcile-remote-GWDV5CUT.js +13 -0
- package/dist/recording-banner-ACC67Q2U.js +2 -0
- package/dist/registry-6IJYQXQC.js +2 -0
- package/dist/remote-entry-YL7O2NJQ.js +2 -0
- package/dist/remote-mode-7G6PLJCW.js +4 -0
- package/dist/remote-words-45USLRVN.js +2 -0
- package/dist/require-project-folder-A3UDRELU.js +2 -0
- package/dist/resolve-run-intent-ZGPSUBXV.js +2 -0
- package/dist/resolver-IPM6R7U4.js +2 -0
- package/dist/revert-FHOBLZWF.js +2 -0
- package/dist/review-cmd-NNT5C5RZ.js +5 -0
- package/dist/run-5RQUCNYP.js +2 -0
- package/dist/run-PC5YO4AS.js +2 -0
- package/dist/run-channel-63SVP5OI.js +2 -0
- package/dist/run-remote-3AYYVPKX.js +2 -0
- package/dist/run-startup-gate-NKRMKYBB.js +2 -0
- package/dist/run-test-md-HE6DUWQR.js +17 -0
- package/dist/scrollback-GGNBDFQV.js +2 -0
- package/dist/session-target-DD53UXO7.js +2 -0
- package/dist/session-worker.js +12 -0
- package/dist/sessions-CFV7FOIT.js +2 -0
- package/dist/sessions-cmd-GYMETJHG.js +26 -0
- package/dist/sessions-remote-GI7GOBMH.js +3 -0
- package/dist/shell-arg-FN3MT5U7.js +2 -0
- package/dist/{skill-installer-T2IOCPET.js → skill-installer-3QAVQGDH.js} +1 -1
- package/dist/spawner-C7NLLM4F.js +2 -0
- package/dist/store-X6XPFSKF.js +2 -0
- package/dist/store-choice-RT73HAI7.js +2 -0
- package/dist/store-guard-SNWKLHQV.js +2 -0
- package/dist/store-id-YZ5WKJ25.js +2 -0
- package/dist/store-site-KA2DNBGY.js +2 -0
- package/dist/stream-warnings-GEQKKJU7.js +2 -0
- package/dist/structured-answers-EQ2AP3F7.js +2 -0
- package/dist/sync-cmd-NBPPDG3B.js +2 -0
- package/dist/sync-setup-5NUCH6N3.js +2 -0
- package/dist/{sync-setup-ui-RC727VK6.js → sync-setup-ui-XITPGSO4.js} +2 -2
- package/dist/tcg-generate-Z23CUISY.js +2 -0
- package/dist/test-definition-VRI4YIYL.js +2 -0
- package/dist/testmd-actions-GH5BW5V5.js +2 -0
- package/dist/testmd-sync-ACKCIOL3.js +2 -0
- package/dist/tms-client-NXAB6VJD.js +2 -0
- package/dist/token-refresh-4UCYAG6A.js +2 -0
- package/dist/trust-gate-AT2XBWN4.js +2 -0
- package/dist/turn-preflight-LHYLRL7G.js +2 -0
- package/dist/ui-SNV3FD2G.js +4 -0
- package/dist/use-case-ref-NE4X4MZN.js +2 -0
- package/dist/validate-basic-RE2WLIGQ.js +2 -0
- package/dist/{variable-receipt-F55CSW5Z.js → variable-receipt-BXSZO36E.js} +1 -1
- package/dist/verdicts-XK3GAUX3.js +2 -0
- package/dist/version-check-4FJVZP3K.js +2 -0
- package/dist/{view-cmd-ELDKYRMZ.js → view-cmd-N47BQZPD.js} +4 -3
- package/dist/walk-session-DA7QWXSW.js +2 -0
- package/dist/with-telemetry-7V4LY2BG.js +2 -0
- package/package.json +11 -11
- package/dist/ChatSurface-GBZX4LWL.js +0 -8
- package/dist/ChromeProfilePicker-UONX2UVC.js +0 -2
- package/dist/CliFeedbackPrompt-6BJCNRNG.js +0 -2
- package/dist/CliUploadProgress-K4Z22DSY.js +0 -2
- package/dist/ConfigView-BB22G7JO.js +0 -2
- package/dist/EvidenceViewOffer-25IQF3TX.js +0 -2
- package/dist/FolderPicker-65JFR2NW.js +0 -2
- package/dist/InfoBox-OU5PLRIL.js +0 -2
- package/dist/LinksBox-DH7TSUXW.js +0 -2
- package/dist/ProfilesView-MGJKBOF5.js +0 -2
- package/dist/ProjectPicker-YFV6K77F.js +0 -2
- package/dist/SaveSessionPrompt-64QKQB6B.js +0 -2
- package/dist/ScrollbackTap-QHJOFYMC.js +0 -2
- package/dist/SingleShotApp-VYKUCRVW.js +0 -2
- package/dist/SummaryBox-DGS3LVRF.js +0 -2
- package/dist/TestMdRunView-LKAITAA4.js +0 -2
- package/dist/TestrunEvidenceTable-PHBAB4XQ.js +0 -2
- package/dist/WhoamiView-6HWPYN6Y.js +0 -2
- package/dist/app-client-ZCCNE3RV.js +0 -2
- package/dist/app-download-SQ2LYYL7.js +0 -2
- package/dist/auth-NWBIFCB7.js +0 -2
- package/dist/bind-S3IQTPNN.js +0 -15
- package/dist/bootstrap-RCV7PNMQ.js +0 -2
- package/dist/bridge-O7ENTV4K.js +0 -2
- package/dist/build-JIKYOZUH.js +0 -2
- package/dist/chat-committer-6D7AQI6Z.js +0 -2
- package/dist/chat-controller-UJQ6Z4RE.js +0 -2
- package/dist/chunk-2A7OQRAD.js +0 -17
- package/dist/chunk-2FH4HJYB.js +0 -5
- package/dist/chunk-2KVECC36.js +0 -2
- package/dist/chunk-2YEHV2CX.js +0 -2
- package/dist/chunk-3OKX64UR.js +0 -2
- package/dist/chunk-3UI5VTQS.js +0 -4
- package/dist/chunk-3UMVRJX3.js +0 -6
- package/dist/chunk-3VAU3PNU.js +0 -2
- package/dist/chunk-5EOX4MEY.js +0 -2
- package/dist/chunk-5LJRZI7S.js +0 -6
- package/dist/chunk-5UHY3PTQ.js +0 -3
- package/dist/chunk-5ZFOKYFB.js +0 -5
- package/dist/chunk-63DYVWNX.js +0 -2
- package/dist/chunk-6YZ3VP3E.js +0 -2
- package/dist/chunk-7KRY26OF.js +0 -4
- package/dist/chunk-7N6OCHPC.js +0 -7
- package/dist/chunk-A2SQD2AY.js +0 -4
- package/dist/chunk-AACQE24F.js +0 -2
- package/dist/chunk-AGDPEZXT.js +0 -4
- package/dist/chunk-AIK7BAME.js +0 -8
- package/dist/chunk-ATYXPCM6.js +0 -6
- package/dist/chunk-AXTPNZPX.js +0 -2
- package/dist/chunk-BB2W35TW.js +0 -2
- package/dist/chunk-BKM2LWU2.js +0 -3
- package/dist/chunk-BL5QHONU.js +0 -2
- package/dist/chunk-C44QQJR4.js +0 -239
- package/dist/chunk-C7NWWGLT.js +0 -6
- package/dist/chunk-CAJZQQ3G.js +0 -3
- package/dist/chunk-CSVPZ33X.js +0 -2
- package/dist/chunk-CXF6AZWY.js +0 -2
- package/dist/chunk-D6E6KRVX.js +0 -2
- package/dist/chunk-D7WG7SRA.js +0 -2
- package/dist/chunk-DDHGEJJP.js +0 -2
- package/dist/chunk-DUYRCVI5.js +0 -2
- package/dist/chunk-DWHF5HUD.js +0 -2
- package/dist/chunk-EM3PU2YW.js +0 -2
- package/dist/chunk-EVFFDODK.js +0 -5
- package/dist/chunk-EYOCNMUM.js +0 -2
- package/dist/chunk-F2OBORCG.js +0 -2
- package/dist/chunk-FMBPUXWL.js +0 -8
- package/dist/chunk-FORNRNHU.js +0 -2
- package/dist/chunk-FQJOWUEN.js +0 -2
- package/dist/chunk-FQNQVC5O.js +0 -5
- package/dist/chunk-FY7TCYPK.js +0 -6
- package/dist/chunk-HJGVM6TS.js +0 -370
- package/dist/chunk-HPHETGRE.js +0 -2
- package/dist/chunk-I7TIGB7K.js +0 -2
- package/dist/chunk-IGHK2ENL.js +0 -2
- package/dist/chunk-IICT4VOU.js +0 -2
- package/dist/chunk-IIDBLJ5A.js +0 -18
- package/dist/chunk-JFZA4UON.js +0 -9
- package/dist/chunk-K2UJYY2U.js +0 -2
- package/dist/chunk-KBM3XHAM.js +0 -2
- package/dist/chunk-KDNNMU7Q.js +0 -4
- package/dist/chunk-KJQNAOOE.js +0 -6
- package/dist/chunk-LF42V6P6.js +0 -7
- package/dist/chunk-LNFU4JZ7.js +0 -2
- package/dist/chunk-LNSBC32V.js +0 -2
- package/dist/chunk-LSDWPG6C.js +0 -2
- package/dist/chunk-MKMJOMLX.js +0 -8
- package/dist/chunk-MKQ7ZRDW.js +0 -2
- package/dist/chunk-MSGW4JDG.js +0 -2
- package/dist/chunk-MV3Q335C.js +0 -7
- package/dist/chunk-MWIE6LOZ.js +0 -4
- package/dist/chunk-MZ7W4WLF.js +0 -4
- package/dist/chunk-NIFJJX6N.js +0 -12
- package/dist/chunk-NJ4BXZBX.js +0 -2
- package/dist/chunk-NLCCBXXV.js +0 -2
- package/dist/chunk-ODU2JSMA.js +0 -8
- package/dist/chunk-OYKRCDT4.js +0 -15
- package/dist/chunk-Q2F5QB2W.js +0 -2
- package/dist/chunk-Q4YYAN6E.js +0 -2
- package/dist/chunk-Q6AHSGOE.js +0 -5
- package/dist/chunk-QAG67DUT.js +0 -2
- package/dist/chunk-QGXVQIN5.js +0 -27
- package/dist/chunk-QQCEP3QP.js +0 -2
- package/dist/chunk-QU7P7B3W.js +0 -4
- package/dist/chunk-RAPV3BTA.js +0 -98
- package/dist/chunk-RD72POF2.js +0 -2
- package/dist/chunk-RDHWNSDP.js +0 -7
- package/dist/chunk-RGRFL7XG.js +0 -29
- package/dist/chunk-RKXHVP2Z.js +0 -2
- package/dist/chunk-RMVASIVL.js +0 -35
- package/dist/chunk-RRY5IXOB.js +0 -2
- package/dist/chunk-RSSOJ3L2.js +0 -21
- package/dist/chunk-SB2SKN34.js +0 -2
- package/dist/chunk-SFFDVF3J.js +0 -9
- package/dist/chunk-T2ONUKTL.js +0 -5
- package/dist/chunk-TAOHYWEO.js +0 -2
- package/dist/chunk-U6OTFMIT.js +0 -4
- package/dist/chunk-UD7KKHPW.js +0 -5
- package/dist/chunk-UF4MU2AZ.js +0 -22
- package/dist/chunk-UQSVO7TY.js +0 -9
- package/dist/chunk-URWWROLS.js +0 -9
- package/dist/chunk-V4B5QA3U.js +0 -4
- package/dist/chunk-VACHFCNC.js +0 -21
- package/dist/chunk-VAN7ECN6.js +0 -2
- package/dist/chunk-VIO7CCFW.js +0 -5
- package/dist/chunk-VOYMN2WQ.js +0 -5
- package/dist/chunk-VVOKM2VO.js +0 -2
- package/dist/chunk-W5TTF7GB.js +0 -6
- package/dist/chunk-WESMQEPO.js +0 -2
- package/dist/chunk-WICJY6KL.js +0 -6
- package/dist/chunk-WJR2FU7S.js +0 -16
- package/dist/chunk-WVHMPIDQ.js +0 -2
- package/dist/chunk-X4NUVVCJ.js +0 -26
- package/dist/chunk-XLSOQLVT.js +0 -2
- package/dist/chunk-YCCUBQY4.js +0 -2
- package/dist/chunk-YFQGOOF7.js +0 -2
- package/dist/chunk-YI3H2UIB.js +0 -2
- package/dist/chunk-YKTYVJBN.js +0 -3
- package/dist/chunk-YLQHY4A7.js +0 -2
- package/dist/chunk-ZIHG6EKH.js +0 -2
- package/dist/chunk-ZKSN2SJ7.js +0 -2
- package/dist/chunk-ZLWURCJ7.js +0 -2
- package/dist/committer-2QPBANRD.js +0 -2
- package/dist/config-7E4NS553.js +0 -2
- package/dist/controller-client-ZF5IXRUV.js +0 -2
- package/dist/cover-cmd-6KZX46S2.js +0 -3
- package/dist/descriptor-3JJUOHBM.js +0 -2
- package/dist/design-committer-D44GSUXY.js +0 -2
- package/dist/device-env-TZQDB5T3.js +0 -2
- package/dist/dispatch-KMWEDMKE.js +0 -2
- package/dist/doctor-XDF3MA4W.js +0 -2
- package/dist/docx-convert-SQRTF7XS.js +0 -2
- package/dist/evidence-EUIDOVOR.js +0 -2
- package/dist/evidence-presentation-XF23B7F2.js +0 -2
- package/dist/evolve-cmd-QVTGTCJ5.js +0 -2
- package/dist/explain-NEFBUX5G.js +0 -2
- package/dist/explain-cmd-36SVSHU7.js +0 -9
- package/dist/explain-cmd-JAOHSI4F.js +0 -3
- package/dist/extract-bind-PLMSZKLZ.js +0 -14
- package/dist/extract-cmd-RJBHPPF3.js +0 -5
- package/dist/feeder-66TUPB2R.js +0 -2
- package/dist/gaps-cmd-3WZPDDYS.js +0 -3
- package/dist/gate-OYRDJMF6.js +0 -2
- package/dist/headless-io-75HUMWZB.js +0 -2
- package/dist/identity-ADZ4PAJF.js +0 -2
- package/dist/ingest-OSNNM3DH.js +0 -2
- package/dist/ingest-cmd-JDIOPJBN.js +0 -2
- package/dist/install-Y3VKFBK3.js +0 -2
- package/dist/interactive-bind-XUMKEGAN.js +0 -26
- package/dist/interrupt-guard-UREUWNRL.js +0 -2
- package/dist/lifecycle-cmd-FBDRFIOE.js +0 -2
- package/dist/list-cmd-TFUACRAM.js +0 -3
- package/dist/list-commands-OHIQFJGQ.js +0 -2
- package/dist/locks-cmd-67OHQZNV.js +0 -2
- package/dist/logical-ids-GLVM2SVR.js +0 -2
- package/dist/login-flow-OHNKSVYZ.js +0 -2
- package/dist/maintenance-cmd-7OSUIDL4.js +0 -2
- package/dist/mobile-prompts-DEVUZRG3.js +0 -2
- package/dist/open-provider-746LLSEO.js +0 -2
- package/dist/pdf-convert-RLXSXFWN.js +0 -2
- package/dist/persist-recorded-session-GPP6UKN6.js +0 -3
- package/dist/phase-seed-MKHEWUN6.js +0 -2
- package/dist/pipeline-QPTPZVUJ.js +0 -2
- package/dist/prepare-target-N7QRNYOS.js +0 -2
- package/dist/readmodel-FVLRQWZ7.js +0 -2
- package/dist/reconcile-cmd-SMGLHMLF.js +0 -2
- package/dist/reconcile-deps-DVIJK5UZ.js +0 -4
- package/dist/reconcile-engine-KL2J5SNQ.js +0 -2
- package/dist/recording-banner-TCFFB6KE.js +0 -2
- package/dist/records-LMCVKPE5.js +0 -2
- package/dist/registry-BFFA4YJK.js +0 -2
- package/dist/require-project-folder-2224ZMJ5.js +0 -2
- package/dist/resolve-run-intent-HFXGEOYK.js +0 -2
- package/dist/resolver-GJR2Z7JY.js +0 -2
- package/dist/revert-NOUECRW4.js +0 -2
- package/dist/review-cmd-CQE6SBZA.js +0 -5
- package/dist/run-BXKWDJFJ.js +0 -2
- package/dist/run-HSP2MZPU.js +0 -2
- package/dist/run-channel-RGH4WIQX.js +0 -2
- package/dist/run-test-md-2ELPAASM.js +0 -17
- package/dist/scrollback-JLPJR25X.js +0 -2
- package/dist/session-items-2ATN7VXG.js +0 -2
- package/dist/session-target-UWROGOCY.js +0 -2
- package/dist/sessions-NH7WQWMX.js +0 -2
- package/dist/sessions-cmd-IV25N2L7.js +0 -25
- package/dist/spawner-HQM2757J.js +0 -2
- package/dist/store-guard-NAW26EEQ.js +0 -2
- package/dist/store-id-EOSGEKVK.js +0 -2
- package/dist/structured-answers-ZI2B6JJE.js +0 -2
- package/dist/sync-cmd-Q6ZYEVWI.js +0 -2
- package/dist/sync-setup-CA362C5S.js +0 -2
- package/dist/tcg-generate-CDB2N5LD.js +0 -2
- package/dist/testmd-actions-BDWDE2TG.js +0 -2
- package/dist/testmd-sync-EPTUVJYJ.js +0 -2
- package/dist/tms-client-KU6HCA23.js +0 -2
- package/dist/token-refresh-TKBOHXSD.js +0 -2
- package/dist/trust-gate-EX7R2P4Y.js +0 -2
- package/dist/turn-preflight-JGYT7LXP.js +0 -2
- package/dist/ui-JEJGTURD.js +0 -4
- package/dist/validate-basic-V7R4RH5M.js +0 -2
- package/dist/verdicts-7IUZFXB4.js +0 -2
- package/dist/version-check-PUUSB7AY.js +0 -2
- package/dist/walk-session-EGIMA4VG.js +0 -2
- package/dist/with-telemetry-LRWWBISP.js +0 -2
- /package/dist/{chunk-BKHXPBWN.js → chunk-2RUSXQ3O.js} +0 -0
- /package/dist/{chunk-6J5T5FEY.js → chunk-3AGP2BVN.js} +0 -0
- /package/dist/{chunk-CH273NAE.js → chunk-73Y6T2UK.js} +0 -0
- /package/dist/{chunk-ZMNJBUAO.js → chunk-73ZFOJOK.js} +0 -0
- /package/dist/{chunk-N2P4MI32.js → chunk-FWGUISUG.js} +0 -0
- /package/dist/{chunk-UJZZDPDY.js → chunk-HD6NR44L.js} +0 -0
- /package/dist/{chunk-LDPLJFCV.js → chunk-I6S6DZ2E.js} +0 -0
- /package/dist/{chunk-427OQS2N.js → chunk-LD5B3QFW.js} +0 -0
- /package/dist/{chunk-2UIHS2FH.js → chunk-PGESS7BW.js} +0 -0
- /package/dist/{chunk-BZAGVBCX.js → chunk-ZCIWQHCO.js} +0 -0
package/dist/chunk-C7NWWGLT.js
DELETED
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { createRequire } from 'module'; const require = createRequire(import.meta.url);
|
|
2
|
-
import{c as u,d as p}from"./chunk-SB2SKN34.js";import{spawn as h}from"child_process";var k=new Set(["progress","ask_user","graph_query","ingest_request","proposal","design","error","done","reasoning_delta","reasoning_done","tool_activity","decision_activity","text_delta","usage","receipt","chat_ops","session_paused","session_complete","state_checkpoint"]);function v(g,n={}){let a=n.spawnCmd!==void 0?n.spawnCmd:u();if(!a)throw new Error("assurance agent not found \u2014 your platform package may be missing; reinstall kane-cli (npm i -g @testmuai/kane-cli)");let f=g.source.images?.length??0;a.tier==="dev-python"&&f>0&&n.onWarn?.("warn: development agent in use \u2014 if image citations are missing, update the agent package");let t=h(a.cmd,a.args,{stdio:["pipe","pipe","pipe"],env:p(g.session_id,n.auth)});if(t.stdin.write(JSON.stringify(g)+`
|
|
3
|
-
`),n.onStderr){let e="";t.stderr.on("data",r=>{e+=r.toString("utf8");let i;for(;(i=e.indexOf(`
|
|
4
|
-
`))>=0;){let o=e.slice(0,i);e=e.slice(i+1),o.trim()&&n.onStderr(o)}})}let d=new Promise(e=>{t.on("exit",(r,i)=>e({code:r,signal:i}))});async function*m(){let e="",r=!1;for await(let i of t.stdout){e+=i.toString("utf8");let o;for(;(o=e.indexOf(`
|
|
5
|
-
`))>=0;){let l=e.slice(0,o).trim();if(e=e.slice(o+1),!l)continue;let c;try{c=JSON.parse(l)}catch{n.onWarn?.(`agent: skipping malformed line: ${l.slice(0,120)}`);continue}let s=c;if(!s||typeof s!="object"||!k.has(s.type)){n.onWarn?.(`agent: skipping unknown event type "${s&&typeof s=="object"?String(s.type??"?"):"?"}"`);continue}if(yield s,s.type==="done"){r=!0;break}}if(r)break}await d.catch(()=>{})}return{events:m(),send:e=>{t.stdin&&!t.stdin.destroyed&&t.stdin.write(JSON.stringify(e)+`
|
|
6
|
-
`)},kill:()=>{t.kill("SIGTERM")},exited:d}}export{v as a};
|
package/dist/chunk-CAJZQQ3G.js
DELETED
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import { createRequire } from 'module'; const require = createRequire(import.meta.url);
|
|
2
|
-
import{d as X}from"./chunk-BB2W35TW.js";import{a as $}from"./chunk-YKTYVJBN.js";import{k as z,l as Y,m as H,z as T}from"./chunk-IICT4VOU.js";import{K as N,x as q}from"./chunk-RDHWNSDP.js";import{a as W,e as S,g as L}from"./chunk-FQNQVC5O.js";import{c as C}from"./chunk-UD7KKHPW.js";import{a as K,b as J}from"./chunk-CXF6AZWY.js";var ce=3,de=1e4,Q=()=>new Promise(r=>setTimeout(r,25+Math.floor(Math.random()*50))),Z=r=>r==="design"||r==="maintain"?"session":r==="revert"||r==="shape-op"?"exclusive":"commit";function le(r,e,o){for(let s of r){for(let t of s.supersessions)if(t.kind==="node"&&(o.has(t.old)||t.new!==null&&o.has(t.new)))return!0;for(let t of s.nodes)if(t.label==="usecase"&&e.newBuCandidates.length>0||o.has(t.cid))return!0;if(s.design_generation&&e.generationTicket&&s.design_generation.uc_root===e.generationTicket.uc_root)return!0;for(let t of e.sourcePins)if(Object.prototype.hasOwnProperty.call(s.source_head_moves,t.source_id))return!0}return!1}async function De(r,e,o){let{contextDir:s,locks:t,probe:a}=r,m=r.sid??r.rootSid,f=e.newBuCandidates.map(b=>({tempRef:b.tempRef,probeText:b.probeText})),k=0,g=!0,p={hits:[],degraded:!1,probeBasis:null};for(;;){g&&(f.length>0&&(p=await a.batchSimilar(T(s),f)),g=!1);let b=T(s),_={seq:b.lastSeq,hash:b.latestHash},P=new Map,w=[],v=[],R=new Set;for(let d of e.ucTargets){let c=H(b,d.ref);if(c===null)return{ok:!1,kind:"validation",errors:[{code:"UNKNOWN_REF",detail:`${d.ref}: names no living node (unknown or tombstoned chain)`}]};d.expectedTip!==void 0&&d.expectedTip!==c.cid&&P.set(d.expectedTip,c.cid),R.add(c.cid),v.push(L(b,d.ref).key)}(e.verb==="revert"||e.verb==="shape-op")&&(v.length=0,v.push({kind:"context",mode:"exclusive"}));let y;try{y=t.acquire(S(v),{hold:Z(e.verb),verb:e.verb})}catch(d){if(d instanceof W&&(d.code==="UC_HELD"||d.code==="CONTEXT_HELD"))return{ok:!1,kind:"contended",err:d};throw d}let V=!1,M=!1;try{let d=await t.withKeySerialized(v,async()=>{let c=T(s),O=_.hash===c.latestHash?[]:N(s,_.seq,_.hash).records;for(let n of e.ucTargets){let i=H(c,n.ref);if(i===null){w.push({kind:"supersession",ref:n.ref,detail:`${n.ref} was retired while this commit staged \u2014 re-ground or abandon`});continue}for(let l of R)c.superseded.has(l)&&c.tipOf(l)===i.cid&&P.set(l,i.cid)}for(let n of e.sourcePins){let i=c.heads.get(n.source_id);i!=null&&i!==n.source_cid&&w.push({kind:"pin",ref:n.source_id,detail:`source '${n.source_id}' moved (pinned ${n.source_cid.slice(0,19)}, head ${i.slice(0,19)}) \u2014 re-ground or abandon`})}if(w.length>0)return{ok:!1,kind:"drifted",asks:w};if(e.generationTicket){let n=X(c,e.generationTicket);if(n!==null)return{ok:!1,kind:"validation",errors:[n]}}if(f.length>0&&O.length>0){let n=new Set(p.hits.map(u=>u.candidateCid)),i=a.recheckLocal(c,f,p.probeBasis,O);if(i.hits.some(u=>!n.has(u.candidateCid))||i.uncachedNewNodes.length>0)return M=!0,"restart"}if(e.verb!=="revert"&&e.verb!=="shape-op"){let n=S(e.ucTargets.map(u=>L(c,u.ref).key)),i=S(v);if(!(n.length===i.length&&n.every((u,h)=>JSON.stringify(u)===JSON.stringify(i[h]))))return"restart"}if(e.eventIds&&e.eventIds.length>0&&e.eventIds.every(n=>c.appliedEvents.has(n)))return{ok:!0,skipped:"already-applied"};let ae=Date.now()+de,j=c.latestHash,E=c;for(;;){let n={graph:E,expectPrev:j,redirects:P,probeHits:p.hits,degradedProbe:p.degraded,sid:m,eventIds:(l,u)=>{if(e.eventIds&&e.eventIds.length>0)return e.eventIds.slice(0,u);let h=Y(E,r.rootSid,l,u),U=r.reservedEventIds??[];if(U.length===0)return h;let D=`${r.rootSid}:${l}:`,A=0;for(let F of U){if(!F.startsWith(D))continue;let x=F.slice(D.length);/^\d+$/.test(x)&&(A=Math.max(A,Number.parseInt(x,10)))}if(A===0)return h;let G=Number.parseInt(h[0].slice(D.length),10);return!Number.isInteger(G)||G>A?h:Array.from({length:u},(F,x)=>z(r.rootSid,l,A+1+x))},assertLocks:()=>y.assertHeld()};if(r.revalidate){let l=r.revalidate(n);if(l.length>0)return{ok:!1,kind:"validation",errors:l}}y.assertHeld();let i;try{i=o(n)}catch(l){if(l instanceof q){let u=T(s),h=N(s,E.lastSeq,E.latestHash).records;if(!le(h,e,R)&&Date.now()<ae){await Q(),E=u,j=u.latestHash;continue}return"restart"}throw l}return"errors"in i?{ok:!1,kind:"validation",errors:i.errors}:(Z(e.verb)==="session"&&y.touch(),{ok:!0,result:i.result,record:i.record})}});if(d==="restart")V=!0;else return d}finally{y.release()}if(V){if(k+=1,k>=ce)return{ok:!1,kind:"unsettled",attempts:k};M&&(g=!0),await Q();continue}}}import{readFileSync as ue,writeFileSync as fe,renameSync as me,mkdirSync as pe}from"fs";import{dirname as he,join as ge}from"path";var B=1,be=720*60*1e3;function I(r){return ge(J,"embeddings",`alias-${r}.json`)}function ee(r,e=Date.now()){return r!==null&&e-r.fetchedAt<be}function re(r){try{let e=JSON.parse(ue(r,"utf-8"));return e.wrapperVersion!==B||typeof e.purposes!="object"||e.purposes===null?null:{wrapperVersion:B,writtenByVersion:String(e.writtenByVersion??""),purposes:e.purposes}}catch{return null}}function te(r,e,o=I(r)){let t=re(o)?.purposes?.[e];return!t||typeof t.alias!="string"||typeof t.dims!="number"||typeof t.fetchedAt!="number"?null:{alias:t.alias,dims:t.dims,fetchedAt:t.fetchedAt}}function se(r,e,o,s=I(r)){try{pe(he(s),{recursive:!0});let a=re(s)?.purposes??{};a[e]={alias:o.alias,dims:o.dims,fetchedAt:Date.now()};let m={wrapperVersion:B,writtenByVersion:K,purposes:a},f=`${s}.tmp`;fe(f,JSON.stringify(m,null,2)+`
|
|
3
|
-
`),me(f,s)}catch(t){C(`[embed] Failed to save alias cache: ${t instanceof Error?t.message:String(t)}`,"EMBED_CACHE_WRITE_FAILED")}}function ve(r){return r.TESTMUAI_ENV==="stage"?"stage":"prod"}function oe(r){let e=r.env??process.env,o=r.auth?.TESTMUAI_BASIC_AUTH||e.TESTMUAI_BASIC_AUTH;if(o)return{authorization:`Basic ${o}`};let s=r.auth?.TESTMUAI_API_KEY||e.TESTMUAI_API_KEY;return s?{authorization:`Bearer ${s}`}:{}}async function Oe(r,e={}){let o=e.env??process.env,s=ve(o),t=e.aliasCacheFile??I(s),a=e.now??Date.now,m=te(s,r,t);if(ee(m,a()))return{alias:m.alias,dims:m.dims};let k=`${$(o)}/assurance/embed/alias?purpose=${encodeURIComponent(r)}`,g=await(e.fetchImpl??fetch)(k,{method:"GET",headers:oe(e)});if(!g.ok)throw new Error(`embed alias resolve failed: ${g.status}`);let p=await g.json();return se(s,r,{alias:p.alias,dims:p.dims},t),{alias:p.alias,dims:p.dims}}async function je(r,e,o={}){let s=o.env??process.env,t=$(s),a=await(o.fetchImpl??fetch)(`${t}/assurance/embed`,{method:"POST",headers:{...oe(o),"content-type":"application/json"},body:JSON.stringify({purpose:r,input:e})});if(!a.ok)throw new Error(`embed failed: ${a.status}`);return await a.json()}import{readFileSync as ke,writeFileSync as ye,renameSync as Ee,mkdirSync as Ae}from"fs";import{dirname as Te,join as ne}from"path";function we(r){return ne(r,"embeddings")}function xe(r){let e=r.indexOf(":");return e>=0?r.slice(e+1):r}function ie(r,e,o){let s=xe(o);return ne(we(r),e,s.slice(0,2),`${s.slice(2)}.f32`)}function We(r,e,o){try{let s=ke(ie(r,e,o)),t=new Float32Array(Math.floor(s.length/4));for(let a=0;a<t.length;a++)t[a]=s.readFloatLE(a*4);return t}catch{return null}}function qe(r,e,o,s){try{let t=ie(r,e,o);Ae(Te(t),{recursive:!0});let a=Buffer.alloc(s.length*4);for(let f=0;f<s.length;f++)a.writeFloatLE(s[f],f*4);let m=`${t}.tmp`;ye(m,a),Ee(m,t)}catch(t){C(`[embed] Failed to cache vector: ${t instanceof Error?t.message:String(t)}`,"EMBED_CACHE_WRITE_FAILED")}}export{De as a,Oe as b,je as c,We as d,qe as e};
|
package/dist/chunk-CSVPZ33X.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import { createRequire } from 'module'; const require = createRequire(import.meta.url);
|
|
2
|
-
import{y as n}from"./chunk-CXF6AZWY.js";import{a as s}from"./chunk-HCBYKLMW.js";import{a,b as i}from"./chunk-C44QQJR4.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)(a,{marginTop:1,children:(0,o.jsx)(i,{color:n.dim,children:e.join(" \xB7 ")})})}export{g as a};
|
package/dist/chunk-CXF6AZWY.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import { createRequire } from 'module'; const require = createRequire(import.meta.url);
|
|
2
|
-
import{homedir as s}from"os";import{join as t}from"path";var g="0.8.23";var a=t(s(),".testmuai","kaneai"),b=t(a,"profiles"),h=t(a,"tui-config.json"),_=t(a,"media"),A="https://registry.npmjs.org/@testmuai/kane-cli",x="https://api.github.com/repos/LambdaTest/kane-cli/releases",i="@testmuai/kane-cli-skill",L=`https://registry.npmjs.org/${i}`,r="kane-cli",u=[{dir:t(s(),".claude","skills",r),agent:"Claude Code"},{dir:t(s(),".agents","skills",r),agent:"Codex CLI"},{dir:t(s(),".gemini","skills",r),agent:"Gemini CLI"}],U="https://dd-proxy.lambdatest.com/intake/kane-cli",R="https://kaneai-playground.lambdatest.io",I=9222,E=9230,C=t(a,"chrome-profiles"),o=t(a,"hints"),T=t(o,"state.json");function f(e){return t(o,`catalog-${e}.json`)}var c=t(a,"mobile");function S(e,n="android"){return t(c,n==="ios"?`device-catalog-ios-${e}.json`:`device-catalog-${e}.json`)}var l="127.0.0.1",B=18392,v=18400,p="/callback";function N(e){return`http://${l}:${e}${p}`}var O="KANE CLI",P="*",k={prod:{authBaseUrl:"https://auth.lambdatest.com",consentUrl:"https://accounts.lambdatest.com",controllerBaseUrl:"https://kaneai-api.lambdatest.com/v16-controller/v1",tmsBaseUrl:"https://test-manager-api.lambdatest.com/api",testGeneratorBaseUrl:"https://test-manager-api.lambdatest.com",secretsBaseUrl:"https://api-hyperexecute.lambdatest.com",testManagerUiUrl:"https://test-manager.lambdatest.com",shareApiBaseUrl:"https://api.lambdatest.com",v16ServerHost:"https://kaneai-api.lambdatest.com/v16-server",evidenceViewerUrl:"https://evidence.lambdatest.com",mediaArtefactsHost:"prod-mobile-artefacts.lambdatest.com",mobileAppBaseUrl:"https://api.lambdatest.com"},stage:{authBaseUrl:"https://stage-auth.lambdatestinternal.com",consentUrl:"https://stage-accounts.lambdatestinternal.com",controllerBaseUrl:"https://auteur-stage-automind.lambdatestinternal.com/v16-controller/v1",tmsBaseUrl:"https://stage-test-manager-api.lambdatestinternal.com/api",testGeneratorBaseUrl:"https://stage-test-manager-api.lambdatestinternal.com",secretsBaseUrl:"https://api-stage-hyperexecute.lambdatestinternal.com",testManagerUiUrl:"https://stage-test-manager.lambdatestinternal.com",shareApiBaseUrl:"https://stage-api.lambdatestinternal.com",v16ServerHost:"https://auteur-stage-automind.lambdatestinternal.com/v16-server",evidenceViewerUrl:"https://stage-evidence.lambdatestinternal.com",mediaArtefactsHost:"stage-mobile-artefacts.lambdatestinternal.com",mobileAppBaseUrl:"https://stage-api.lambdatestinternal.com"}},D={orange:"#ff9500",generateAccent:"#0d9488",assuranceAccent:"#b388ff",purple:"#b388ff",secondary:"#888888",dim:"#666666",muted:"#444444",green:"#4ade80",red:"#ef4444",amber:"#fbbf24"};export{g as a,a as b,h as c,_ as d,A as e,x as f,i as g,u as h,U as i,R as j,I as k,E as l,C as m,T as n,f as o,S as p,l as q,B as r,v as s,p as t,N as u,O as v,P as w,k as x,D as y};
|
package/dist/chunk-D6E6KRVX.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import { createRequire } from 'module'; const require = createRequire(import.meta.url);
|
|
2
|
-
import{i as a}from"./chunk-XLSOQLVT.js";function l(e,r,i,c){let n=a(r.type)?.cardinality;if(n!=="one-live-per-src"&&n!=="one-live-per-src-and-dst")return null;let o=t=>i.freed?.has(t)??!1,d=e.edgesFrom(r.src).find(t=>t.type===r.type&&!i.retracted.has(t.ecid)&&!e.superseded.has(t.dst)&&!o(t.dst))??i.pending.find(t=>t.type===r.type&&t.src===r.src);if(d){let t="ecid"in d?` (${d.ecid})`:" in this record";return{code:"CARDINALITY_VIOLATION",detail:`${c}: ${r.type} from ${r.src} already has a live edge${t} \u2014 supersede or retract it first`}}if(n==="one-live-per-src-and-dst"){let t=e.edgesInto(r.dst).find(s=>s.type===r.type&&s.src!==r.src&&!i.retracted.has(s.ecid)&&!e.superseded.has(s.src)&&!o(s.src))??i.pending.find(s=>s.type===r.type&&s.dst===r.dst&&s.src!==r.src);if(t){let s="ecid"in t?` (${t.ecid})`:" in this record";return{code:"CARDINALITY_VIOLATION",detail:`${c}: ${r.type} onto ${r.dst} already has a live edge${s} \u2014 strict 1:1, supersede or retract it first`}}}return null}export{l as a};
|
package/dist/chunk-D7WG7SRA.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import { createRequire } from 'module'; const require = createRequire(import.meta.url);
|
|
2
|
-
import{b as N}from"./chunk-U6OTFMIT.js";import{b as E,c as $,d as O,f as A,g as V,h as I,i as T,j as B}from"./chunk-FY7TCYPK.js";import{d as x}from"./chunk-5LJRZI7S.js";import{H as y,p as P}from"./chunk-RDHWNSDP.js";import{d as C}from"./chunk-XLSOQLVT.js";var K={extract:e=>`kane-cli context extract --resume ${e}`,design:e=>`kane-cli design tests --resume ${e}`};function Q(e,n,s){if(e===void 0||e===n)return null;if(e==="extract"||e==="design"){let c=K[e](s);return{code:"WRONG_VERB",message:`error: session ${s} is a ${e} session \u2014 resume it with ${c}`,next:[{cmd:c,why:`this session belongs to a ${e} run`}]}}return{code:"WRONG_VERB",message:`error: session ${s} belongs to a ${e} run \u2014 this command cannot resume it`,next:[]}}import{existsSync as M}from"fs";import{join as U}from"path";function te(e){return{id:e.id,text:e.question,risk:["high","med","low"].includes(e.risk)?e.risk:"med",rationale:e.rationale,options:e.options.map(n=>({label:n.label,detail:n.description??""})),recommended_index:e.recommendedOptionIndex,allow_free_text:e.allowFreeText,kind:e.kind,consequence:e.consequence,evidence_count:e.evidence_count,multi_select:e.multiSelect}}function j(e){return{id:e.id,header:e.kind??"question",question:e.text,kind:e.kind??"clarify",multiSelect:e.multi_select??!1,options:e.options.map((n,s)=>({id:`o${s}`,label:n.label,description:n.detail||void 0})),recommendedOptionIndex:e.recommended_index,risk:e.risk,rationale:e.rationale,consequence:e.consequence??"",evidence_count:e.evidence_count,allowFreeText:e.allow_free_text}}function ie(e,n){e.save({agent_state:n.agent_state,pending:{questions:n.pending.questions.map(j),proposals:n.pending.proposals??[]},assumed:n.assumed.map(s=>({questionId:s.question_id,optionId:s.option_id,flagged:!0,eventId:`assumed:${n.sid}:${s.question_id}`}))}),e.release(),O(e.state.sid)}function oe(e){return{persist(n){let s=e.seqBase(),c={seq:n.seq+s,turn_id:n.turn_id,at:n.at,agent_state_schema:n.agent_state_schema,delta_items:n.delta_items,binding:n.binding,usage_total:n.usage_total,...n.base_fingerprint!==void 0?{base_fingerprint:n.base_fingerprint}:{}},p={applied_events:[...new Set([...e.handle.state.applied_events,...I(e.contextDir,e.handle.state.sid)])].sort(),held_receipts:e.peekHeldReceipts?.()??[],pending:{questions:n.at!=="turn"?(n.pending_questions??[]).map(j):[],proposals:e.stagedProposals?.()??[]},parent_asks:[],read_basis:e.readBasis(),corpus_cursor:e.corpusCursor(),store_watermark:y(e.contextDir),...(()=>{let i=e.ingestRegistry?e.ingestRegistry():e.handle.state.ingest_registry??[],l=e.ingestSchedule?e.ingestSchedule():e.handle.state.ingest_schedule??[];return{...i.length?{ingest_registry:i}:{},...l.length?{ingest_schedule:l}:{}}})()};return A(e.contextDir,e.handle,c,p,{...e.onSoftCap?{onSoftCap:e.onSoftCap}:{},...e.onStat?{onStat:e.onStat}:{},...e.now?{now:e.now}:{}})}}}var m=class extends Error{constructor(s,c,p=[]){super(`${s}: ${c}`);this.code=s;this.next=p}};async function re(e,n,s,c={}){let p=c.deps??{},i=x(e,n);try{let l=i.state.checkpoint??null,w=M(U(e,"sessions",n,E,$)),H=!l&&i.state.agent_state.items.length>0;if(!l&&!w||H)throw new m("SESSION_V1",`session ${n} predates durable checkpoints \u2014 this build cannot resume it; abandon it with kane-cli context sessions clean ${n} and start a fresh run (committed work is untouched)`,[{cmd:`kane-cli context sessions clean ${n}`,why:"abandon the pre-checkpoint session, then start a fresh run"}]);!l&&w&&p.onWarn?.(`session ${n}: checkpoint chain present with no pointer \u2014 recovering from the chain`);let r=V(e,n);r.orphans.length>0&&B(e,n,r.orphans),r.fallback&&p.onWarn?.(`session ${n}: chain truncated to checkpoint ${r.fallback.resumableAt} \u2014 ${r.fallback.turnsLost} turn(s) lost to a corrupt record`);let a=r.base;if(c.verb){let o=Q(a.verb,c.verb,n);if(o)throw new m("WRONG_VERB",o.message,o.next)}if(c.useCase!==void 0&&c.useCase!==a.use_case&&!await(p.confirmRetarget?.(a.use_case,c.useCase)??!1))throw new m("RESUME_RETARGET_DECLINED",a.use_case?`session ${n} was designing ${a.use_case}; resuming onto ${c.useCase} needs an explicit retarget`:`session ${n} has no recorded use-case; adopting ${c.useCase} needs an explicit retarget`,a.use_case?[{cmd:`kane-cli design tests --resume ${n}`,why:`continue on ${a.use_case} (the session's own subject)`}]:[]);let d=r.kane,h=[],G=d?.read_basis??Object.fromEntries(Object.entries(i.state.read_basis));for(let[o,t]of Object.entries(G)){let u=s.heads.get(o)??null;u!==t&&h.push({subject:o,pinned:t,live:u})}a.uc_tip!==void 0&&p.liveUcTip!==void 0&&p.liveUcTip!==a.uc_tip&&h.push({subject:a.use_case??"use-case",pinned:a.uc_tip,live:p.liveUcTip}),p.locks?.reacquire?.(n);let _={...a.run_config,checkpoints:!0};delete _.resume;let R;if(r.pointer===null||r.agent===null)R=_;else{if(!r.agent.base_fingerprint)throw new m("CHECKPOINT_PROTOCOL",`session ${n}: chain carries no base fingerprint \u2014 cannot attest the seed rebuild`);R={..._,resume:{schema:2,binding:r.agent.binding,base_fingerprint:r.agent.base_fingerprint,delta_items:r.agent.delta_items,last_seq:r.pointer.seq}}}let S=d?.pending.questions??[],v=o=>{let t=`resolveq:${n}:${o}`,u=`assumed:${n}:${o}`;return s.appliedEvents.has(t)||s.appliedEvents.has(u)||i.isApplied(t)||i.isApplied(u)},W=d&&S.length>0?S.filter(o=>!v(o.id)):i.state.pending.questions.filter(o=>!v(o.id)),b={redeliverReceipts:[],recommit:[]},f,k;if(d){let o={...d,applied_events:[...new Set([...d.applied_events,...i.state.applied_events])].sort()},t;try{t=T(e,n,o,s,{verb:a.verb==="design"?"design":"extract",...a.use_case?{ucRef:a.use_case}:{},...C(String(r.agent?.binding?.template_version??""))>=8?{typedBlockers:!0}:{},...i.state.force_scope?.length?{ignoreGaps:new Set(i.state.force_scope)}:{},composeReceipt:(g,q,D)=>N(g,q,D),onNote:p.onWarn})}catch(g){throw g instanceof P?new m("CHECKPOINT_PROTOCOL",`store reconciliation refused: ${g.message}`,[{cmd:`kane-cli context sessions clean ${n}`,why:"abandon the session if the store was rebuilt"}]):g}b={redeliverReceipts:t.redeliverReceipts,recommit:t.recommit},k=t.prunedPending;let u=d.pending.proposals??[];f=(u.length>0?u:i.state.pending.proposals).filter(g=>!(typeof g.event_id=="string"&&s.appliedEvents.has(g.event_id))),(t.newlyApplied.length>0||t.prunedPending.length>0)&&i.reconcileSave({appliedEvents:t.newlyApplied,heldReceipts:[...i.state.held_receipts??[],...t.redeliverReceipts],pending:{questions:i.state.pending.questions,proposals:f}})}else{let o=i.state.pending.proposals;k=o.filter(t=>typeof t.event_id=="string"&&s.appliedEvents.has(t.event_id)),f=o.filter(t=>!(typeof t.event_id=="string"&&s.appliedEvents.has(t.event_id)))}return{kind:"v2",handle:i,base:a,view:r,kane:d,spawnConfig:R,drift:h,reconcile:b,questions:W,represent:f,prunedPending:k}}catch(l){throw i.release(),l}}export{Q as a,te as b,ie as c,oe as d,m as e,re as f};
|
package/dist/chunk-DDHGEJJP.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import { createRequire } from 'module'; const require = createRequire(import.meta.url);
|
|
2
|
-
import{b as V,c as H,d as W,e as ie,f as se}from"./chunk-CLQP3DHT.js";import{a as le}from"./chunk-VAN7ECN6.js";import{e as ee}from"./chunk-IIDBLJ5A.js";import{a as te}from"./chunk-MWIE6LOZ.js";import{a as oe}from"./chunk-TONFENRW.js";import{a as re}from"./chunk-6YZ3VP3E.js";import{b as Y}from"./chunk-ZIHG6EKH.js";import{b as Z}from"./chunk-RD72POF2.js";import{a as I}from"./chunk-2KVECC36.js";import{a as T,b as j,d as ne}from"./chunk-VE3SUJMA.js";import{b as Q}from"./chunk-TZXXJWHA.js";import{r as b}from"./chunk-RSSOJ3L2.js";import{i as J}from"./chunk-Z7S3IWUX.js";import{a as D}from"./chunk-DUYRCVI5.js";import{a as B,e as K}from"./chunk-EYOCNMUM.js";import{a as z}from"./chunk-5ESGUPSR.js";import{a as q}from"./chunk-HCBYKLMW.js";import{a as c,b as u,i as L,j as G}from"./chunk-C44QQJR4.js";import{a as ve}from"./chunk-6YGTRKDT.js";import{e as F}from"./chunk-UR6MHSHU.js";var s=F(ve(),1);var o=F(q(),1);function Xe({resultRef:x,mode:g="singleshot",loginCompleteRef:d}){let{exit:p}=G(),A=(0,s.useRef)(new z),E=(0,s.useRef)(new te),v=(0,s.useRef)(new ee),n=A.current,l=E.current,O=v.current,ae=V(),[h,f]=(0,s.useState)(g==="login"?"login":"gate"),[M,ce]=(0,s.useState)(null),[xe,R]=(0,s.useState)(null),[Pe,$]=(0,s.useState)(null),[N,ue]=(0,s.useState)(null),[X,S]=(0,s.useState)([]),P=(0,s.useCallback)((e,t,i,r)=>O.log(e,t,i,r),[O]),we=(0,s.useCallback)((e,t)=>{e?T(n,l,e,t):l.save({project_id:null,project_name:null,folder_id:null,folder_name:null})},[n,l]),C=(0,s.useCallback)(()=>{if(g==="login")d&&(d.current=!0),p();else{let e=l.load().mobile,t=B(e?.tui_target,e?.default_target?.kind),i=(t.kind==="unset"||t.kind==="choose-mobile")&&Q();f(i?"target":"input")}},[g,p,d,l]),k=(0,s.useCallback)((e,t)=>{let i=T(n,l,e,t);if(g==="login"){f("ensure-project");return}ne(i)?C():i.projectId?f("ensure-folder"):f("ensure-project")},[n,l,C,g]);L((e,t)=>{t.ctrl&&e==="c"&&b(0,"Ctrl+C exit")});let U=(0,s.useRef)(!1);s.default.useEffect(()=>{U.current||(U.current=!0,g!=="login"&&se(n,P).then(e=>{ce(e),e.status==="authenticated"?k(e.result.profile,e.result.env):e.status==="needs_pick"?f("pick"):(R(e.profile??null),$(e.env??null),f("login"))}).catch(e=>{ue(`Auth check failed: ${e instanceof Error?e.message:String(e)}`)}))},[n,P]);let fe=(0,s.useCallback)(e=>{x.current={objective:e},p()},[x,p]),de=(0,s.useCallback)(async(e,t)=>{n.setActiveProfile(e),n.setDefaultEnv(t),(await ie(n,e,t,P)).status==="authenticated"?k(e,t):(R(e),$(t),f("login"))},[n,P,k]),w=(0,s.useCallback)(()=>{let e=n.getActiveProfile(),t=n.getDefaultEnv();if(!e)return null;let i=D(t),r=n.loadBasicAuth(e,t);return new oe(i.controllerBaseUrl,async()=>n.loadCredentials(e,t)?.access_token??null,r,P)},[n,P]),ge=(0,s.useCallback)(async()=>{let e=w();if(!e)return null;let t=e.cached??await e.resolve();if(!t)return null;let i=D(n.getDefaultEnv()),r=new I(i.tmsBaseUrl,t.username,t.access_key);try{let m=(await r.listProjects()).find(_=>_.name==="KaneAI Generated");if(m)return{id:m.project_id,name:m.name};let y=await r.createProject("KaneAI Generated");return{id:y.id,name:y.name}}catch{return null}},[w,n]),me=(0,s.useCallback)(async e=>{let t=w();if(!t)return null;let i=t.cached??await t.resolve();if(!i)return null;let r=D(n.getDefaultEnv()),a=new I(r.tmsBaseUrl,i.username,i.access_key);try{let y=(await a.listFolders(e)).find(pe=>pe.name==="Untitled");if(y)return{id:y.id,name:y.name};let _=await a.createFolder(e,"Untitled");return{id:_.id,name:_.name}}catch{return null}},[w,n]);if(h==="gate")return(0,o.jsx)(c,{paddingX:1,children:(0,o.jsx)(u,{color:"yellow",children:"Checking authentication..."})});if(N)return(0,o.jsxs)(c,{flexDirection:"column",paddingX:1,children:[(0,o.jsx)(u,{color:"red",children:N}),(0,o.jsx)(u,{color:"gray",children:"Press Ctrl+C to exit."})]});if(h==="pick"&&M?.status==="needs_pick")return(0,o.jsx)(he,{profiles:M.profiles,onSelect:de});if(h==="login")return(0,o.jsx)(W,{devMode:process.env.KANE_DEV_MODE==="1",profiles:n.listProfiles(),onBasicLogin:async(e,t,i,r)=>{let{validateBasicAuth:a}=await import("./validate-basic-V7R4RH5M.js");await a(t,i,r),n.saveBasicAuth(e,t,{username:i,access_key:r}),n.setActiveProfile(e),n.setDefaultEnv(t)},onOAuthLogin:async(e,t)=>{let{LoginFlow:i}=await import("./login-flow-OHNKSVYZ.js");n.setDefaultEnv(t),n.setActiveProfile(e),await new i(e,t,n).login()},onComplete:(e,t)=>{R(e),$(t),n.setActiveProfile(e),n.setDefaultEnv(t),k(e,t)},onCancel:()=>{b(0,"Login cancelled")}});if(h==="ensure-project"){let e=n.getActiveProfile()??"default",t=n.getDefaultEnv(),i=()=>{if(g==="login"){f("ensure-folder");return}T(n,l,e,t).folderId?C():f("ensure-folder")};return(0,o.jsxs)(c,{flexDirection:"column",children:[(0,o.jsx)(c,{paddingX:1,marginBottom:1,children:(0,o.jsx)(u,{color:"yellow",children:"Project & folder are required to save tests \xB7 Esc to use defaults \xB7 Ctrl+C to exit"})}),(0,o.jsx)(Y,{resolver:w(),currentProjectId:l.load().project_id,env:t,onSelect:(r,a)=>{j(n,l,e,t,{projectId:r,projectName:a}),S(m=>[...m,`\u2713 Project: ${a} (${r})`]),i()},onCancel:async()=>{let r=await ge();r&&(j(n,l,e,t,{projectId:r.id,projectName:r.name}),S(a=>[...a,`\u2713 Default project: ${r.name} (${r.id})`]),i())}})]})}if(h==="ensure-folder"){let e=n.getActiveProfile()??"default",t=n.getDefaultEnv(),i=n.loadProfileConfig(e,t);return(0,o.jsxs)(c,{flexDirection:"column",children:[(0,o.jsx)(c,{paddingX:1,marginBottom:1,children:(0,o.jsx)(u,{color:"yellow",children:"Project & folder are required to save tests \xB7 Esc to use defaults \xB7 Ctrl+C to exit"})}),(0,o.jsx)(Z,{resolver:w(),projectId:i?.project_id??"",currentFolderId:l.load().folder_id,env:t,onSelect:(r,a)=>{j(n,l,e,t,{folderId:r,folderName:a}),S(m=>[...m,`\u2713 Folder: ${a} (${r})`]),C()},onCancel:async()=>{if(!i?.project_id)return;let r=await me(i.project_id);r&&(j(n,l,e,t,{folderId:r.id,folderName:r.name}),S(a=>[...a,`\u2713 Default folder: ${r.name} (${r.id})`]),C())}})]})}if(h==="target"){let e=B(l.load().mobile?.tui_target,l.load().mobile?.default_target?.kind).kind==="choose-mobile";return(0,o.jsx)(c,{paddingX:1,children:(0,o.jsx)(le,{mode:e?"mobile-only":"all",onSelect:t=>{l.setMobile({tui_target:t}),f("input")},onCancel:()=>f("input")})})}if(h==="input"){let e=l.load().mobile,t=B(e?.tui_target,e?.default_target?.kind),i=(()=>{if(t.kind==="emulator"||t.kind==="simulator"){let r=J(e?.default_target)??"(no device)",a=re(e?.default_app)??"(no app)";return`Config: ${K(t.kind)} \xB7 ${r} \xB7 ${a}`}return"Config: Desktop \xB7 Chrome"})();return(0,o.jsxs)(c,{flexDirection:"column",children:[X.length>0&&(0,o.jsx)(c,{flexDirection:"column",paddingX:1,marginBottom:1,children:X.map((r,a)=>(0,o.jsx)(u,{color:"green",children:r},a))}),(0,o.jsx)(c,{paddingX:1,children:(0,o.jsx)(u,{color:"gray",children:i})}),(0,o.jsx)(H,{onSubmit:fe,onEscape:()=>b(0,"User pressed Escape"),history:ae,placeholder:"Type an objective..."})]})}return(0,o.jsx)(o.Fragment,{})}function he({profiles:x,onSelect:g}){let[d,p]=(0,s.useState)(0),[A,E]=(0,s.useState)(!1);return L((v,n)=>{if(!A){if(n.escape){b(0,"Profile picker cancelled");return}if(n.upArrow&&d>0&&p(l=>l-1),n.downArrow&&d<x.length-1&&p(l=>l+1),n.return){E(!0);let l=x[d];g(l.profile,l.env).catch(()=>E(!1))}}}),(0,o.jsxs)(c,{flexDirection:"column",paddingX:1,children:[(0,o.jsx)(u,{color:"#ff9500",bold:!0,children:"Select a profile:"}),(0,o.jsx)(c,{marginTop:1,flexDirection:"column",children:x.map((v,n)=>(0,o.jsxs)(u,{children:[n===d?"\u276F ":" ",(0,o.jsx)(u,{color:n===d?"#ff9500":"white",bold:n===d,children:v.profile}),(0,o.jsxs)(u,{color:"gray",children:[" [",v.env,"]"]})]},`${v.profile}-${v.env}`))}),A&&(0,o.jsx)(c,{marginTop:1,children:(0,o.jsx)(u,{color:"yellow",children:"Validating credentials..."})})]})}export{Xe as a};
|
package/dist/chunk-DUYRCVI5.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import { createRequire } from 'module'; const require = createRequire(import.meta.url);
|
|
2
|
-
import{x as s}from"./chunk-CXF6AZWY.js";function n(r="prod"){let e=s[r];return r!=="stage"?e:{authBaseUrl:process.env.KANE_STAGE_AUTH_URL??e.authBaseUrl,consentUrl:process.env.KANE_STAGE_CONSENT_URL??e.consentUrl,controllerBaseUrl:process.env.TESTMUAI_BASE_URL??e.controllerBaseUrl,tmsBaseUrl:process.env.KANE_STAGE_TMS_URL??e.tmsBaseUrl,testGeneratorBaseUrl:process.env.KANE_STAGE_TCG_URL??e.testGeneratorBaseUrl,secretsBaseUrl:process.env.KANE_STAGE_SECRETS_URL??e.secretsBaseUrl,testManagerUiUrl:process.env.KANE_STAGE_TEST_MANAGER_UI_URL??e.testManagerUiUrl,shareApiBaseUrl:process.env.KANE_STAGE_SHARE_API_URL??e.shareApiBaseUrl,v16ServerHost:process.env.KANE_STAGE_V16_SERVER_HOST??e.v16ServerHost,evidenceViewerUrl:process.env.KANE_STAGE_EVIDENCE_VIEWER_URL??e.evidenceViewerUrl,mediaArtefactsHost:process.env.KANE_STAGE_MEDIA_ARTEFACTS_HOST??e.mediaArtefactsHost,mobileAppBaseUrl:process.env.KANE_STAGE_MOBILE_APP_URL??e.mobileAppBaseUrl}}export{n as a};
|
package/dist/chunk-DWHF5HUD.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import { createRequire } from 'module'; const require = createRequire(import.meta.url);
|
|
2
|
-
import{d as b,e as g}from"./chunk-YI3H2UIB.js";import{basename as S}from"path";var z="objective",E=/(\\?)\{\{\s*([^{}]+?)\s*\}\}/g;function p(n){let t=[];if(!n)return t;for(let r of n.matchAll(E)){if(r[1])continue;let e=b(r[2]??"");e&&!t.includes(e)&&t.push(e)}return t}var j=/(\\?)\$\{\s*([^{}]+?)\s*\}/g;function k(n){let t=[];if(!n)return t;for(let r of n.matchAll(j)){if(r[1])continue;let e=(r[2]??"").split(/[.[]/)[0]?.trim()??"";e&&!t.includes(e)&&t.push(e)}return t}function C(n,t,r){return R(n.map(({text:e,usedBy:o})=>k(e).filter(c=>!t.has(c)).map(c=>({name:c,reason:"not_a_dataset_column",dataset:r,used_by:[o]}))))}var I=/\b(?:store|save|extract|remember|capture)\b/i,O=/\bas\s+(?:['"`]([A-Za-z_][A-Za-z0-9_]*)['"`]|([A-Za-z_][A-Za-z0-9_]*)(?=\s*(?:,|$)))/gi,T=new Set(["a","an","the"]);function h(n){let t=[];if(!n)return t;for(let r of n.split(/[.;\n]/))if(I.test(r))for(let e of r.matchAll(O)){let o=e[1]??e[2];!o||T.has(o.toLowerCase())||t.includes(o)||t.push(o)}return t}function y(n,t,r){let e=t.get(n);return e?e.has_value?null:{name:n,reason:"value_missing",file:e.source,used_by:[r]}:{name:n,reason:"not_declared",used_by:[r]}}function M(n,t,r,e=[]){let o=new Set([...e,...h(n)]),c=[];for(let l of p(n)){if(o.has(l))continue;let a=y(l,t,r);a&&c.push(a)}return c}function Z(n,t,r={}){let e=n.rootGlobal.variables??{},o=new Set(r.produced??[]),c=r.authorFrom??0,l=[];for(let a of n.steps){let w=a.flatIndex-1>=c,u=h(a.objective);if(!w){for(let s of u)o.add(s);continue}let x={file:S(a.sourceFile),step:a.flatIndex},A=a.config.variables??{},f=new Map,m=s=>b(g(s))??g(s);for(let[s,i]of Object.entries(e))f.set(m(s),i.value);for(let[s,i]of Object.entries(A))f.set(m(s),i.value);let d=new Set,v=(s,i)=>{if(o.has(s)||u.includes(s))return;let V=f.get(s);if(V===void 0){d.add(s);return}if(i.has(s)){d.add(s);return}i.add(s);for(let U of p(V))v(U,i);i.delete(s)};for(let s of p(a.objective))v(s,new Set);let _=[];for(let s of d){let i=y(s,t,x);i&&_.push(i)}l.push(_);for(let s of u)o.add(s)}return R(l)}function B(n){let t=new Set,r=n&&typeof n=="object"?n:null;for(let e of r?.prior_runs??[])for(let o of Object.keys(e.variables??{}))t.add(o);return[...t]}function R(n){let t=new Map;for(let r of n)for(let e of r){let o=t.get(e.name);o?o.used_by.push(...e.used_by):t.set(e.name,{...e,used_by:[...e.used_by]})}return[...t.values()].sort((r,e)=>r.name<e.name?-1:1)}export{z as a,p as b,C as c,M as d,Z as e,B as f,R as g};
|
package/dist/chunk-EM3PU2YW.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import { createRequire } from 'module'; const require = createRequire(import.meta.url);
|
|
2
|
-
import{d as G,f as q,h as H}from"./chunk-HBSYBL6J.js";import{a as j,b as z,c as K}from"./chunk-KJIDMW6N.js";import{d as B,f as O}from"./chunk-LHUW5QDT.js";import{a as N}from"./chunk-MMBBQ4OZ.js";import{b as F,c as $,j as R}from"./chunk-GFNCGN5V.js";import{a as L}from"./chunk-TZXXJWHA.js";import{n as T}from"./chunk-RSSOJ3L2.js";import{a as Y,b as C,c as V}from"./chunk-HJX5PQRD.js";import{h as J}from"./chunk-TAOHYWEO.js";import{e as E}from"./chunk-Z7S3IWUX.js";import{b as M}from"./chunk-CXF6AZWY.js";function X(e){return e.kind==="simulator"?e.id:e.virtualName??e.id}function Z(e,r,t={}){let o={platform:e.platform,udid:e.id,target:e.kind};return r&&(o.app_package=r),t.noReset!==void 0&&(o.no_reset=t.noReset),t.appiumUrl&&(o.appium_url=t.appiumUrl),e.platform==="android"&&t.autoGrantPermissions!==void 0&&(o.auto_grant_permissions=t.autoGrantPermissions),e.platform==="ios"&&t.autoAcceptAlerts!==void 0&&(o.auto_accept_alerts=t.autoAcceptAlerts),o}function Q(e=process.env){let r=e.KANE_APPIUM_URL?.trim();return r||null}import{createHash as De}from"crypto";import{readdir as xe,stat as ke}from"fs/promises";import{basename as g,extname as Ie,join as Ue,relative as Se}from"path";import{createHash as ge}from"crypto";import{createReadStream as fe}from"fs";import{mkdir as me,readFile as he,rename as ve,writeFile as we}from"fs/promises";import{dirname as be,join as ye}from"path";var Pe=60,Te=5;function W(){return{entries:[]}}function ee(){return ye(M,"mobile","app-cache.json")}async function A(e){let r=ge("sha256");for await(let t of fe(e))r.update(t);return r.digest("hex")}function Ce(){return{readFile:e=>he(e,"utf8"),writeFile:async(e,r)=>{await me(be(e),{recursive:!0});let t=`${e}.tmp`;await we(t,r),await ve(t,e)},hashFile:A,now:()=>new Date}}function D(e){if(!e)return;let r=/\/(\d{4})\/(\d{2})\/(\d{2})\//.exec(e);if(!r)return;let[,t,o,a]=r,s=new Date(`${t}-${o}-${a}T00:00:00Z`);return Number.isNaN(s.getTime())?void 0:s.toISOString()}function Ae(e,r){if(!e.storedAt)return!0;let t=new Date(e.storedAt).getTime();return Number.isNaN(t)?!0:(r.getTime()-t)/864e5>=Pe-Te}var u=class{deps;constructor(r={}){this.deps={...Ce(),...r}}async read(){try{let r=JSON.parse(await this.deps.readFile(ee()));if(!r||typeof r!="object")return W();let t=r;return{entries:Array.isArray(t.entries)?t.entries:[]}}catch{return W()}}async write(r){await this.deps.writeFile(ee(),JSON.stringify(r,null,2))}async hashOf(r){return this.deps.hashFile(r)}async lookup(r){return(await this.read()).entries.find(o=>o.sha256===r.sha256&&o.env===r.env&&o.orgId===r.orgId&&o.type===r.type)}async remember(r){let t=await this.read();t.entries=[...t.entries.filter(o=>!(o.sha256===r.sha256&&o.env===r.env&&o.orgId===r.orgId&&o.type===r.type)),r],await this.write(t)}async forget(r){let t=await this.read(),o=t.entries.length;t.entries=t.entries.filter(a=>!(a.sha256===r.sha256&&a.env===r.env&&a.orgId===r.orgId&&a.type===r.type)),t.entries.length!==o&&await this.write(t)}isNearExpiry(r){return Ae(r,this.deps.now())}};var re={emulator:[".apk"],simulator:[".zip"]};function te(e){return e.skipped===!0}function _e(e,r){let t=Ie(e).toLowerCase();return t===".ipa"?`${g(e)} is a device build \u2014 .ipa is not accepted for ${r} runs.`:re[r].includes(t)?null:`${g(e)} cannot be uploaded for a ${r} run \u2014 expected one of ${re[r].join(", ")}.`}async function x(e,r){if(!(await ke(e)).isDirectory())return r.hashOf(e);let o=[],a=async p=>{for(let i of await xe(p,{withFileTypes:!0})){let n=Ue(p,i.name);i.isDirectory()?await a(n):i.isFile()&&o.push(n)}};await a(e),o.sort();let s=De("sha256");for(let p of o)s.update(Se(e,p)),s.update("\0"),s.update(await A(p)),s.update("\0");return s.digest("hex")}async function oe(e){let r=_e(e.path,e.type);if(r)return{skipped:!0,reason:r};let t=e.cache??new u,o=e.client??new J(e.baseUrl,{...e.auth,orgId:e.orgId}),a;try{a=await x(e.path,t)}catch(i){return{skipped:!0,reason:`could not read ${g(e.path)}: ${i.message}`}}let s={sha256:a,env:e.env,orgId:e.orgId,type:e.type},p=await t.lookup(s);if(p){if(await o.liveness(p.appId)!=="gone")return{appId:p.appId,...p.appUrl?{appUrl:p.appUrl}:{},fromCache:!0};e.onProgress?.(`${p.appId} is no longer in the cloud \u2014 uploading again`),await t.forget(s)}try{e.onProgress?.(`uploading ${g(e.path)}\u2026`);let i=await o.upload(e.path,e.type);return await t.remember({sha256:a,env:e.env,orgId:e.orgId,type:e.type,appId:i.appId,...i.appUrl?{appUrl:i.appUrl}:{},...D(i.url)?{storedAt:D(i.url)}:{},sourcePath:e.path}),e.onProgress?.(i.cached?`${g(e.path)} already in the cloud (${i.appId})`:`${g(e.path)} uploaded (${i.appId})`),{appId:i.appId,...i.appUrl?{appUrl:i.appUrl}:{},fromCache:!1}}catch(i){return{skipped:!0,reason:i.message}}}function v(e){return`${e.platform}|${X(e)}`}var m=new Map,ae=new Set;function ie(e){return ae.has(v(e))}function nr(e,r,t){r.state==="stopped"&&(m.has(v(r))||se(e,r,t))}async function ne(e,r,t){let o=m.get(v(r));return o?(t?.(`waiting for ${r.displayName} to finish booting\u2026`),o):se(e,r,t)}function se(e,r,t){let o=v(r),a=e.prepare(r,t);m.set(o,a),r.state==="stopped"&&a.then(()=>ae.add(o),()=>{});let s=()=>{m.get(o)===a&&m.delete(o)};return a.then(s,s),a.catch(()=>{}),a}import{basename as Me}from"path";import{spawnSync as Ee}from"child_process";async function Fe(e,r,t){if(!e.teardownPlan||!t.appPackage&&!t.shutdown)return;let o;try{o=await e.teardownPlan(r,t)}catch{return}o.length!==0&&T(`device:${r.id}`,()=>{G({udid:r.id,displayName:r.displayName});for(let a of o)try{Ee(a.file,a.args,{timeout:3e4,stdio:"ignore"})}catch{}})}var pe={emulator:[".apk"],simulator:[".zip"]};async function $e(e,r,t,o){if(e.kind==="package")return e;if(e.kind==="app_id"){let a=r.cloudUpload;if(!a)throw new Error(`${e.value} is an app id, which needs an account to download it. Log in, or pass a path to a local build instead.`);let s=await V({appId:e.value,baseUrl:a.baseUrl,auth:a.auth,...pe[t]?{accepts:pe[t]}:{},...o?{onProgress:o}:{}}),p=I(s.path);if(!p||p.kind==="app_id")throw new Error(`${s.name} is not a build this CLI can install (from ${e.value}).`);return p}try{let a=new u,s=await x(e.value,a),p=new Y;await p.find(s)||o?.(`copying ${Me(e.value)} into the local app store\u2026`);let n=await p.put({key:s,sourcePath:e.value,source:"local"});return{...e,value:n.path}}catch{return e}}function Re(e){T(`appium:${e}`,()=>{H({deviceClass:e,owner:process.pid})})}var k=class extends Error{constructor(r){super(r),this.name="MobileHostUnsupportedError"}},w=class extends Error{constructor(t,o){super(t);this.doctorText=o;this.name="MobilePreflightError"}};async function Ne(e,r,t){let o=t.cloudUpload,a=await oe({path:e,type:r,env:o.env,orgId:o.orgId,userId:o.userId,auth:o.auth,baseUrl:o.baseUrl,...t.onProgress?{onProgress:t.onProgress}:{}});if(te(a)){t.onProgress?.(`app not uploaded \u2014 ${a.reason}`);return}return a.appId}var Be="app must be a build (.apk for an emulator, .zip of the .app bundle for a simulator) or an app id from your cloud uploads \u2014 a package id names something already installed on one device, so it cannot be uploaded, exported as code, or run anywhere else.",de=/\.(apk|zip)$/i;function I(e){let r=e.trim();if(C(r))return{kind:"app_id",value:r};let t=de.exec(r)?.[1]?.toLowerCase();return t?{kind:t,value:r}:null}function Oe(e){return!!e&&(de.test(e)||C(e.trim()))}function Le(e){return e.filter(r=>r.required&&r.status==="fail")}function je(e,r){return!!r&&E(e,r)}async function Dr(e){let r=L();if(!r.supported)throw new k(r.reason);let t=Q()??e.appiumUrl??e.defaults?.appium_url,o=!!(e.agent||!e.interactive),a=R(),s=!!N();o&&e.platform?.toLowerCase()!=="ios"&&!s&&((await a.status("emulator")).installed||await a.ensure("emulator",{automatic:!0,onProgress:e.onProgress}));let p=await j(e.platform,{appiumUrl:t});if(K(p)){let d=p.sections.flatMap(P=>Le(P.checks)).map(P=>P.label).join(", ");throw new w(`Mobile toolchain not ready (${d}). Run \`kane-cli doctor --target ${e.platform?.toLowerCase()==="ios"?"simulator":e.platform?.toLowerCase()==="android"?"emulator":"<emulator|simulator>"}\` for details.`,z(p))}let i=await O({device:e.device,platform:e.platform,defaultTarget:e.defaults?.default_target,interactive:e.interactive}),n;if(i.ok)n=i.target;else if(i.reason==="needs-picker"&&e.pickTarget){let d=await e.pickTarget(i.candidates);if(!d)throw new Error("Target selection cancelled");n=d}else throw new Error(i.message);let f=B(n.platform);if(!f)throw new Error(`No provider for platform "${n.platform}"`);let l=F(n);if(!l)throw new Error(`No managed dependencies serve ${n.platform} ${n.kind} targets yet.`);if(!(s&&n.platform.toLowerCase()==="android"))try{await a.ensure(l,{automatic:o,onProgress:e.onProgress})}catch(d){throw d instanceof $?new w(d.message,d.message):d}let le=n.state!=="ready"||ie(n);n=await ne(f,n,e.onProgress);let ce=await q(l,{...t?{appiumUrl:t}:{},device:{udid:n.id,displayName:n.displayName},onProgress:e.onProgress});Re(l);let U=je(n,e.defaults?.default_target)?e.defaults?.default_app:void 0,h=e.app??(Oe(U)?U:void 0);if(e.app&&!I(e.app))throw new Error(`${e.app}: ${Be}`);let c=h?I(h):null,S=c?await $e(c,e,l,e.onProgress):null,b=S?await f.ensureApp(n,S,e.onProgress):void 0,y=c?.kind==="app_id"?c.value:e.cloudUpload&&c&&h?await Ne(c.value,l,e):void 0;await Fe(f,n,{shutdown:le,...b?{appPackage:b}:{}});let ue=Z(n,b,{noReset:e.noReset??e.defaults?.no_reset,appiumUrl:ce.url,autoGrantPermissions:e.defaults?.auto_grant_permissions,autoAcceptAlerts:e.defaults?.auto_accept_alerts}),_=y??h;return{device:ue,target:n,provider:f,...y?{appId:y}:{},..._?{appRef:_}:{}}}export{X as a,Z as b,te as c,_e as d,oe as e,nr as f,ne as g,k as h,w as i,Be as j,I as k,Oe as l,Dr as m};
|
package/dist/chunk-EVFFDODK.js
DELETED
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { createRequire } from 'module'; const require = createRequire(import.meta.url);
|
|
2
|
-
import{a as xe}from"./chunk-KJQNAOOE.js";import{a as Ce,b as Ie,d as Ae,e as Ne}from"./chunk-BB2W35TW.js";import{a as Te}from"./chunk-KDNNMU7Q.js";import{e as Oe,l as ke,y as Re}from"./chunk-IICT4VOU.js";import{a as ye}from"./chunk-D6E6KRVX.js";import{e as ve}from"./chunk-3UI5VTQS.js";import{H as Ee,M as $e,c as be,d as ne,m as Se}from"./chunk-RDHWNSDP.js";import{d as le,e as K,f as g,g as l,h as me,i as he,j as _e}from"./chunk-XLSOQLVT.js";var Be=/\s@verifies\s+(ac-[\w.:\/-]+(?:\s*,\s*ac-[\w.:\/-]+)*)\s*$/,D=i=>({record:null,errors:i,minted:{},logicalIds:{},superseded:[],warnings:[],finalizedTests:{}});function q(i){return i.toLowerCase().trim().replace(/\s+/g," ")}function Ge(i,k,s={}){let p=i.resolve(k);if(!p||i.nodeLabel.get(p.cid)!==g.USECASE||p.superseded)return[];let a=new Set,v=new Set;for(let{cid:m}of i.byLabel(g.SCENARIO))if(!i.superseded.has(m)&&i.edgesFrom(m).some(b=>b.type===l.BELONGS_TO&&i.tipOf(b.dst)===p.cid)){a.add(m),v.add(m),v.add(i.tipOf(m));for(let b of i.edgesInto(m))b.type!==l.AUTOMATES||i.superseded.has(b.src)||a.add(b.src)}if(s.blockerGaps){let m=new Set([p.cid,i.tipOf(p.cid)]);for(let{cid:b,content:S}of i.byLabel(g.GAP)){if(i.superseded.has(b)||i.trust.get(b)==="archived"||!K.has(String(S.kind??"")))continue;let $=typeof S.uc=="string"?S.uc:"";if(!m.has($)&&!m.has(i.tipOf($)))continue;let h=S.ref,L=typeof h=="string"&&h?i.resolve(h):null;L&&(v.has(L.cid)||v.has(i.tipOf(L.cid)))&&a.add(b)}}return[...a]}function et(i){let{contextDir:k,graph:s,sections:p,by:a}=i,v=i.engine??"design@1",m=Ee(k);if(s.latestHash!==m)return D([{code:"STALE_BASIS",detail:`graph opened at ${String(s.latestHash)} but chain head is ${String(m)} \u2014 re-open and retry`}]);let b=s.resolve(i.ucRef);if(!b||s.nodeLabel.get(b.cid)!==g.USECASE||b.superseded)return D([{code:"UNKNOWN_UC",detail:`${i.ucRef} is not a live use-case`}]);let S=b.cid,$={ucRef:S,automates:{},verifies:{},reuses:{},scope:{},depends_on:{},exercises:[],scoped_to_repoints:[],judgements:[],body_tags:{},forceScope:[]},h=[],L=/^design@(\d+)$/.exec(i.templateVersion??""),P=le(i.templateVersion)>=8,ie=e=>{if(!P||!K.has(String(e.kind))||!(e.kind==="unmeasurable"||i.phase==="tests")||e.ref&&(p.scenarios??[]).some(n=>n.temp_ref===e.ref))return!0;let t=e.ref?s.resolve(e.ref):null;return!!(t&&s.nodeLabel.get(t.cid)===g.SCENARIO&&!s.superseded.has(s.tipOf(t.cid))&&s.edgesFrom(s.tipOf(t.cid)).some(n=>n.type===l.BELONGS_TO&&s.tipOf(n.dst)===S))},Y=(p.gaps??[]).filter(ie),we=L!==null&&Number.parseInt(L[1],10)>=3,oe=new Map,De=(e,t)=>{let n=oe.get(e.source_cid);if(n===void 0){let r=Te(i.contextDir,s,e.source_cid);n=r?xe(r.toString("utf8")):null,oe.set(e.source_cid,n)}if(n===null)return h.push({code:"CITE_UNVERIFIED",detail:`${t}: source ${e.source_id} (${e.source_cid.slice(0,19)}) has no citable text to verify against`}),!1;let d=ve(s.mediaOf(e.source_cid),e,n);if(d.length>0){for(let r of d)h.push({code:"CITE_UNVERIFIED",detail:`${t}: ${r.code}: ${r.detail}`});return!1}return!0},N=[],j=[],C=[],J=[],U=[],y={},B={},W={},R=[],M=[],re=new Set,Q=[],V=new Set,x=new Set,X=[];{let e=i.forceScope??(i.force?Ge(s,i.ucRef,{blockerGaps:P}):[]);$.forceScope=[...e];let t=new Set;i.sections.scenarios?.length&&t.add(g.SCENARIO),i.sections.tests?.length&&t.add(g.TEST),P&&(i.sections.tests?.length||i.phase==="tests"&&Y.some(n=>K.has(String(n.kind))))&&(t.add(g.TEST),t.add(g.GAP));for(let n of e)s.superseded.has(n)||(t.has(s.nodeLabel.get(n)??"")?x.add(n):X.push(n))}let F=new Set,Z=e=>!s.superseded.has(e)&&(!x.has(e)||F.has(e)),I=(e,t,n)=>{if(y[e])return y[e];let d=s.resolve(e),r=d?Z(d.cid)?d.cid:s.tipOf(d.cid):null;return!d||!r||!Z(r)?(h.push({code:"UNKNOWN_REF",detail:`${t}: '${e}' is neither in this payload nor a live committed node`}),null):n&&s.nodeLabel.get(r)!==n?(h.push({code:"ILLEGAL_EDGE",detail:`${t}: '${e}' is a ${s.nodeLabel.get(r)}, expected ${n}`}),null):r},Le=(e,t,n,d)=>{if(s.nameOf.has(t)){B[d]=s.nameOf.get(t);return}let r=Re(e,E=>re.has(E),s.names.keys());r!==null&&(re.add(r),J.push({cid:t,slug:r,by:a}),B[d]=r)},z=(e,t,n,d)=>{for(let E of me(e,n))h.push({code:E.code,detail:`${t}: ${E.detail}`});let r=be(e,n);return s.hasNode(r)&&!s.superseded.has(r)?(x.has(r)&&F.add(r),y[t]=r,r):(N.push({cid:r,label:e,content:n}),y[t]=r,Le(e,r,d,t),r)},T=(e,t,n,d,r)=>{let E=ne(e,t,n,d);if(s.edgesFrom(t).some(o=>o.ecid===E&&!s.superseded.has(o.ecid))){e===l.AUTOMATES&&V.add(n);return}if(s.superseded.has(E)){h.push({code:"EDGE_RETRACTED",detail:`${r}: this ${e} edge was retracted (${E}) \u2014 retraction is terminal for commits. Add a NEW relationship (different endpoint or props), redesign, or revert the retracting record`});return}let A=s.nodeLabel.get(t)??N.find(o=>o.cid===t)?.label??"(unknown)",H=s.nodeLabel.get(n)??N.find(o=>o.cid===n)?.label??"(unknown)";for(let o of _e(e,A,H,d))h.push({code:o.code,detail:`${r}: ${o.detail}`});let f=Oe(s,e,t,n,Q);if(f){h.push({code:f.code,detail:`${r}: ${f.detail}`});return}if(e===l.BELONGS_TO||e===l.SCOPED_TO){let o=ye(s,{type:e,src:t,dst:n},{pending:Q,retracted:new Set(C.flatMap(c=>c.kind==="edge"?[c.ecid]:[])),freed:new Set([...x].filter(c=>!F.has(c)))},r);if(o){h.push(o);return}}if(e===l.AUTOMATES){if(V.has(n)){h.push({code:"CARDINALITY_VIOLATION",detail:`${r}: two automates onto ${n} in one record (strict 1:1)`});return}if(V.add(n),!x.has(n)||F.has(n)){let o=_=>x.has(_)&&!F.has(_);if(s.edgesFrom(t).some(_=>_.type===l.AUTOMATES&&_.dst!==n&&!s.superseded.has(_.dst)&&!o(_.dst))&&s.hasNode(t)){h.push({code:"CARDINALITY_VIOLATION",detail:`${r}: automates from ${t} already has a live edge \u2014 supersede it first`});return}if(s.edgesInto(n).some(_=>_.type===l.AUTOMATES&&_.src!==t&&!s.superseded.has(_.src)&&!o(_.src))){h.push({code:"CARDINALITY_VIOLATION",detail:`${r}: automates onto ${n} already has a live edge \u2014 strict 1:1, supersede it first`});return}}}j.push({ecid:ne(e,t,n,d),type:e,src:t,dst:n,props:d}),Q.push({src:t,dst:n,type:e})},ee=new Set;for(let e of Y)e.kind==="budget-evicted"&&e.ref&&ee.add(e.ref);let w=[];for(let[e,t]of(p.gaps??[]).entries()){if(ie(t))continue;let n=t.temp_ref??t.ref??"gap";w.push(e),R.push(`${n} not committed: a ${t.kind} gap stands in for a scenario's test \u2014 ref must be that scenario's committed id (sc-N) or its temp_ref in this payload; got ${t.ref?`'${t.ref}'`:"no ref"}`)}let ce=()=>{for(let e of Y){let t=e.temp_ref??e.ref??"gap",n=e.question;if(!n||typeof n!="object"||!n.header||!Array.isArray(n.options)||n.options.length===0||!Number.isInteger(n.recommended_index)){h.push({code:"GAP_QUESTION_INCOMPLETE",detail:`${t}: design gaps carry a full ranked question object (header/options/recommended_index)`});continue}let d=e.ref?P?y[e.ref]??e.ref:e.ref:void 0,r={kind:e.kind,question:n,derived:!0,uc:S,...e.risk?{risk:e.risk}:{},...e.risk_rationale?{risk_rationale:e.risk_rationale}:{},...e.text?{text:e.text}:{},...d?{ref:d}:{}};z(g.GAP,t,r,String(n.header))}};P||ce();let de=new Map;for(let{cid:e,content:t}of s.byLabel(g.SCENARIO))Z(e)&&s.edgesFrom(e).some(n=>n.type===l.BELONGS_TO&&s.tipOf(n.dst)===S)&&de.set(q(String(t.title??"")),e);for(let e of p.scenarios??[]){let t=de.get(q(e.title));if(t){h.push({code:"DUPLICATE_SCENARIO",detail:`${e.temp_ref}: '${e.title}' duplicates live scenario ${s.nameOf.get(t)??t} \u2014 exercise/link it instead (reuse before minting)`});continue}let n={title:e.title,intent:e.intent,case_type:e.case_type,derived:!0,...e.technique_notes?{technique_notes:e.technique_notes}:{},...e.description?{description:e.description}:{},...e.parameters?{parameters:e.parameters}:{},...e.tags?{tags:e.tags}:{}};z(g.SCENARIO,e.temp_ref,n,e.title)}for(let e of p.scenarios??[]){let t=y[e.temp_ref];if(t){T(l.BELONGS_TO,t,S,{},e.temp_ref);for(let n of e.depends_on??[]){let d=I(n,`${e.temp_ref}.depends_on`,g.SCENARIO);d&&(($.depends_on[e.temp_ref]??=[]).push(d),T(l.DEPENDS_ON,t,d,{},`${e.temp_ref}.depends_on`))}}}for(let e of p.acs??[]){let t={text:e.text,kind:e.kind,risk:e.risk,derived:!0,...e.expected_answer?{expected_answer:e.expected_answer}:{},...e.measurable!==void 0?{measurable:e.measurable}:{}},n=z(g.AC,e.temp_ref,t,e.text);if(!n)continue;let d=e.scope?.type==="scenario"&&e.scope.ref?I(e.scope.ref,`${e.temp_ref}.scope`,g.SCENARIO):S;d&&d!==S&&($.scope[e.temp_ref]=d),d&&!s.edgesFrom(n).some(r=>r.type===l.SCOPED_TO&&!s.superseded.has(r.ecid))&&T(l.SCOPED_TO,n,d,{},`${e.temp_ref}.scope`);for(let r of e.cites??[]){if(we&&!De(r,`${e.temp_ref}.cite`))continue;let E={source_id:r.source_id,source_cid:r.source_cid,anchor:r.anchor,...r.quote?{quote:r.quote}:{}};T(l.DERIVES,r.source_cid,n,E,`${e.temp_ref}.cite`)}}for(let e of p.exercises??[]){let t=I(e.scenario,"exercises.scenario",g.SCENARIO),n=I(e.ac,"exercises.ac",g.AC);!t||!n||($.exercises.push({scenario:t,ac:n}),T(l.EXERCISES,t,n,{},`exercises ${e.scenario}\u2192${e.ac}`))}let ae=0;for(let e of p.scoped_to_repoints??[]){let t=I(e.ac,"scoped_to_repoints.ac",g.AC),n=I(e.to,"scoped_to_repoints.to");if(!t||!n)continue;$.scoped_to_repoints.push({ac:t,to:n});let d=s.edgesFrom(t).find(r=>r.type===l.SCOPED_TO&&!s.superseded.has(r.ecid));if(d&&d.dst===n){ae+=1,R.push(`scoped_to_repoints ${e.ac}: already scoped to ${e.to} \u2014 no-op`);continue}d&&C.push({kind:"edge",ecid:d.ecid,reason:`re-scoped to ${e.to} by ${a.id}`,by:a}),T(l.SCOPED_TO,t,n,{},`scoped_to_repoints ${e.ac}`)}let fe=new Map;if(i.finalizeTestBody)for(let[e,t]of s.nameOf)fe.set(s.tipOf(e),t);let ue=e=>s.nameOf.get(e)??fe.get(s.tipOf(e))??null,pe=e=>{if(y[e])return y[e];let t=s.resolve(e);return t?s.names.has(e)&&!s.superseded.has(t.cid)?t.cid:s.tipOf(t.cid):null},Pe=e=>{let t=pe(e);if(!t&&i.strict)throw new Error(`UNMAPPED_REF: '${e}' resolves to nothing on this graph`);return t?y[e]?B[e]??ue(t):s.names.has(e)?e:ue(t):null};P&&ce();for(let e of p.tests??[]){for(let f of e.reuses??[])ee.has(f)&&h.push({code:"REUSES_EVICTED",detail:`${e.temp_ref}: reuses '${f}' which was budget-evicted \u2014 drop the edge; the dependent gap names the missing @import`});{let f=c=>c==="emulator"||c==="simulator"?c:"web",o=c=>{let u=(p.tests??[]).find(Fe=>Fe.temp_ref===c);if(u)return f(u.target);let _=s.resolve(c),O=_?s.getNode(s.tipOf(_.cid)??_.cid)?.content:void 0;if(typeof O?.target=="string")return f(String(O.target));let ge=/^\s*\[mobile:\s*(emulator|simulator)\]/m.exec(String(O?.test_md_blob??""));return ge?ge[1]:"web"};for(let c of e.reuses??[]){let u=f(e.target),_=o(c);u!==_&&h.push({code:"REUSES_CROSS_SURFACE",detail:`${e.temp_ref}: reuses '${c}' which runs on ${_} while this test runs on ${u} \u2014 a test imports only same-surface units`})}}let t=e.test_md_blob,n=e.definitionId,d=e.objectives_blob;if(i.finalizeTestBody){let f;try{f=i.finalizeTestBody({temp_ref:e.temp_ref,test_md_blob:e.test_md_blob,verifies:e.verifies,reuses:e.reuses??[]},Pe)}catch(o){return D([{code:"FINALIZE_BODY",detail:`${e.temp_ref}: ${o instanceof Error?o.message:String(o)}`}])}f&&(t=f.test_md_blob,n=f.definitionId,d=f.objectives_blob??d,W[e.temp_ref]=n)}let r={title:e.title,check:e.check,definitionId:n,derived:!0,...e.config?{config:e.config}:{},...t?{test_md_blob:t}:{},...d?{objectives_blob:d}:{},...e.surface_required!==void 0?{surface_required:e.surface_required}:{},...e.target?{target:e.target}:{},...e.app&&e.target?{app:e.app}:{}},E=z(g.TEST,e.temp_ref,r,e.title);if(!E)continue;let A=I(e.automates,`${e.temp_ref}.automates`,g.SCENARIO);A&&($.automates[e.temp_ref]=A,T(l.AUTOMATES,E,A,{},`${e.temp_ref}.automates`)),$.verifies[e.temp_ref]=[];for(let f of e.verifies){let o=I(f,`${e.temp_ref}.verifies`,g.AC);o&&($.verifies[e.temp_ref].push(o),T(l.VERIFIES,E,o,{},`${e.temp_ref}.verifies`))}$.reuses[e.temp_ref]=[];for(let f of e.reuses??[]){if(ee.has(f))continue;let o=I(f,`${e.temp_ref}.reuses`,g.TEST);o&&($.reuses[e.temp_ref].push(o),T(l.REUSES,E,o,{},`${e.temp_ref}.reuses`))}for(let f of e.verifies){let o=y[f]??s.resolve(f)?.cid;o&&(s.trust.get(o)??"derived")==="derived"&&!N.some(c=>c.cid===o)?R.push(`${e.temp_ref}: verifies ${f} which is still DERIVED (unapproved) \u2014 committed anyway; approve it in chat or via review`):o&&y[f]===o&&(p.acs??[]).some(c=>c.temp_ref===f)&&R.push(`${e.temp_ref}: verifies ${f} minted in this same record (unapproved) \u2014 committed anyway; approve it in chat`)}if(!String(e.test_md_blob??"").split(`
|
|
3
|
-
`).some(f=>/^##\s/.test(f)&&!/—\s?assert/.test(f)&&Be.test(f))&&e.verifies.length>1){let f=e.check?.verified_against;R.push(`${e.temp_ref}: verifies ${e.verifies.length} ACs but machine-asserts only 1 (check.verified_against=${f!=null?String(f):"?"}) \u2014 the rest ride prose only`)}}let G=[];for(let e of p.tests??[]){let t={};for(let n of je(e.test_md_blob,e.objectives_blob)){let d=pe(n);d?t[n]=d:G.push(`${e.temp_ref}: body tag '${n}' resolves to nothing`)}$.body_tags[e.temp_ref]=t,G.push(...qe(e.temp_ref,t,[...$.verifies[e.temp_ref]??[],...$.reuses[e.temp_ref]??[]]))}if(G.length>0){if(i.strict)return D(G.map(e=>({code:"BODY_EDGE_MISMATCH",detail:e})));R.push(...G.map(e=>`integrity: ${e}`))}let te=[];{let e=(o,c)=>`${o??""}\0${q(String(c??""))}`,t=(o,c)=>i.reason?`${i.reason} \u2014 evolve by ${a.id}${c?` (${c})`:""}`:o,n=new Map;for(let o of N){if(o.label!==g.SCENARIO&&o.label!==g.TEST)continue;let c=e(o.label,o.content.title);n.set(c,[...n.get(c)??[],o.cid])}let d=new Map;for(let o of x){if(F.has(o))continue;let c=e(s.nodeLabel.get(o),s.getNode(o)?.content.title);d.set(c,[...d.get(c)??[],o])}for(let[o,c]of d){let u=n.get(o)??[],_=c.length===1&&u.length===1;for(let O of c)_?(C.push({kind:"node",old:O,new:u[0],reason:t(`--force redesign of ${i.ucRef} by ${a.id} (title-matched successor)`,"title-matched successor"),by:a}),te.push({old:O,next:u[0]})):C.push({kind:"node",old:O,new:null,reason:t(`--force redesign of ${i.ucRef} by ${a.id}`),by:a}),M.push(O)}let r=o=>s.edgesFrom(o).some(c=>c.type!==l.SCOPED_TO?!1:c.dst===S||s.tipOf(c.dst)===S?!0:s.nodeLabel.get(c.dst)===g.SCENARIO&&s.edgesFrom(c.dst).some(u=>u.type===l.BELONGS_TO&&s.tipOf(u.dst)===S)),E=new Map;for(let{cid:o,content:c}of s.byLabel(g.AC)){if(s.superseded.has(o)||!r(o))continue;let u=q(String(c.text??""));E.set(u,[...E.get(u)??[],o])}let A=new Map;for(let o of N){if(o.label!==g.AC)continue;let c=q(String(o.content.text??""));A.set(c,[...A.get(c)??[],o.cid])}for(let[o,c]of E){let u=A.get(o)??[];c.length!==1||u.length!==1||(C.push({kind:"node",old:c[0],new:u[0],reason:t(`AC re-emitted with changed content by ${a.id} (text-matched successor)`,"AC text-matched successor"),by:a}),te.push({old:c[0],next:u[0]}),M.push(c[0]))}let H=new Set(M),f=new Set;for(let o of C)o.kind==="edge"&&f.add(o.ecid);for(let{old:o,next:c}of te)for(let u of s.edgesInto(o))he(u.type)?.pin?.comparesTo!=="dst_tip"||s.superseded.has(u.src)||H.has(u.src)||f.has(u.ecid)||(C.push({kind:"edge",ecid:u.ecid,reason:`re-blessed onto ${c} (redirect successor of ${o}) by ${a.id}`,by:a}),f.add(u.ecid),j.some(O=>O.type===u.type&&O.src===u.src&&O.dst===c)||s.edgesFrom(u.src).some(O=>O.type===u.type&&O.dst===c))||u.type===l.AUTOMATES&&V.has(c)||T(u.type,u.src,c,u.props,`rebless ${u.type} from ${s.nameOf.get(u.src)??u.src}`)}if(h.length>0)return D(h);if(N.length===0&&j.length===0&&C.length===0&&U.length===0)return Object.keys(y).length>0||ae>0?(R.push("everything in this phase is already current \u2014 nothing re-committed"),{record:null,errors:null,minted:y,logicalIds:B,superseded:[],warnings:R,finalizedTests:W,...w.length?{droppedBlockers:w}:{},...i.force||i.forceScope?{forceScopeRemaining:X}:{}}):{...D([{code:"EMPTY_DESIGN",detail:"finalize_design produced nothing to commit"}]),warnings:R,...w.length?{droppedBlockers:w}:{}};if(i.generationTicket){let e=Ae(s,i.generationTicket);if(e!==null)return D([e])}let se=i.eventIds&&i.eventIds.length>0?i.eventIds:i.sid?ke(s,i.sid,"design",1):null;return{record:$e(k,{ts:new Date().toISOString(),proposal_id:null,nodes:N,edges:j,review:[],supersessions:C,source_head_moves:{},...J.length>0?{names:J}:{},...(()=>{for(let e of p.judgements??[]){let t=e.target?y[e.target]??s.resolve(e.target)?.cid??S:S;$.judgements.push(t),U.push({about:t,rationale:`[${e.kind}] ${e.rationale}`,by:a})}return U.length>0?{judgements:U}:{}})(),design_of:{uc_cid:S,engine:v},...i.generationTicket?{design_generation:Ne(i.generationTicket,S,a)}:{},...se?{event_ids:se}:{},...i.sid?{sid:i.sid}:{},...i.phase?{design_phase:{uc_root:Ce(s,S),generation:i.generationTicket?.next_gen??Ie(s,i.ucRef)?.gen??1,phase:i.phase,completeness:i.phaseCompleteness??"complete"}}:{}},{expectPrev:s.latestHash,intent:{v:1,verb:"design",args:Se({ucRef:i.ucRef,sections:p,by:a,engine:v,force:i.force??!1,forceScope:i.forceScope??null,reason:i.reason??null,generationTicket:i.generationTicket??null,templateVersion:i.templateVersion??null,phase:i.phase??null,phaseCompleteness:i.phaseCompleteness??null,eventIds:se,sid:i.sid??null}),pins:$},provenance:i.provenance}).record,errors:null,minted:y,logicalIds:B,superseded:M,warnings:R,finalizedTests:W,...w.length?{droppedBlockers:w}:{},...i.force||i.forceScope?{forceScopeRemaining:X}:{}}}function qe(i,k,s){let p=new Set(Object.values(k));if(p.size===0)return[];let a=new Set(s),v=[];for(let[m,b]of Object.entries(k))a.has(b)||v.push(`${i}: body tag '${m}' has no verifies or reuses edge`);for(let m of a)p.has(m)||v.push(`${i}: edge to ${m} has no body tag`);return v}function je(i,k){let s=[];for(let a of(i??"").split(`
|
|
4
|
-
`)){let v=/^##\s.*?\s@verifies\s+(.+?)\s*$/.exec(a);v&&s.push(...v[1].split(",").map(b=>b.trim()).filter(Boolean));let m=/^@import\s+(\S+)\s*$/.exec(a.trim())??/^## Import: (\S+)\s*$/.exec(a);m&&s.push(m[1])}let p=!1;for(let a of(k??"").split(`
|
|
5
|
-
`)){let v=/^\s*verifies:\s*\[(.*)\]\s*$/.exec(a);if(v){s.push(...v[1].split(",").map(b=>b.trim()).filter(Boolean));continue}if(/^\s*verifies:\s*$/.test(a)){p=!0;continue}let m=p?/^\s*-\s+(\S+)\s*$/.exec(a):null;m?s.push(m[1]):p=!1}return s}function tt(i,k){let s=[];for(let p of i){let a=p.design_phase;!a||typeof a!="object"||a.uc_root===k&&(typeof a.phase!="string"||typeof a.generation!="number"||s.push({phase:a.phase,generation:a.generation,seq:p.seq,completeness:a.completeness==="partial"?"partial":"complete"}))}return s.sort((p,a)=>p.seq-a.seq)}export{Ge as a,et as b,tt as c};
|
package/dist/chunk-EYOCNMUM.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import { createRequire } from 'module'; const require = createRequire(import.meta.url);
|
|
2
|
-
var o=["desktop","emulator","simulator"],r=["emulator","simulator"];function i(e,n){return e===void 0||e===""?{kind:"unset"}:o.includes(e)?{kind:e}:e==="web"?{kind:"desktop"}:e==="mobile"?r.includes(n??"")?{kind:n}:{kind:"choose-mobile"}:{kind:"unset"}}function s(e){return e==="emulator"||e==="simulator"}function u(e){if(e==="emulator")return"android";if(e==="simulator")return"ios"}function a(e){return r.includes(e)?e:void 0}var t={desktop:"Desktop",emulator:"Emulator",simulator:"Simulator"};function d(e){return t[e]}export{i as a,s as b,u as c,a as d,d as e};
|
package/dist/chunk-F2OBORCG.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import { createRequire } from 'module'; const require = createRequire(import.meta.url);
|
|
2
|
-
import{F as c}from"./chunk-RDHWNSDP.js";import{f as l}from"./chunk-XLSOQLVT.js";function h(f,o,u){let n=o.resolve(u);if(!n)return{target:null,entries:[]};let t=new Set([n.cid]),r=n.cid;for(;o.superseded.has(r);){let s=o.superseded.get(r);if(typeof s!="string"||t.has(s))break;t.add(s),r=s}let d=o.nodeLabel.get(n.cid)??"(unknown)",{records:p}=c(f),i=[];for(let s of p){for(let e of s.nodes)t.has(e.cid)&&i.push({seq:s.seq,ts:s.ts,kind:"minted",detail:`minted ${e.label} ${e.cid}`});for(let e of s.judgements??[])t.has(e.about)&&i.push({seq:s.seq,ts:s.ts,kind:"judgement",rationale:e.rationale,detail:`judgement on ${e.about}`,by:e.by});for(let e of s.review)t.has(e.id)&&i.push({seq:s.seq,ts:s.ts,kind:"review",detail:`${e.resolution}${e.reason?` \u2014 ${e.reason}`:""}`,by:e.by});for(let e of s.supersessions)e.kind==="node"&&(t.has(e.old)||e.new!==null&&t.has(e.new))&&i.push({seq:s.seq,ts:s.ts,kind:"supersession",detail:`${e.old} \u2192 ${String(e.new)} \u2014 ${e.reason}`,by:e.by});for(let e of s.names??[])t.has(e.cid)&&i.push({seq:s.seq,ts:s.ts,kind:"name",detail:`named ${e.slug}`,by:e.by});if(d===l.SOURCE)for(let[e,a]of Object.entries(s.source_head_moves))(t.has(a??"")||o.heads.get(e)!==void 0&&t.has(n.cid)&&e===o.getNode(n.cid)?.content?.source_id)&&i.push({seq:s.seq,ts:s.ts,kind:"head_move",detail:`${e} head \u2192 ${String(a)}`})}return i.sort((s,e)=>e.seq-s.seq),{target:{cid:n.cid,tip:n.tip,label:d,slug:o.nameOf.get(n.cid)},entries:i}}export{h as a};
|
package/dist/chunk-FMBPUXWL.js
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { createRequire } from 'module'; const require = createRequire(import.meta.url);
|
|
2
|
-
import{j as R,k}from"./chunk-EM3PU2YW.js";import{d as f,i as v}from"./chunk-Z7S3IWUX.js";import{a as _,c as $,e as m}from"./chunk-EYOCNMUM.js";var x=["desktop","emulator","simulator"];function T(e,t){return e.kind==="app_id"?!0:t==="emulator"?e.kind==="apk":e.kind==="zip"}function I(e){let t=e.deviceName,n=e.osVersion;return t!==void 0&&t.trim()===""||n!==void 0&&n.trim()===""?{ok:!1,message:"--device-name and --os-version cannot be empty."}:{ok:!0,...t!==void 0?{name:t.trim()}:{},...n!==void 0?{osVersion:n.trim()}:{}}}function A(e){return`--device-name needs an OS version \u2014 a bare name matches every runtime that ships it.
|
|
3
|
-
Provide one: ${e}`}function h(e,t,n){let s=k(e);return s?T(s,t)?null:t==="emulator"?`${n} cannot run on an emulator (needs an .apk, or an APP\u2026 id).`:`${n} cannot run on a simulator (needs a .zip of the .app bundle, or an APP\u2026 id).`:`${e}: ${R}`}function V(e){return x.includes(e)?e:null}function w(e){return`--target must be one of desktop, emulator, simulator (got "${e}")`}function y(e){let t=[];for(let[n,s]of[["--device-name",e.deviceName],["--os-version",e.osVersion],["--app",e.app]])s!==void 0&&t.push(`ignored ${n} ${s}: session target is desktop \u2014 set --target emulator|simulator to run on a device`);return t}function K(e){let{flags:t,saved:n}=e,s=[],o;if(t.target!==void 0){let i=V(t.target);if(!i)return{kind:"invalid",message:w(t.target)};o=i}else{let i=_(n?.tui_target,n?.default_target?.kind);if(i.kind==="choose-mobile")return{kind:"choose-mobile-kind"};o=i.kind==="unset"?"desktop":i.kind}if(o==="desktop")return s.push(...y(t)),{kind:"web",warnings:s};if(!e.host.supported)return{kind:"invalid",message:e.host.reason??"this machine cannot run mobile targets."};let g=[],r,u,d=I(t);if(!d.ok)return{kind:"invalid",message:d.message};let c=n?.default_target&&n.default_target.kind===o?f(n.default_target):void 0;if(d.name!==void 0||d.osVersion!==void 0){let i=d.name??c?.name,a=d.osVersion??c?.osVersion;if(a===void 0)return{kind:"invalid",message:A("--os-version <version>, or save one (kane-cli config set-os-version)")};u={...i!==void 0?{name:i}:{},osVersion:a},r={value:i?`${i} (${a})`:`any device on ${a}`,source:"flag"}}else if(n?.default_target&&n.default_target.kind===o&&(f(n.default_target)!==void 0||n.default_target.id!==void 0))r={value:v(n.default_target)??"(saved device)",source:"saved"};else{if(n?.default_target&&n.default_target.kind!==o&&(f(n.default_target)!==void 0||n.default_target.id!==void 0))return{kind:"invalid",message:`Your saved device '${v(n.default_target)}' is ${n.default_target.kind==="simulator"?"a simulator":"an emulator"}, but this run targets ${o==="simulator"?"a simulator":"an emulator"}. Pass --device-name and --os-version, or update your config (set-target, set-device-name, set-os-version).`};g.push("device")}let l;if(t.app!==void 0){let i=h(t.app,o,`--app ${t.app}`);if(i)return{kind:"invalid",message:i};l={value:t.app,source:"flag"}}else{let i=n?.default_app,a=i?k(i):null;a&&T(a,o)&&n?.default_target?.kind===o?l={value:i,source:"saved"}:g.push("app")}return{kind:"mobile",target:o,...u?{deviceSelector:u}:{},...r?{device:r}:{},...l?{app:l}:{},missing:g,warnings:s}}var S={emulator:"an emulator",simulator:"a simulator",android:"a real device",ios:"a real device"};function P(e){let t=[];for(let[n,s]of[["--device-name",e.deviceName],["--os-version",e.osVersion],["--app",e.app]])s!==void 0&&t.push(`ignored ${n} ${s}: a real-device run takes its device and app from the run's device config`);return t}function E(e){return`this run was given a device config (KANE_CLI_DEVICE_CONFIG), so it runs on a real device, but the test file ${e?`has \`target: ${e}\``:"has no `target:` (a web test)"} \u2014 only a \`target: android\` or \`target: ios\` test runs on a real device.`}function M(e){let{flags:t,file:n}=e,s=[],o=n.target==="emulator"||n.target==="simulator"?n.target:void 0,g=n.target==="android"||n.target==="ios"?n.target:void 0,r;if(t.target!==void 0){let a=V(t.target);if(!a)return{kind:"invalid",message:w(t.target)};r=a;let p=o??g;p&&p!==r&&s.push(`--target ${r} overrides the file's \`target: ${p}\` \u2014 steps recorded on ${S[p]} may not replay here`)}else{if(g)return e.grid?(s.push(...P(t)),{kind:"real-device",platform:g,warnings:s}):{kind:"invalid",message:`\`target: ${g}\` is not supported. Supported mobile targets: \`emulator\`, \`simulator\`.`};r=o??"desktop"}if(r!=="desktop"&&e.grid)return{kind:"invalid",message:`KANE_CLI_GRID is set, which works only for real-device tests (\`target: android\` / \`target: ios\`), and this test targets ${S[r]}. Unset KANE_CLI_GRID and try again.`};if(e.deviceConfig)return{kind:"invalid",message:E(n.target)};if(r==="desktop")return s.push(...y(t)),{kind:"web",warnings:s};let u=I(t);if(!u.ok)return{kind:"invalid",message:u.message};let d=u.name??(n.device_name?.trim()||void 0),c=u.osVersion??(n.os_version?.trim()||void 0);if(d!==void 0&&c===void 0)return{kind:"invalid",message:A("--os-version <version>, or os_version: in the test file")};let l=c!==void 0?{...d!==void 0?{name:d}:{},osVersion:c}:void 0;if(r==="simulator"&&l&&l.name===void 0&&s.push(`the file names no device_name \u2014 any simulator on ${c} may be used. Add device_name: to the file (or pass --device-name) to pin the device.`),t.app!==void 0){let a=h(t.app,r,`--app ${t.app}`);if(a)return{kind:"invalid",message:a}}else if(n.app){let a=h(n.app,r,`the file's app: ${n.app}`);if(a)return{kind:"invalid",message:a}}let i=t.app??(n.app||void 0);return{kind:"mobile",target:r,platform:$(r)??"",...i?{app:i}:{},...l?{deviceSelector:l}:{},...n.no_reset!==void 0?{noReset:n.no_reset}:{},warnings:s}}function L(e){return e.target==="desktop"?"Running on: Desktop \xB7 Chrome":`Running on: ${m(e.target)} \xB7 ${e.deviceLabel} \xB7 ${e.appLabel}`}var b={emulator:"</path/to/app.apk | AppId>",simulator:"</path/to/app.zip | AppId>"};function N(e,t){let n=m(e).toLowerCase();return t==="device"?[`session target is "${n}" but no device is set.`,` See devices: kane-cli devices list --target ${e}`,' Set one: kane-cli config set-device-name "<name>" && kane-cli config set-os-version "<version>"',' Or per-run: --device-name "<name>" --os-version "<version>"'].join(`
|
|
4
|
-
`):[`session target is "${n}" but no app is set.`,` Set one: kane-cli config set-app ${b[e]}`,` Or per-run: --app ${b[e]}`].join(`
|
|
5
|
-
`)}function O(e){return[`saved device "${e}" was not found on this machine.`," See devices: kane-cli devices list",' Set one: kane-cli config set-device-name "<name>" && kane-cli config set-os-version "<version>"'].join(`
|
|
6
|
-
`)}function j(e,t){return[`saved app ${e} no longer exists on disk.`," The build may have been moved or cleaned. Set a new one:",` kane-cli config set-app ${b[t]}`].join(`
|
|
7
|
-
`)}var G=['session target is "mobile" from an older version \u2014 say which kind:'," kane-cli config set-target emulator|simulator"].join(`
|
|
8
|
-
`);export{T as a,I as b,A as c,K as d,M as e,L as f,N as g,O as h,j as i,G as j};
|
package/dist/chunk-FORNRNHU.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import { createRequire } from 'module'; const require = createRequire(import.meta.url);
|
|
2
|
-
import{y as m}from"./chunk-CXF6AZWY.js";import{a as x}from"./chunk-HCBYKLMW.js";import{a as u,b as a,j as g}from"./chunk-C44QQJR4.js";import{a as b}from"./chunk-6YGTRKDT.js";import{e as f}from"./chunk-UR6MHSHU.js";var T=f(b(),1);function k(i,n){if(!n)return i;let l=i.trim()||n;return`\x1B]8;;${n}\x07${l}\x1B]8;;\x07`}var r=f(x(),1);function $({shareableLink:i,testCaseLink:n,codeExportDir:l,recordedTestPath:s,outputDir:o,autoExit:p=!0}){let{exit:c}=g();(0,T.useEffect)(()=>{if(!p)return;let t=setTimeout(()=>c(),100);return()=>clearTimeout(t)},[c,p]);let e=[];return s&&e.push({label:"Test",url:s,linkUrl:`file://${s}`}),o&&e.push({label:"Output",url:o,linkUrl:`file://${o}`}),i&&e.push({label:"ShareLink",url:i}),n&&e.push({label:"TestCase",url:n}),l&&!o&&e.push({label:"CodeExport",url:l,linkUrl:`file://${l}`}),e.length===0?(0,r.jsx)(r.Fragment,{}):(0,r.jsx)(u,{flexDirection:"column",marginTop:1,marginLeft:1,children:e.map(t=>(0,r.jsxs)(u,{flexDirection:"column",marginBottom:1,children:[(0,r.jsxs)(a,{color:m.orange,children:[t.label,":"]}),(0,r.jsx)(a,{color:m.dim,children:k(t.url,t.linkUrl??t.url)})]},t.label))})}export{$ as a};
|
package/dist/chunk-FQJOWUEN.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import { createRequire } from 'module'; const require = createRequire(import.meta.url);
|
|
2
|
-
import{a as C}from"./chunk-5HOHXV2K.js";import{k as Z}from"./chunk-EM3PU2YW.js";import{a as D}from"./chunk-YCCUBQY4.js";import{a as M}from"./chunk-MKQ7ZRDW.js";import{a as z}from"./chunk-LHUW5QDT.js";import{b as W}from"./chunk-HJX5PQRD.js";import{a as B}from"./chunk-CSVPZ33X.js";import{e as V}from"./chunk-Z7S3IWUX.js";import{y as o}from"./chunk-CXF6AZWY.js";import{a as A}from"./chunk-HCBYKLMW.js";import{a as n,b as t,i as L}from"./chunk-C44QQJR4.js";import{a as N}from"./chunk-6YGTRKDT.js";import{e as g}from"./chunk-UR6MHSHU.js";var T=g(A(),1);function te(e){let i=e.kind==="simulator";switch(e.state){case"ready":return i?"Booted":"Running";case"stopped":return i?"Shutdown":"Stopped";case"unauthorized":return"UNAUTHORIZED";case"offline":return"Offline"}}function re(e){switch(e.state){case"unauthorized":return"accept the authorisation prompt on the device, then reopen this list";case"offline":return e.kind==="simulator"?"not responding \u2014 open Simulator.app to inspect it":"not responding \u2014 reconnect it, or restart the emulator";default:return}}function ne(e,i){let m=i.id!==void 0?{...i,id:z(i.id)}:i,c=e.virtualName!==void 0?{...e,virtualName:z(e.virtualName)}:e;return V(c,m)}function ie(e){return e.virtualName??e.displayName}function ae(e,i){let m=e.state==="ready"||e.state==="stopped",c=re(e),b=e.osVersion?` (${e.osVersion})`:"";return{id:e.id,label:`${ie(e)}${b} \xB7 ${te(e)}`,...i&&ne(e,i)?{isActive:!0}:{},...m?{}:{disabled:!0},...!m&&c?{disabledHint:c}:{}}}function le(e){return e==="emulator"?"No Android emulator found. Make sure an emulator exists on this machine (Android Studio \u2192 Device Manager), then reopen this list.":e==="simulator"?"No iOS simulator found. Make sure a simulator exists on this machine (Xcode \u2192 Windows \u2192 Devices and Simulators), then reopen this list.":"No emulator or simulator found. Make sure one exists on this machine, then reopen this list."}function he({targets:e,preselectedTarget:i,preselectedId:m,busyMessage:c,onSelect:b,onCancel:f,kind:l}){if(c)return(0,T.jsxs)(n,{flexDirection:"column",borderStyle:"round",borderColor:o.orange,paddingX:2,paddingY:1,children:[(0,T.jsx)(t,{color:o.orange,bold:!0,children:"Device"}),(0,T.jsxs)(n,{marginTop:1,children:[(0,T.jsx)(C,{}),(0,T.jsxs)(t,{color:o.secondary,children:[" ",c]})]})]});if(e.length===0)return(0,T.jsxs)(n,{flexDirection:"column",borderStyle:"round",borderColor:o.orange,paddingX:2,paddingY:1,children:[(0,T.jsx)(t,{color:o.orange,bold:!0,children:"Device"}),(0,T.jsx)(n,{marginTop:1,children:(0,T.jsx)(t,{color:o.dim,children:le(l)})})]});let d=e.map(r=>ae(r,i)),p=i?d.find(r=>r.isActive)?.id??null:m?e.find(r=>r.id===m||r.virtualName===m)?.id??null:null,a=new Map(e.map(r=>[r.id,r]));return(0,T.jsx)(M,{title:"Device",items:d,itemNoun:"devices",defaultActiveId:p,preserveSelectionById:!0,onSelect:r=>{let y=a.get(r.id);y&&b(y)},onCancel:f})}var x=g(N(),1);var u=g(A(),1),q=50,G=500;function pe(e){return`${e.name} (${e.appId})`}function Pe({kind:e,listApps:i,onSelect:m,onManualEntry:c,onCancel:b,busyMessage:f}){let[l,d]=(0,x.useState)([]),[p,a]=(0,x.useState)(!0),[r,y]=(0,x.useState)(!1),[Q,O]=(0,x.useState)(!1),[E,H]=(0,x.useState)(null),[w,J]=(0,x.useState)(""),[j,U]=(0,x.useState)(!1),$=(0,x.useRef)(!0),R=(0,x.useRef)(0);if((0,x.useEffect)(()=>{let h=++R.current,k=w.trim();$.current?a(!0):k&&O(!0),y(!0),H(null),U(!1),(async()=>{let I=[];try{for(let P=0;;P+=q){let X=await i({limit:q,offset:P,search:k});if(h!==R.current)return;if(I.push(...X.apps),d([...I]),$.current&&(a(!1),$.current=!1),O(!1),X.apps.length===0||I.length>=X.total)break;if(I.length>=G){U(!0);break}}}catch(P){if(h!==R.current)return;H(P instanceof Error?P.message:String(P)),a(!1),O(!1)}finally{h===R.current&&y(!1)}})()},[w,i]),L((h,k)=>{if(k.tab){c();return}k.escape&&b()},{isActive:!!E&&!f}),f)return(0,u.jsxs)(n,{flexDirection:"column",borderStyle:"round",borderColor:o.orange,paddingX:2,paddingY:1,children:[(0,u.jsx)(t,{color:o.orange,bold:!0,children:"App under test"}),(0,u.jsxs)(n,{marginTop:1,children:[(0,u.jsx)(C,{}),(0,u.jsxs)(t,{color:o.secondary,children:[" ",f]})]})]});if(E)return(0,u.jsxs)(n,{flexDirection:"column",borderStyle:"round",borderColor:o.red,paddingX:2,paddingY:1,children:[(0,u.jsx)(t,{color:o.red,bold:!0,children:"App under test"}),(0,u.jsx)(n,{marginTop:1,children:(0,u.jsx)(t,{color:o.red,children:"Could not load your uploads."})}),(0,u.jsx)(n,{marginTop:1,children:(0,u.jsx)(t,{color:o.dim,children:E})}),(0,u.jsx)(B,{bindings:[{keys:"tab",label:"tab to enter an app id"}],escBackLabel:"back to chat"})]});let ee=new Map(l.map(h=>[h.appId,h])),oe=l.map(h=>({id:h.appId,label:pe(h)})),_=!p&&!r&&l.length===0&&!w.trim()?e==="simulator"?"No simulator builds uploaded to this account yet \u2014 press Tab to enter an app id.":"No emulator builds uploaded to this account yet \u2014 press Tab to enter an app id.":null;return(0,u.jsx)(M,{title:"App under test",items:oe,loading:p,loadingText:"Loading your uploads\u2026",loadingMore:r,searching:Q,itemNoun:"uploads",preserveSelectionById:!0,onSearch:J,onTab:c,extraHint:"tab to enter an id",footer:_?(0,u.jsx)(t,{color:o.dim,children:_}):j?(0,u.jsx)(t,{color:o.dim,children:`Showing the first ${G} \u2014 type to search the rest.`}):void 0,onSelect:h=>{let k=ee.get(h.id);k&&m({appId:k.appId,name:k.name})},onCancel:b})}var Y=g(N(),1);var S=g(A(),1),se={emulator:["apk"],simulator:["zip"]};function ce(e){return Z(e.trim())}function Oe({kind:e,onBack:i,onSelect:m,onCancel:c}){let[b,f]=(0,Y.useState)(""),[l,d]=(0,Y.useState)(null),p=e==="emulator"?".apk":".zip";return(0,S.jsxs)(n,{flexDirection:"column",borderStyle:"round",borderColor:o.orange,paddingX:2,paddingY:1,children:[(0,S.jsx)(t,{color:o.orange,bold:!0,children:"App under test"}),(0,S.jsx)(n,{marginTop:1,children:(0,S.jsx)(t,{color:o.dim,children:`Path to a build (${p}): `})}),(0,S.jsxs)(n,{marginTop:1,children:[(0,S.jsx)(t,{color:o.dim,children:" "}),(0,S.jsx)(D,{value:b,onChange:a=>{f(a),l&&d(null)},onSubmit:a=>{let r=ce(a);if(!r){d(a.trim()?`Not a build \u2014 expected ${p}.`:"Enter the path to a build.");return}if(!se[e].includes(r.kind)){d(`${r.kind} builds don't run on a ${e} \u2014 expected ${p}.`);return}d(null),m(r).then(y=>{!y.ok&&y.error&&d(y.error)})},onCancel:i,placeholder:e==="emulator"?"/path/to/app-debug.apk":"/path/to/MyApp.zip"})]}),l&&(0,S.jsx)(n,{marginTop:1,children:(0,S.jsx)(t,{color:o.red,children:l})}),(0,S.jsx)(B,{bindings:[{keys:"\u21B5",label:"use this build"}],escBackLabel:"back"})]})}var F=g(N(),1);var v=g(A(),1);function de(e){return[{value:"local",label:"Local build",hint:e==="emulator"?".apk":".zip",available:!0},{value:"uploaded",label:"Uploaded app",hint:"an app id from your cloud uploads",available:!0}]}function Ye({kind:e,onSelect:i,onCancel:m}){let c=de(e),[b,f]=(0,F.useState)(0),[l,d]=(0,F.useState)(null);return L((p,a)=>{if(a.escape){m();return}if(a.upArrow&&f(r=>Math.max(0,r-1)),a.downArrow&&f(r=>Math.min(c.length-1,r+1)),a.return){let r=c[b];if(!r.available){d("That source isn't available \u2014 choose a local build for now.");return}d(null),i(r.value)}}),(0,v.jsxs)(n,{flexDirection:"column",borderStyle:"round",borderColor:o.orange,paddingX:2,paddingY:1,children:[(0,v.jsx)(t,{color:o.orange,bold:!0,children:"App under test"}),(0,v.jsx)(n,{marginTop:1,flexDirection:"column",children:c.map((p,a)=>{let r=a===b,y=p.available?r?o.orange:void 0:o.muted;return(0,v.jsxs)(n,{children:[(0,v.jsxs)(t,{color:y,children:[r?"\u276F ":" ",p.label]}),(0,v.jsxs)(t,{color:o.dim,children:[" ",p.hint]})]},p.value)})}),l&&(0,v.jsx)(n,{marginTop:1,children:(0,v.jsx)(t,{color:o.red,children:l})}),(0,v.jsx)(B,{bindings:[{keys:"\u2191\u2193",label:"navigate"},{keys:"\u21B5",label:"select"}],escBackLabel:"back"})]})}var K=g(N(),1);var s=g(A(),1);function qe({busyMessage:e,onSubmit:i,onBack:m}){let[c,b]=(0,K.useState)(""),[f,l]=(0,K.useState)(null);return e?(0,s.jsxs)(n,{flexDirection:"column",borderStyle:"round",borderColor:o.orange,paddingX:2,paddingY:1,children:[(0,s.jsx)(t,{color:o.orange,bold:!0,children:"App under test"}),(0,s.jsxs)(n,{marginTop:1,children:[(0,s.jsx)(C,{}),(0,s.jsxs)(t,{color:o.secondary,children:[" ",e]})]})]}):(0,s.jsxs)(n,{flexDirection:"column",borderStyle:"round",borderColor:o.orange,paddingX:2,paddingY:1,children:[(0,s.jsx)(t,{color:o.orange,bold:!0,children:"App under test"}),(0,s.jsx)(n,{marginTop:1,children:(0,s.jsx)(t,{color:o.dim,children:"App id from your cloud uploads:"})}),(0,s.jsxs)(n,{marginTop:1,children:[(0,s.jsx)(t,{color:o.dim,children:" "}),(0,s.jsx)(D,{value:c,onChange:d=>{b(d),f&&l(null)},onSubmit:d=>{let p=d.trim();if(!p){l("Enter an app id.");return}if(!W(p)){l("That doesn't look like an app id \u2014 they start with APP.");return}l(null),i(p).then(a=>{!a.ok&&a.error&&l(a.error)})},onCancel:m,placeholder:"APP1016032231178585590501450"})]}),f&&(0,s.jsxs)(n,{marginTop:1,flexDirection:"column",children:[(0,s.jsx)(t,{color:o.red,children:f}),(0,s.jsx)(t,{color:o.dim,children:"Enter a valid app id \u2014 copy it from your cloud uploads."})]}),(0,s.jsx)(B,{bindings:[{keys:"\u21B5",label:"use this app"}],escBackLabel:"back"})]})}export{he as a,Pe as b,Oe as c,Ye as d,qe as e};
|
package/dist/chunk-FQNQVC5O.js
DELETED
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { createRequire } from 'module'; const require = createRequire(import.meta.url);
|
|
2
|
-
import{b as N}from"./chunk-UD7KKHPW.js";import{closeSync as D,existsSync as J,mkdirSync as C,openSync as U,readFileSync as M,readdirSync as X,renameSync as $,rmSync as h,watch as F,writeFileSync as _}from"fs";import{join as g}from"path";import{randomBytes as q}from"crypto";var R=1440*60*1e3,m=class extends Error{constructor(a,u,f,k){super(`${a}: ${f}`);this.code=a;this.key=u;this.holder=k}},E=e=>(e?.now??(()=>new Date))();function P(e){if(!Number.isInteger(e)||e<=0)return!1;try{return process.kill(e,0),!0}catch(i){return i.code==="EPERM"}}function G(e,i){let a=i.getTime()-new Date(e.ts).getTime();return!P(e.pid)||a>=R||Number.isNaN(a)}var L=e=>g(e,"locks"),H=e=>g(L(e),"waiters");function T(e,i){return i.kind==="context"?g(L(e),"context.lock"):i.kind==="extract"?g(L(e),"extract.lock"):g(L(e),`uc-${i.id}.lock`)}var x=e=>e.kind==="uc"?e.id:e.kind,v=e=>e.kind==="uc"?`uc:${e.id}`:e.kind,K=e=>e.kind==="uc"?e.id:`~${e.kind}`;function I(e){return[...e].sort((i,a)=>K(i)<K(a)?-1:K(i)>K(a)?1:0)}function p(e){try{return JSON.parse(M(e,"utf8"))}catch{return null}}function W(e,i,a){let u=`${e}.break-${a}`;try{$(e,u)}catch(k){if(k.code==="ENOENT")return!1;throw k}let f;try{f=JSON.parse(M(u,"utf8"))}catch{f=null}if(f===null||f.nonce===i)return h(u,{force:!0}),!0;try{$(u,e)}catch{h(u,{force:!0})}return!1}var y=new Map,O=new Map;function V(e,i,a){let u=o=>`${e}|${i}|${x(o)}`;function f(o,d,s=0){if(s>20)throw new m("LOCK_CONTENTION_UNSETTLED",o,`${v(o)}: lock contention did not settle`);let c=T(e,o);C(L(e),{recursive:!0});let n=q(8).toString("hex");try{let t=U(c,"wx",384);return _(t,JSON.stringify({...d,nonce:n})+`
|
|
3
|
-
`),D(t),n}catch(t){if(t.code!=="EEXIST")throw t;let r=p(c),l=E(a);if(r!==null&&!G(r,l)){let S=o.kind==="context"?"CONTEXT_HELD":o.kind==="extract"?"EXTRACT_HELD":"UC_HELD";throw new m(S,o,`${v(o)} is held by ${r.owner_sid} (${r.verb})`,{owner_sid:r.owner_sid,pid:r.pid,ts:r.ts,verb:r.verb,alive:P(r.pid)})}return W(c,r?.nonce,n)&&N({type:"lock_steal",key:v(o),stale_owner:r?.owner_sid??"corrupt",by:i,ts:l.toISOString()}),f(o,d,s+1)}}function k(o,d){let s=!1;return{keys:d,assertHeld(){for(let{key:c,sk:n}of o){let t=y.get(n),r=t?p(t.path):null;if(!t||r===null||r.nonce!==t.nonce)throw new m("LOCK_LOST",c,`${v(c)} grant was taken over or removed`)}},touch(){for(let{sk:c}of o){let n=y.get(c);if(!n)continue;let t=p(n.path);t!==null&&t.nonce===n.nonce&&_(n.path,JSON.stringify({...t,ts:E(a).toISOString()})+`
|
|
4
|
-
`,{mode:384})}},release(){if(!s){s=!0;for(let{sk:c}of[...o].reverse()){let n=y.get(c);if(n&&(n.count-=1,n.count<=0)){y.delete(c);let t=p(n.path);t!==null&&t.nonce===n.nonce&&h(n.path,{force:!0})}}}}}}function w(o,d){let s=I(o),c=[];try{for(let n of s){let t=u(n),r=y.get(t);if(r)r.count+=1;else{let l=f(n,{owner_sid:i,pid:process.pid,ts:E(a).toISOString(),verb:d.verb??"unknown",hold:d.hold,...n.kind==="uc"?{logical_display:n.id.toUpperCase()}:{}});y.set(t,{nonce:l,count:1,path:T(e,n),key:n})}c.push({key:n,sk:t})}return k(c,s)}catch(n){for(let{sk:t}of[...c].reverse()){let r=y.get(t);if(r&&(r.count-=1,r.count<=0)){y.delete(t);let l=p(r.path);l!==null&&l.nonce===r.nonce&&h(r.path,{force:!0})}}throw n}}return{acquire:w,tryAcquire(o,d){try{return w(o,d)}catch(s){if(s instanceof m&&(s.code==="UC_HELD"||s.code==="CONTEXT_HELD"||s.code==="EXTRACT_HELD"))return{contended:s};throw s}},holder(o){return p(T(e,o))},async wait(o,d){let s=T(e,o);C(H(e),{recursive:!0});let c=g(H(e),`${x(o)}.${i}.${process.pid}.json`);try{_(c,JSON.stringify({sid:i,pid:process.pid,ts:E(a).toISOString()})+`
|
|
5
|
-
`,{mode:384})}catch{}let n=Date.now()+d.timeoutMs,t=null,r=null;try{try{t=F(L(e),()=>{r?.()}),t.on("error",()=>{r?.(),t=null})}catch{t=null}for(;;){if(d.signal?.aborted)return"cancelled";let l=p(s);if(l===null||G(l,E(a)))return"free";let S=n-Date.now();if(S<=0)return"timeout";await new Promise(b=>{r=b;let A=setTimeout(b,Math.min(t?250:100,Math.max(1,S)));d.signal?.addEventListener?.("abort",()=>{clearTimeout(A),b()},{once:!0})}),r=null}}finally{t?.close(),h(c,{force:!0})}},async withKeySerialized(o,d){let c=I(o).map(l=>`${e}|${x(l)}`),n=c.map(l=>O.get(l)??Promise.resolve()),t,r=new Promise(l=>{t=l});for(let l of c)O.set(l,r);await Promise.all(n);try{return await d()}finally{t();for(let l of c)O.get(l)===r&&O.delete(l)}},releaseAll(o){let d=`${e}|${o}|`;for(let[s,c]of[...y]){if(!s.startsWith(d))continue;y.delete(s);let n=p(c.path);n!==null&&n.nonce===c.nonce&&h(c.path,{force:!0})}}}}function Y(e,i){let a=e.resolve(i);if(a===null)return{key:{kind:"uc",id:i.toLowerCase()},display:i};let u=e.displayNameOf(a.tip)??e.displayNameOf(a.cid);if(u!==null&&/^uc-\d+$/i.test(u))return{key:{kind:"uc",id:u.toLowerCase()},display:u.toUpperCase()};let f=new Map;for(let[d,s]of e.superseded)typeof s=="string"&&f.set(s,d);let k=a.cid,w=new Set;for(;f.has(k)&&!w.has(k);)w.add(k),k=f.get(k);let o=k.slice(0,12);return{key:{kind:"uc",id:o},display:u??o}}function Z(e){let i=L(e);if(!J(i))return[];let a=[];for(let u of X(i)){if(!u.endsWith(".lock"))continue;let f=p(g(i,u));f!==null&&a.push({key:u.replace(/\.lock$/,""),grant:f})}return a}export{m as a,P as b,G as c,H as d,I as e,V as f,Y as g,Z as h};
|
package/dist/chunk-FY7TCYPK.js
DELETED
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { createRequire } from 'module'; const require = createRequire(import.meta.url);
|
|
2
|
-
import{F as I,L,p as V}from"./chunk-RDHWNSDP.js";var N="ckpt/1";var B="checkpoints",P="base.json",y=t=>`delta-${t}.json`,w=t=>`full-${t}.json`,oe=["turn","ask","final"],ae=["extract","design","walk"];function _(t){return typeof t=="object"&&t!==null&&!Array.isArray(t)}function x(t){return Array.isArray(t)&&t.every(n=>typeof n=="string")}function H(t){let n=[],e=(r,a)=>{r||n.push(a)};if(!_(t))return{ok:!1,errors:["record: not an object"]};e(t.schema===N,`schema: expected "${N}"`);let s=t.kind;if(s==="base")e(typeof t.sid=="string"&&t.sid.length>0,"base.sid: non-empty string"),e(typeof t.verb=="string"&&ae.includes(t.verb),"base.verb: extract|design|walk"),e(typeof t.mode=="string","base.mode: string"),e(typeof t.created_at=="string","base.created_at: string"),e(_(t.run_config),"base.run_config: object"),_(t.run_config)&&e(!("resume"in t.run_config),"base.run_config: must not carry `resume`"),e(typeof t.conv_source=="string",'base.conv_source: string ("" when absent)'),e(typeof t.store_watermark=="string"||t.store_watermark===null,"base.store_watermark: string | null (null = genesis)");else if(s==="delta"||s==="full"){e(typeof t.sid=="string"&&t.sid.length>0,"delta.sid: non-empty string"),e(Number.isInteger(t.seq)&&t.seq>=1,"delta.seq: integer \u2265 1"),e(Number.isInteger(t.turn_id),"delta.turn_id: integer"),e(typeof t.at=="string"&&oe.includes(t.at),"delta.at: turn|ask|final"),e(typeof t.ts=="string","delta.ts: string");let r=t.agent;if(_(r)){e(Number.isInteger(r.agent_state_schema),"agent.agent_state_schema: integer"),e(Array.isArray(r.delta_items),"agent.delta_items: array"),e(_(r.binding),"agent.binding: object");let o=r.usage_total;e(_(o)&&typeof o.input_tokens=="number"&&typeof o.output_tokens=="number"&&typeof o.credits=="number","agent.usage_total: {input_tokens, output_tokens, credits} numbers"),r.base_fingerprint!==void 0&&e(typeof r.base_fingerprint=="string","agent.base_fingerprint: string when present"),s==="full"&&e(typeof r.base_fingerprint=="string","full: agent.base_fingerprint required")}else n.push("delta.agent: object");let a=t.kane;if(_(a)){e(x(a.applied_events),"kane.applied_events: string[]"),e(x(a.held_receipts),"kane.held_receipts: string[]");let o=a.pending;e(_(o)&&Array.isArray(o.questions)&&Array.isArray(o.proposals),"kane.pending: {questions[], proposals[]}"),e(Array.isArray(a.parent_asks),"kane.parent_asks: array"),e(_(a.read_basis),"kane.read_basis: object");let p=a.corpus_cursor;e(_(p)&&x(p.remaining),"kane.corpus_cursor: {remaining: string[]}"),e(typeof a.store_watermark=="string"||a.store_watermark===null,"kane.store_watermark: string | null (null = genesis)"),a.ingest_registry!==void 0&&e(Array.isArray(a.ingest_registry)&&a.ingest_registry.every(i=>_(i)&&typeof i.ref=="string"&&typeof i.entered_at=="string"),"kane.ingest_registry: [{ref, entered_at, consumed?}]"),a.ingest_schedule!==void 0&&e(Array.isArray(a.ingest_schedule)&&a.ingest_schedule.every(i=>_(i)&&typeof i.source_id=="string"&&typeof i.cid=="string"&&["pending","done","skipped"].includes(String(i.status))),"kane.ingest_schedule: [{source_id, cid, status}]")}else n.push("delta.kane: object")}else n.push('kind: expected "base" | "delta" | "full"');return{ok:n.length===0,errors:n}}import{closeSync as U,existsSync as Z,fsyncSync as Y,mkdirSync as ee,openSync as G,readFileSync as te,readdirSync as ne,renameSync as ce,rmSync as K,statSync as pe,writeFileSync as de}from"fs";import{join as k}from"path";var le=3,we=600*1e3,A=class extends Error{constructor(e,s){super(`${e}: ${s}`);this.code=e}},S=class extends Error{constructor(n){super(`CHECKPOINT_WRITE: ${n}`)}},j=class extends S{},E=(t,n)=>k(t,"sessions",n,B),ue=(t,n)=>k(t,"sessions",n,"state.json");function F(t,n,e){let s=`${t}.tmp-${process.pid}`,r=G(s,"w");try{de(r,n,{mode:384}),Y(r)}finally{U(r)}ce(s,t);try{let a=G(e,"r");Y(a),U(a)}catch{}}var ge=new Set,W=new Set;function J(t){let n=0;try{for(let e of ne(t))try{n+=pe(k(t,e)).size}catch{}}catch{return 0}return n}function z(t,n,e){for(let s of ge)try{s(t,n,e)}catch{}}var fe=new Set;function Se(t,n=new Date){for(let e of fe)try{e(t,n)}catch{}}function Ae(t,n,e){let s=E(t,n);ee(s,{recursive:!0});let r=k(s,P);Z(r)||F(r,JSON.stringify(e)+`
|
|
3
|
-
`,s)}function _e(t,n){let e;try{e=JSON.parse(n)}catch(r){throw new A("CHECKPOINT_CORRUPT",`${t}: ${r.message}`)}let s=H(e);if(!s.ok)throw new A("CHECKPOINT_CORRUPT",`${t}: ${s.errors.join("; ")}`);return e}function M(t,n,e){let s=k(E(t,n),e);return _e(e,te(s,"utf8"))}function re(t,n){let e=[],s=[],r=[];try{r=ne(E(t,n))}catch{return{deltas:e,fulls:s}}for(let a of r){let o=/^delta-(\d+)\.json$/.exec(a);o&&e.push(Number(o[1]));let p=/^full-(\d+)\.json$/.exec(a);p&&s.push(Number(p[1]))}return e.sort((a,o)=>a-o),s.sort((a,o)=>a-o),{deltas:e,fulls:s}}function ke(t,n){try{return JSON.parse(te(ue(t,n),"utf8")).checkpoint??null}catch{return null}}function se(t,n,e){let s=[],r,a=0;if(e.full_seq!==null){let i=M(t,n,w(e.full_seq));s.push(i),r=i.agent.base_fingerprint,a=e.full_seq}let o;for(let i=a+1;i<=e.seq;i++)try{let d=M(t,n,y(i));s.push(d),!r&&d.agent.base_fingerprint&&(r=d.agent.base_fingerprint)}catch(d){if(d instanceof A&&d.code==="CHECKPOINT_CORRUPT"){o={resumableAt:i-1,turnsLost:e.seq-(i-1)};break}throw d}if(s.length===0)throw new A("CHECKPOINT_CORRUPT",`${n}: pointer names seq ${e.seq} but no chain records exist`);return{items:s.flatMap(i=>i.agent.delta_items),last:s[s.length-1],base_fingerprint:r,fallback:o}}function Re(t,n,e,s,r){let a=performance.now(),o=n.state.sid,p=n.state.checkpoint;if(p){if(e.seq<p.seq)throw new S(`seq regression: got ${e.seq}, pointer at ${p.seq} (${o})`);if(e.seq===p.seq){if(e.turn_id===p.turn_id&&e.at===p.at)return p;throw new S(`seq regression: seq ${e.seq} re-used with different metadata (turn ${e.turn_id}/${p.turn_id}, at ${e.at}/${p.at}) (${o})`)}}let i=E(t,o);ee(i,{recursive:!0});let d=(r?.now??(()=>new Date))(),b=d.toISOString(),u={schema:N,kind:"delta",sid:o,seq:e.seq,turn_id:e.turn_id,at:e.at,ts:b,agent:{agent_state_schema:e.agent_state_schema,delta_items:e.delta_items,binding:e.binding,usage_total:e.usage_total,...e.base_fingerprint!==void 0?{base_fingerprint:e.base_fingerprint}:{}},kane:s},m=Math.max(1,r?.retries??le),g=JSON.stringify(u)+`
|
|
4
|
-
`,O=!1;Buffer.byteLength(g)>524288&&!W.has(o)&&(W.add(o),O=!0,r?.onSoftCap?.("note: this session's checkpoints are getting large \u2014 long pasted inputs are kept verbatim; consider ingesting big documents as sources instead"));let R=!1,v;for(let c=0;c<m&&!R;c++)try{F(k(i,y(e.seq)),g,i),R=!0}catch(l){v=l}if(!R)throw new S(`delta-${e.seq} write failed after ${m} attempts: ${v?.message??"unknown"} (${o})`);let h=p?.full_seq??null,$=J(i)>67108864;if(e.seq%25===0||$){let c=[],l=e.base_fingerprint;if(p){let C=se(t,o,p);c=C.items,l=l??C.base_fingerprint}if(c=[...c,...e.delta_items],!l)throw new S(`compaction at seq ${e.seq}: no base_fingerprint anywhere in the chain (${o})`);let f={...u,kind:"full",agent:{...u.agent,delta_items:c,base_fingerprint:l}};F(k(i,w(e.seq)),JSON.stringify(f)+`
|
|
5
|
-
`,i),h=e.seq}let q={seq:e.seq,turn_id:e.turn_id,at:e.at,ts:b,full_seq:h};if(n.save({checkpoint:q}),h===e.seq){let{deltas:c,fulls:l}=re(t,o);for(let f of c)f<=h&&K(k(i,y(f)),{force:!0});for(let f of l)f<h&&K(k(i,w(f)),{force:!0})}let T=J(i);if($&&T>67108864)throw z(o,q,d),new j(`session ${o} checkpoint dir is ${Math.round(T/(1024*1024))}MB (cap ${Math.round(67108864/(1024*1024))}MB) even after compaction \u2014 pausing; resume in a fresh session or trim the conversation`);return z(o,q,d),r?.onStat?.({sid:o,seq:e.seq,persist_ms:performance.now()-a,bytes:Buffer.byteLength(g),dir_bytes:T,compacted:h===e.seq,soft_warned:O}),q}function Pe(t,n,e){let s=e?._readPointer??(()=>ke(t,n)),r=k(E(t,n),P);if(!Z(r))throw new A("CHECKPOINT_MISSING",`${n}: no ${P} \u2014 not a checkpoint session`);let a=M(t,n,P),o=i=>{let{deltas:d,fulls:b}=re(t,n);if(!i){let g=[...d.map(y),...b.map(w)];return{base:a,agent:null,kane:null,pointer:null,orphans:g}}let u=se(t,n,i),m=[...d.filter(g=>g>i.seq).map(y),...b.filter(g=>g>i.seq).map(w)];return{base:a,agent:{delta_items:u.items,binding:u.last.agent.binding,base_fingerprint:u.base_fingerprint,agent_state_schema:u.last.agent.agent_state_schema},kane:u.last.kane,pointer:i,orphans:m,...u.fallback?{fallback:u.fallback}:{}}},p=s();try{return o(p)}catch(i){if(!(i.code==="ENOENT"))throw i;return o(s())}}function Ee(t,n){let e=[];for(let s of I(t).records)if(s.sid===n)for(let r of s.event_ids??[])e.push(r);return e}function ve(t,n,e,s,r){let a=r.verb??"extract",o=I(t),p=0;if(e.store_watermark!==null){let c=o.hashes.indexOf(e.store_watermark);if(c===-1)throw new V(`watermark not in chain: ${e.store_watermark} names no record in this store (rebuilt or foreign?) \u2014 re-ground the session or abandon it`);p=c+1}let i=L(t,{seq:p,hash:e.store_watermark}).records,d=o.records.filter(c=>c.sid===n).map(c=>c.seq),b=c=>d.filter(l=>l<=c.seq).length,u=new Set(e.applied_events),m=0,g=[];for(let c of i){if(typeof c.sid!="string"){m+=1;continue}if(c.sid===n){if((c.event_ids??[]).length===0){m+=1;continue}g.push(c)}}m>0&&r.onNote?.(`reconcile: skipped ${m} store record(s) not attributable to this session (pre-sid grace)`);let O=r.ownActors??["extract-agent","design-agent","owner"],R=[],v=[];for(let c of g){let l=(c.event_ids??[]).filter(ie=>!u.has(ie));if(l.length===0)continue;v.push(...l);let f;try{f=r.composeReceipt(c,s,{verb:a,commitN:b(c),...r.ucRef?{ucRef:r.ucRef}:{},...r.typedBlockers?{typedBlockers:!0}:{},...r.ignoreGaps?.size?{ignoreGaps:r.ignoreGaps}:{}}).text}catch{f=`commit ${l[0]} at ${c.ts} \u2014 details unavailable (graph moved since)`}let C=c.review?.[0]?.by;C?.id&&!O.includes(C.id)&&(f+=`
|
|
6
|
-
(committed by ${C.kind}:${C.id} while this session was suspended)`),R.push(f)}let h=e.pending.proposals??[],$=h.filter(c=>typeof c.event_id=="string"&&s.appliedEvents.has(c.event_id)),T=h.filter(c=>!(typeof c.event_id=="string"&&s.appliedEvents.has(c.event_id))).filter(c=>c.state==="accepted-pending-commit");return{redeliverReceipts:R,recommit:T,prunedPending:$,newlyApplied:v,skippedNoSid:m}}function qe(t,n,e){let s=E(t,n);for(let r of e)/^(?:delta|full)-\d+\.json$/.test(r)&&K(k(s,r),{force:!0})}export{N as a,B as b,P as c,Se as d,Ae as e,Re as f,Pe as g,Ee as h,ve as i,qe as j};
|