@testmuai/kane-cli 0.10.0-rc.1 → 0.10.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/ChatSurface-XUV3EQPZ.js +2 -0
- package/dist/{ChromeProfilePicker-CRKQEFYD.js → ChromeProfilePicker-FWPUDKD6.js} +1 -1
- package/dist/{CliFeedbackPrompt-M7BMWLKK.js → CliFeedbackPrompt-D5L2DO6A.js} +1 -1
- package/dist/{CliUploadProgress-OP7DXMC2.js → CliUploadProgress-HQX57WE6.js} +1 -1
- package/dist/{ConfigView-XI74BCCH.js → ConfigView-DGQXKEON.js} +1 -1
- package/dist/EvidenceViewOffer-EIANIYN7.js +2 -0
- package/dist/FolderPicker-XOA7FTHF.js +2 -0
- package/dist/InfoBox-OBH7SUGC.js +2 -0
- package/dist/{LinksBox-PNSESNCU.js → LinksBox-WZ4RAMSH.js} +1 -1
- package/dist/{ProfilesView-PYDZZHKO.js → ProfilesView-AGRNPGSW.js} +1 -1
- package/dist/ProjectPicker-6KRLKV4U.js +2 -0
- package/dist/SaveSessionPrompt-J2OPDEOO.js +2 -0
- package/dist/SingleShotApp-QI4B2TSL.js +2 -0
- package/dist/{SummaryBox-FALOODAQ.js → SummaryBox-XQJUZBAN.js} +1 -1
- package/dist/TestMdRunView-I4MV54FB.js +2 -0
- package/dist/TestrunEvidenceTable-WEIUSW3E.js +2 -0
- package/dist/{WhoamiView-6WXGRANY.js → WhoamiView-JQCURK2M.js} +1 -1
- package/dist/{app-download-RXVZB6MM.js → app-download-OU6AGH2X.js} +1 -1
- package/dist/{assurance-job-C3TXZGLL.js → assurance-job-ZI3L6I4F.js} +1 -1
- package/dist/{binary-DJCDMGPX.js → binary-S5YL5GJD.js} +1 -1
- package/dist/bind-LIV72SEZ.js +2 -0
- package/dist/bootstrap-3V6TOO6I.js +2 -0
- package/dist/{bridge-T6QMYKED.js → bridge-SDEP7Y33.js} +1 -1
- package/dist/{catalog-RRQF4TCA.js → catalog-I3PC6LT6.js} +1 -1
- package/dist/catalog-client-WKYG3JN6.js +2 -0
- package/dist/{changelog-GBEVIUFJ.js → changelog-IHNWFYWY.js} +1 -1
- package/dist/chat-committer-FM5NG46O.js +2 -0
- package/dist/{chat-controller-XINCDH6Z.js → chat-controller-FWFQVZTB.js} +1 -1
- package/dist/child-H2YSDFCG.js +2 -0
- package/dist/{chunk-QDFY5GGO.js → chunk-252GEI3H.js} +1 -1
- package/dist/{chunk-TNORODUF.js → chunk-2B75UL7Y.js} +1 -1
- package/dist/{chunk-B2HXPGIZ.js → chunk-2EVP636F.js} +17 -17
- package/dist/{chunk-7XBNMOH4.js → chunk-2GE5X2A5.js} +1 -1
- package/dist/{chunk-NWBLYMH7.js → chunk-2L3A5NKZ.js} +1 -1
- package/dist/{chunk-2OOFURWD.js → chunk-2N75WO7Y.js} +1 -1
- package/dist/{chunk-LRXBJTD4.js → chunk-2PZKMT3I.js} +1 -1
- package/dist/{chunk-N3TCNZSX.js → chunk-2SY2NCOP.js} +1 -1
- package/dist/{chunk-Q3C6NDGI.js → chunk-32Y6QVFG.js} +1 -1
- package/dist/{chunk-QS5ZJFGF.js → chunk-3OVFKUXV.js} +1 -1
- package/dist/{chunk-DHQ4SQWA.js → chunk-3T2TYDPT.js} +1 -1
- package/dist/{chunk-RG372DON.js → chunk-3UHPVQLU.js} +1 -1
- package/dist/{chunk-WYSZ6TPW.js → chunk-3ZPEQDXZ.js} +10 -9
- package/dist/{chunk-XJ7HCXKW.js → chunk-436FZ4KG.js} +1 -1
- package/dist/{chunk-6U7ID777.js → chunk-4523YDTG.js} +1 -1
- package/dist/{chunk-T7H4LBFK.js → chunk-45URQUAK.js} +1 -1
- package/dist/{chunk-4D5PC6QE.js → chunk-4BUEOKFV.js} +1 -1
- package/dist/{chunk-MII3JOO3.js → chunk-4JWJH6TB.js} +1 -1
- package/dist/{chunk-WEM3MOAL.js → chunk-4MNSP4EO.js} +1 -1
- package/dist/{chunk-ZFMRQ57Y.js → chunk-4NUSW4A2.js} +1 -1
- package/dist/{chunk-FSYOTRMC.js → chunk-4R4YUOVY.js} +1 -1
- package/dist/{chunk-T4AVLJCW.js → chunk-4SJAOAYY.js} +1 -1
- package/dist/{chunk-SMTBOSEJ.js → chunk-52VCA4K2.js} +1 -1
- package/dist/{chunk-672CQECV.js → chunk-567D5ZTO.js} +7 -7
- package/dist/{chunk-M6MBMRFR.js → chunk-5IO5ZC4S.js} +1 -1
- package/dist/{chunk-LSDJOVWW.js → chunk-5R3ODQHH.js} +1 -1
- package/dist/{chunk-I2KOGINW.js → chunk-5T6II7VN.js} +1 -1
- package/dist/{chunk-DDJNYQBH.js → chunk-65BG6GAE.js} +1 -1
- package/dist/{chunk-S53AQU7R.js → chunk-6DZ7LVOG.js} +1 -1
- package/dist/chunk-6K5BEEAJ.js +2 -0
- package/dist/{chunk-42PALMW2.js → chunk-6TNLITJO.js} +1 -1
- package/dist/{chunk-A6TJOZ24.js → chunk-7C4IEL5V.js} +1 -1
- package/dist/{chunk-PUVMC4PX.js → chunk-7V34ZMMS.js} +1 -1
- package/dist/{chunk-SONMD3W5.js → chunk-7ZJWUWSN.js} +1 -1
- package/dist/{chunk-OVNRRI4E.js → chunk-A3TCFSCK.js} +1 -1
- package/dist/{chunk-BJJUKB5K.js → chunk-A4BB6GLN.js} +1 -1
- package/dist/{chunk-V7S6S5W3.js → chunk-AG5XJWEV.js} +1 -1
- package/dist/{chunk-VYHT2IET.js → chunk-AGXAJ2II.js} +1 -1
- package/dist/{chunk-6UVIY56J.js → chunk-AIGQCMGY.js} +1 -1
- package/dist/{chunk-RX6776AI.js → chunk-AU26ZZTX.js} +1 -1
- package/dist/{chunk-OEWYXCTA.js → chunk-AUBSLPJZ.js} +1 -1
- package/dist/{chunk-6LIC2R22.js → chunk-B2WFW74J.js} +1 -1
- package/dist/{chunk-NXRF7FFS.js → chunk-B7JLM3IX.js} +1 -1
- package/dist/{chunk-QNLVC5ZB.js → chunk-BRVIK3BU.js} +1 -1
- package/dist/{chunk-WI7K6VKQ.js → chunk-BY2B4YJN.js} +1 -1
- package/dist/{chunk-DNGOT65K.js → chunk-CBVHP7JB.js} +1 -1
- package/dist/{chunk-ZFM77AQU.js → chunk-CJE7PKRV.js} +1 -1
- package/dist/{chunk-AA674WLL.js → chunk-CJQUVHHS.js} +1 -1
- package/dist/{chunk-OFSDB7B4.js → chunk-COJINPOK.js} +2 -2
- package/dist/{chunk-IBBD36FQ.js → chunk-D6CS62O7.js} +1 -1
- package/dist/{chunk-252FWF2G.js → chunk-DBTMKBHU.js} +1 -1
- package/dist/{chunk-QCKA665H.js → chunk-DHYGCHKB.js} +1 -1
- package/dist/{chunk-TW63WWEN.js → chunk-DTYT6KBO.js} +1 -1
- package/dist/{chunk-QHRUBG7J.js → chunk-EC5IP5HZ.js} +1 -1
- package/dist/{chunk-35ECWCCK.js → chunk-EH43VWVR.js} +1 -1
- package/dist/{chunk-HQ2E2XCU.js → chunk-ENG2UTMX.js} +1 -1
- package/dist/{chunk-BZVNI44O.js → chunk-EPJ5SJL2.js} +2 -2
- package/dist/{chunk-F3U6T4YD.js → chunk-EQWMOGLO.js} +9 -9
- package/dist/{chunk-OF7WPCTQ.js → chunk-EVZLINBN.js} +1 -1
- package/dist/{chunk-44B6THYK.js → chunk-EX6ORR7P.js} +1 -1
- package/dist/{chunk-UAWWLLTI.js → chunk-FBQ7PQJV.js} +1 -1
- package/dist/{chunk-UALJTPSA.js → chunk-FLOQ5NZL.js} +2 -2
- package/dist/{chunk-LCSJ7GOG.js → chunk-FPPVNF53.js} +1 -1
- package/dist/{chunk-5BUIIFLC.js → chunk-FPVGA6XT.js} +1 -1
- package/dist/{chunk-IXW7FOGX.js → chunk-FVYIV36L.js} +1 -1
- package/dist/chunk-FYCD765R.js +161 -0
- package/dist/{chunk-AVI5H4UM.js → chunk-G2KTWFMU.js} +1 -1
- package/dist/{chunk-CPBBYNL7.js → chunk-G3CYFCSR.js} +1 -1
- package/dist/{chunk-JNSWKGTB.js → chunk-G3J4XY3Z.js} +1 -1
- package/dist/{chunk-IMDMRJQ6.js → chunk-GET4DINR.js} +2 -2
- package/dist/{chunk-54XA5MZH.js → chunk-GGS3ATPB.js} +1 -1
- package/dist/{chunk-MGNRNLBE.js → chunk-GGV336P5.js} +1 -1
- package/dist/{chunk-OQ5G773E.js → chunk-GI2JPIX5.js} +1 -1
- package/dist/{chunk-HAW5WEKT.js → chunk-GRO6DLN3.js} +1 -1
- package/dist/{chunk-LRS5MGBY.js → chunk-GXMD23XB.js} +1 -1
- package/dist/chunk-GYDJO32R.js +2 -0
- package/dist/{chunk-W7FLXW6Q.js → chunk-H4KPNGY4.js} +1 -1
- package/dist/{chunk-Y4T4SLDO.js → chunk-HBVHIEPB.js} +1 -1
- package/dist/{chunk-EF47KRUK.js → chunk-HGVM2OZU.js} +1 -1
- package/dist/{chunk-DD5TULWQ.js → chunk-HMQ5M4JJ.js} +1 -1
- package/dist/{chunk-ZTHYAHDN.js → chunk-I2VU2DTS.js} +1 -1
- package/dist/{chunk-7NCJMWFX.js → chunk-J4LQAT5P.js} +1 -1
- package/dist/{chunk-ZZP5SHUV.js → chunk-JCSVBD4F.js} +1 -1
- package/dist/{chunk-57MDWTON.js → chunk-JFBEHCJN.js} +1 -1
- package/dist/{chunk-JQSLUGD4.js → chunk-JGLADDRH.js} +1 -1
- package/dist/{chunk-JPYW6U4D.js → chunk-JOCEZK2M.js} +1 -1
- package/dist/{chunk-7LKCWO2R.js → chunk-JQ7ZZQXC.js} +3 -3
- package/dist/{chunk-QQ4TKLWP.js → chunk-JRSEAXFE.js} +1 -1
- package/dist/{chunk-2IZRPMZN.js → chunk-JSLKCCD2.js} +1 -1
- package/dist/{chunk-H3HHSTEK.js → chunk-JT6WLJSV.js} +1 -1
- package/dist/{chunk-4LPX2OLV.js → chunk-JTJ7IPNI.js} +1 -1
- package/dist/{chunk-2NFS4KE4.js → chunk-JX5NVKTV.js} +1 -1
- package/dist/{chunk-6NWT2TEJ.js → chunk-K2PLULJD.js} +1 -1
- package/dist/{chunk-SWMTXMKB.js → chunk-K3OSK6PB.js} +1 -1
- package/dist/{chunk-3GXN6VF6.js → chunk-KDR662D2.js} +1 -1
- package/dist/{chunk-NLZZLANH.js → chunk-KRRZCY7U.js} +1 -1
- package/dist/{chunk-NDEI7R4K.js → chunk-LHQUCRCH.js} +1 -1
- package/dist/{chunk-WOSANGV6.js → chunk-LNHBZEDC.js} +1 -1
- package/dist/{chunk-PZA3BSOE.js → chunk-LXM7VHYN.js} +1 -1
- package/dist/{chunk-LNNWCBPQ.js → chunk-MHB6DMKZ.js} +1 -1
- package/dist/{chunk-NFRA64NU.js → chunk-MJKRJGER.js} +1 -1
- package/dist/{chunk-BVO4C5F2.js → chunk-MKPDF26Q.js} +1 -1
- package/dist/{chunk-VLDCHFXF.js → chunk-MPEIMWQI.js} +1 -1
- package/dist/{chunk-YIKF4ERQ.js → chunk-MW2WNYJO.js} +2 -2
- package/dist/{chunk-MYVKUJGS.js → chunk-N3KTLWJL.js} +1 -1
- package/dist/{chunk-XIPKSXRQ.js → chunk-NJCN6LP5.js} +6 -6
- package/dist/{chunk-2S3W2JT3.js → chunk-NOFJXCYP.js} +1 -1
- package/dist/{chunk-3UVSAAES.js → chunk-NTXFPNAP.js} +1 -1
- package/dist/{chunk-RW3Z2HMB.js → chunk-ONZ2CSTZ.js} +1 -1
- package/dist/{chunk-UYDHOHSZ.js → chunk-OR2B6T3B.js} +1 -1
- package/dist/{chunk-UUJIGOEO.js → chunk-ORNVIEUA.js} +1 -1
- package/dist/{chunk-R7KXAISS.js → chunk-P2LDAW3C.js} +1 -1
- package/dist/{chunk-T3HEJASG.js → chunk-PBWYQR5I.js} +1 -1
- package/dist/{chunk-O3HHTKZ5.js → chunk-PCDIEYV6.js} +1 -1
- package/dist/{chunk-EZN7CF45.js → chunk-PL3SG3M2.js} +1 -1
- package/dist/{chunk-SA6IKFFD.js → chunk-PQXYHI5W.js} +1 -1
- package/dist/{chunk-JD52IXON.js → chunk-PTISAIZW.js} +1 -1
- package/dist/{chunk-XZYA7DNH.js → chunk-PVN64537.js} +1 -1
- package/dist/{chunk-GZFLJORM.js → chunk-QECTIQAC.js} +1 -1
- package/dist/chunk-QMOGBKJM.js +2 -0
- package/dist/{chunk-L4UVUFL6.js → chunk-QQI6N3FO.js} +1 -1
- package/dist/{chunk-7RWP4Y3H.js → chunk-QVP4FSKT.js} +1 -1
- package/dist/{chunk-2SWSVJUP.js → chunk-QWZJ5QDO.js} +2 -2
- package/dist/{chunk-RX47NRSM.js → chunk-RARD6TC6.js} +1 -1
- package/dist/chunk-RDH3E25Q.js +27 -0
- package/dist/{chunk-AZLNLHUA.js → chunk-RLOJH5O6.js} +1 -1
- package/dist/{chunk-RPRXRKKR.js → chunk-RQKMSNEU.js} +1 -1
- package/dist/{chunk-R4JUKTDO.js → chunk-SB6P5EQH.js} +1 -1
- package/dist/{chunk-V5JGXOV7.js → chunk-SBR6D6GS.js} +1 -1
- package/dist/{chunk-W3OVSDBN.js → chunk-TLOYTGVT.js} +5 -5
- package/dist/{chunk-OZNBTSW5.js → chunk-TZVPDGJD.js} +1 -1
- package/dist/{chunk-D756UWY2.js → chunk-U7NRZBB5.js} +1 -1
- package/dist/{chunk-72RC7JSA.js → chunk-UEPJ26X2.js} +1 -1
- package/dist/chunk-UJLULWSR.js +21 -0
- package/dist/{chunk-7RPKHKA3.js → chunk-ULGBK4NS.js} +1 -1
- package/dist/{chunk-VQLH63X7.js → chunk-UNWPBMVM.js} +1 -1
- package/dist/chunk-URAYFJGM.js +87 -0
- package/dist/{chunk-FIP5L6LV.js → chunk-USJ3LUAL.js} +1 -1
- package/dist/chunk-UUWSULIM.js +101 -0
- package/dist/chunk-UX2CDUPE.js +9 -0
- package/dist/{chunk-AIXJYMSP.js → chunk-VA3BSIUQ.js} +1 -1
- package/dist/chunk-VQZOKTJ2.js +12 -0
- package/dist/{chunk-VG44B5JD.js → chunk-VVCZRCRD.js} +1 -1
- package/dist/{chunk-XBEYWXPV.js → chunk-VZA7BPCK.js} +1 -1
- package/dist/{chunk-NQTYWHPB.js → chunk-W3NWHWK2.js} +1 -1
- package/dist/{chunk-E6KSRQXL.js → chunk-WERIGVOH.js} +1 -1
- package/dist/{chunk-7EXDYXXD.js → chunk-WKZLK57W.js} +1 -1
- package/dist/{chunk-I5NSJBOZ.js → chunk-WQR2GYP7.js} +1 -1
- package/dist/{chunk-OAKYUBD3.js → chunk-WX4VGH5Q.js} +1 -1
- package/dist/{chunk-OJ33Q6DU.js → chunk-WZLDFEWR.js} +1 -1
- package/dist/{chunk-HFJSP4KD.js → chunk-X3J4CC27.js} +1 -1
- package/dist/chunk-XLQ4F6BI.js +9 -0
- package/dist/{chunk-D4FFXCX6.js → chunk-XMALVGH7.js} +2 -2
- package/dist/{chunk-AJQZ3ST5.js → chunk-Y3YULFCK.js} +1 -1
- package/dist/{chunk-RFIIM33J.js → chunk-YGMQXS2J.js} +1 -1
- package/dist/{chunk-RDP7GWSY.js → chunk-YH4VZVHJ.js} +1 -1
- package/dist/{chunk-ENL4XTQ2.js → chunk-YI4ESDAX.js} +1 -1
- package/dist/{chunk-K45BKGB5.js → chunk-YKL5H4K6.js} +1 -1
- package/dist/{chunk-74W4AOT2.js → chunk-YKOEABP2.js} +1 -1
- package/dist/{chunk-P7MSVLAH.js → chunk-YYVBE6W2.js} +1 -1
- package/dist/{chunk-432ZOE42.js → chunk-Z5BFCTHI.js} +2 -2
- package/dist/{chunk-UEE3RZN4.js → chunk-Z777GGHB.js} +1 -1
- package/dist/{chunk-FFL55I2M.js → chunk-ZGQM6KWN.js} +1 -1
- package/dist/{chunk-T6K2MEWP.js → chunk-ZI3X7DI2.js} +1 -1
- package/dist/{chunk-NWD54VV5.js → chunk-ZKPY3AXW.js} +1 -1
- package/dist/chunk-ZRDX2ARO.js +4 -0
- package/dist/{chunk-MNBGG4H3.js → chunk-ZTAZ2R5Z.js} +1 -1
- package/dist/{chunk-LKQFG4RW.js → chunk-ZY65IZJR.js} +1 -1
- package/dist/{chunk-LWJRSUE2.js → chunk-ZZNQIFFI.js} +1 -1
- package/dist/commands-QOORPTSI.js +2 -0
- package/dist/{committer-JGY66PFM.js → committer-26UZDYSA.js} +1 -1
- package/dist/{config-5ZOALGKE.js → config-B472DZSR.js} +1 -1
- package/dist/{cover-cmd-UA2SVIZZ.js → cover-cmd-3VO6QC5Y.js} +1 -1
- package/dist/{credentials-MRG452Y6.js → credentials-TLT3RQOO.js} +1 -1
- package/dist/{deps-bundle-FWINW4XM.js → deps-bundle-CMTIWBS5.js} +1 -1
- package/dist/{deps-resolve-IET4KIBO.js → deps-resolve-XLFZK74A.js} +1 -1
- package/dist/{design-chat-MM5PJD2N.js → design-chat-I7X3QDDY.js} +1 -1
- package/dist/design-committer-Y7R56RFZ.js +2 -0
- package/dist/design-headless-HUQOXLZB.js +2 -0
- package/dist/{design-remote-SPVRIY2H.js → design-remote-UDC5FP45.js} +2 -2
- package/dist/device-env-MMGISNHN.js +2 -0
- package/dist/dispatch-P2445PUU.js +2 -0
- package/dist/{doctor-VAX2BWQF.js → doctor-UHFCIM4B.js} +1 -1
- package/dist/{docx-convert-6IZO5P5K.js → docx-convert-N4KMLLKO.js} +1 -1
- package/dist/{dossier-NROC2MCY.js → dossier-6KMKEIXV.js} +1 -1
- package/dist/evidence-M3JTOJNL.js +2 -0
- package/dist/{evidence-presentation-YYTIDCBS.js → evidence-presentation-DV3DRB4S.js} +1 -1
- package/dist/evolve-cmd-K3JXACMN.js +2 -0
- package/dist/{evolve-remote-BGHULJTL.js → evolve-remote-CUDVV2O2.js} +1 -1
- package/dist/{exit-manager-EDHCETUN.js → exit-manager-EGWAZHCR.js} +1 -1
- package/dist/{explain-cmd-WOBGS6KX.js → explain-cmd-235TY7QX.js} +1 -1
- package/dist/{explain-cmd-VYAANFFZ.js → explain-cmd-R67B4YR3.js} +1 -1
- package/dist/explore-UDD5FHXW.js +2 -0
- package/dist/{explore-context-tty-JTZVZFOE.js → explore-context-tty-YXEFT32U.js} +1 -1
- package/dist/{explore-entry-5OGNLFAU.js → explore-entry-V6L5FSP4.js} +4 -4
- package/dist/{explore-live-2XZHUYFS.js → explore-live-N5VBLBUI.js} +1 -1
- package/dist/{explore-run-tty-LGTIK2NA.js → explore-run-tty-ZZQ33GNA.js} +2 -2
- package/dist/{extract-bind-NM2BBK4I.js → extract-bind-BTINHHE5.js} +3 -3
- package/dist/{extract-chat-HLQMJJIC.js → extract-chat-ABZ5S7UU.js} +1 -1
- package/dist/{extract-cmd-T2TSAC3N.js → extract-cmd-45OZETCM.js} +2 -2
- package/dist/extract-headless-ALEFAMVS.js +2 -0
- package/dist/{feeder-NY45UFJK.js → feeder-L55TH2NC.js} +1 -1
- package/dist/folder-flags-HTKJCXKB.js +2 -0
- package/dist/{gaps-cmd-PTSKPTF7.js → gaps-cmd-ROGQWK5X.js} +1 -1
- package/dist/{gate-WISOUTHQ.js → gate-QA5J7UZA.js} +1 -1
- package/dist/gate-XFFFX5ZF.js +2 -0
- package/dist/{generate-headless-JYZP6VXZ.js → generate-headless-DAH3HHRQ.js} +2 -2
- package/dist/hold-passthrough-K5PP26CP.js +2 -0
- package/dist/impact-cmd-3VFJAKYK.js +11 -0
- package/dist/index.js +171 -165
- package/dist/ingest-S5R736ZV.js +2 -0
- package/dist/{ingest-cmd-LHCBMO4Z.js → ingest-cmd-YSEH5EPU.js} +3 -3
- package/dist/ingest-remote-C6AP2Q7E.js +2 -0
- package/dist/install-B26Y2NU4.js +2 -0
- package/dist/{interactive-bind-5EJQUGKI.js → interactive-bind-P3GTFIZM.js} +4 -4
- package/dist/{interactive-remote-D77ULJGL.js → interactive-remote-PBRQHTAF.js} +2 -2
- package/dist/lane-7IEAE6AC.js +2 -0
- package/dist/lattice-auth-7EL4ET3P.js +2 -0
- package/dist/{lifecycle-cmd-7SM6UCMH.js → lifecycle-cmd-PUNFWKV5.js} +1 -1
- package/dist/{list-cmd-Z6FZXMFU.js → list-cmd-RD7YBF4S.js} +1 -1
- package/dist/list-commands-UZELZAB3.js +2 -0
- package/dist/{list-remote-WOPOC6KK.js → list-remote-KGKXPCQA.js} +1 -1
- package/dist/{locks-cmd-JJ2QNTNY.js → locks-cmd-LXZ6I4QG.js} +1 -1
- package/dist/{logical-ids-RXAQJZ3T.js → logical-ids-D5PFYY4C.js} +1 -1
- package/dist/login-flow-CHLGQGHK.js +2 -0
- package/dist/{maintenance-cmd-VRTGZVRE.js → maintenance-cmd-WRWBCP3R.js} +1 -1
- package/dist/{mobile-prompts-KNAHU64X.js → mobile-prompts-Z7NQHRGP.js} +1 -1
- package/dist/{onboarding-LGT6PMDZ.js → onboarding-ZP4XDYEO.js} +1 -1
- package/dist/{open-provider-OZAG6WZS.js → open-provider-U26BBVUE.js} +1 -1
- package/dist/pdf-convert-LMKOKLXT.js +2 -0
- package/dist/{persist-recorded-session-BX7II5P7.js → persist-recorded-session-4IRYG5CJ.js} +1 -1
- package/dist/phase-seed-2H6OXZXT.js +2 -0
- package/dist/pipeline-U7D25NST.js +2 -0
- package/dist/policy-commands-TY6WOR73.js +8 -0
- package/dist/prepare-target-EVL2QSXA.js +2 -0
- package/dist/{pull-cmd-6AL2WYHB.js → pull-cmd-QJQANBAW.js} +1 -1
- package/dist/pull-route-AIOTLA3D.js +2 -0
- package/dist/{readmodel-INMP6MNW.js → readmodel-KXCFPL2M.js} +1 -1
- package/dist/real-device-run-QODMDUXF.js +2 -0
- package/dist/{reconcile-cmd-R6H37SQR.js → reconcile-cmd-IJTQAJZX.js} +4 -4
- package/dist/reconcile-deps-2CTIFXDR.js +2 -0
- package/dist/{reconcile-remote-GWDV5CUT.js → reconcile-remote-23D6SXXT.js} +2 -2
- package/dist/{recording-banner-ACC67Q2U.js → recording-banner-MNRMMEX4.js} +1 -1
- package/dist/registry-MZYBLEW2.js +2 -0
- package/dist/remote-entry-DW2J56N4.js +2 -0
- package/dist/remote-mode-AFNCN6EE.js +4 -0
- package/dist/{remote-words-45USLRVN.js → remote-words-RCNFI2TQ.js} +1 -1
- package/dist/{require-project-folder-A3UDRELU.js → require-project-folder-7UH43GHI.js} +1 -1
- package/dist/{resolve-run-intent-ZGPSUBXV.js → resolve-run-intent-XEWFYMGN.js} +1 -1
- package/dist/{resolver-IPM6R7U4.js → resolver-QMPX6RBR.js} +1 -1
- package/dist/{revert-FHOBLZWF.js → revert-37346WLE.js} +1 -1
- package/dist/{review-cmd-NNT5C5RZ.js → review-cmd-2OECKNL5.js} +1 -1
- package/dist/run-JWOHNWA3.js +2 -0
- package/dist/run-QFJ6ZRVD.js +2 -0
- package/dist/run-remote-66QTUQ2M.js +2 -0
- package/dist/{run-startup-gate-NKRMKYBB.js → run-startup-gate-USQFSW47.js} +1 -1
- package/dist/run-test-md-7DRWCSQE.js +19 -0
- package/dist/session-worker.js +2 -2
- package/dist/{sessions-cmd-GYMETJHG.js → sessions-cmd-LQ2LZQOC.js} +2 -2
- package/dist/{sessions-remote-GI7GOBMH.js → sessions-remote-H7CQST42.js} +1 -1
- package/dist/{skill-installer-3QAVQGDH.js → skill-installer-LKYY6XFJ.js} +1 -1
- package/dist/{store-X6XPFSKF.js → store-KM5MG3XB.js} +1 -1
- package/dist/store-choice-4J2NN6OQ.js +2 -0
- package/dist/store-guard-34GG2TW2.js +2 -0
- package/dist/{store-site-KA2DNBGY.js → store-site-ZSFINU6C.js} +1 -1
- package/dist/stream-warnings-N4KVVWXV.js +2 -0
- package/dist/sync-cmd-3CHSWWWW.js +2 -0
- package/dist/{sync-setup-5NUCH6N3.js → sync-setup-QQXYO6R4.js} +1 -1
- package/dist/tcg-generate-IPD5FQUW.js +2 -0
- package/dist/{test-definition-VRI4YIYL.js → test-definition-53XNBEDE.js} +1 -1
- package/dist/testmd-actions-V7P7BMKE.js +2 -0
- package/dist/{testmd-sync-ACKCIOL3.js → testmd-sync-PQ4GFKHB.js} +1 -1
- package/dist/tms-client-XWCR7O7J.js +2 -0
- package/dist/token-refresh-LR33BKAB.js +2 -0
- package/dist/{use-case-ref-NE4X4MZN.js → use-case-ref-NA3IXGQW.js} +1 -1
- package/dist/{validate-basic-RE2WLIGQ.js → validate-basic-3DX3MMC7.js} +1 -1
- package/dist/verdicts-7GKZEDHV.js +2 -0
- package/dist/{version-check-4FJVZP3K.js → version-check-OV6AOVED.js} +1 -1
- package/dist/{view-cmd-N47BQZPD.js → view-cmd-QDKBBNIU.js} +1 -1
- package/dist/{walk-session-DA7QWXSW.js → walk-session-BAYYPIKN.js} +1 -1
- package/dist/with-telemetry-62LW4VFI.js +2 -0
- package/package.json +12 -12
- package/dist/ChatSurface-VPD5G67Q.js +0 -2
- package/dist/EvidenceViewOffer-HAAK6DS5.js +0 -2
- package/dist/FolderPicker-W5S6RFCP.js +0 -2
- package/dist/InfoBox-OWUEHV2D.js +0 -2
- package/dist/ProjectPicker-BGFCUGT5.js +0 -2
- package/dist/SaveSessionPrompt-SUJE54GS.js +0 -2
- package/dist/SingleShotApp-4TDXZEUA.js +0 -2
- package/dist/TestMdRunView-4GPRWHEU.js +0 -2
- package/dist/TestrunEvidenceTable-OBVQJ6IO.js +0 -2
- package/dist/bind-XVO4CQYV.js +0 -2
- package/dist/bootstrap-TY5RANJ7.js +0 -2
- package/dist/chat-committer-ZCSRJEUB.js +0 -2
- package/dist/child-G2GCW73X.js +0 -2
- package/dist/chunk-2OSFI33O.js +0 -97
- package/dist/chunk-65VANXOF.js +0 -147
- package/dist/chunk-C6HI6Y3S.js +0 -2
- package/dist/chunk-EXFDIVNI.js +0 -9
- package/dist/chunk-I6OQISK4.js +0 -2
- package/dist/chunk-MZOIHUVX.js +0 -27
- package/dist/chunk-NC7D7GOM.js +0 -21
- package/dist/chunk-QTZBVDPR.js +0 -12
- package/dist/chunk-SLKYD44Y.js +0 -2
- package/dist/design-committer-TRYP3LOZ.js +0 -2
- package/dist/design-headless-FZONCKHW.js +0 -2
- package/dist/device-env-LXJ65AVF.js +0 -2
- package/dist/dispatch-DVQ3H7EJ.js +0 -2
- package/dist/evidence-LVVK7ROT.js +0 -2
- package/dist/evolve-cmd-AGRKG7T3.js +0 -2
- package/dist/explore-LOKNOVNP.js +0 -2
- package/dist/extract-headless-OQTQ3FJK.js +0 -2
- package/dist/folder-flags-WXUR6OPJ.js +0 -2
- package/dist/gate-P57VP4E5.js +0 -2
- package/dist/hold-passthrough-IOWPVB4W.js +0 -2
- package/dist/ingest-PDGS5ZTL.js +0 -2
- package/dist/ingest-remote-D5TO5JQP.js +0 -2
- package/dist/install-Z6K2D2VY.js +0 -2
- package/dist/lane-AQYRIW24.js +0 -2
- package/dist/lattice-auth-74XGF77Y.js +0 -2
- package/dist/list-commands-CZYZ7GIG.js +0 -2
- package/dist/login-flow-2FZEOVHM.js +0 -2
- package/dist/pdf-convert-447ACUB3.js +0 -2
- package/dist/phase-seed-LCJ4WSYV.js +0 -2
- package/dist/pipeline-IXVTVRS5.js +0 -2
- package/dist/prepare-target-ULMKVKMC.js +0 -2
- package/dist/pull-route-TTVARJMV.js +0 -2
- package/dist/real-device-run-2LFS5WE2.js +0 -2
- package/dist/reconcile-deps-TWJ3FTSU.js +0 -2
- package/dist/registry-6IJYQXQC.js +0 -2
- package/dist/remote-entry-YL7O2NJQ.js +0 -2
- package/dist/remote-mode-7G6PLJCW.js +0 -4
- package/dist/run-5RQUCNYP.js +0 -2
- package/dist/run-PC5YO4AS.js +0 -2
- package/dist/run-remote-3AYYVPKX.js +0 -2
- package/dist/run-test-md-HE6DUWQR.js +0 -17
- package/dist/store-choice-RT73HAI7.js +0 -2
- package/dist/store-guard-SNWKLHQV.js +0 -2
- package/dist/stream-warnings-GEQKKJU7.js +0 -2
- package/dist/sync-cmd-NBPPDG3B.js +0 -2
- package/dist/tcg-generate-Z23CUISY.js +0 -2
- package/dist/testmd-actions-GH5BW5V5.js +0 -2
- package/dist/tms-client-NXAB6VJD.js +0 -2
- package/dist/token-refresh-4UCYAG6A.js +0 -2
- package/dist/verdicts-XK3GAUX3.js +0 -2
- package/dist/with-telemetry-7V4LY2BG.js +0 -2
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { createRequire } from 'module'; const require = createRequire(import.meta.url);
|
|
2
|
-
import{d as G,f as K,h as j}from"./chunk-
|
|
2
|
+
import{d as G,f as K,h as j}from"./chunk-VVCZRCRD.js";import{a as q,b as z,d as V,e as H}from"./chunk-YGMQXS2J.js";import{a as J,b as y,c as Q}from"./chunk-PQXYHI5W.js";import{a as N,b as L,c as O}from"./chunk-3T2TYDPT.js";import{d as B,f as $}from"./chunk-2N75WO7Y.js";import{a as E}from"./chunk-MMBBQ4OZ.js";import{b as R,c as I,j as U}from"./chunk-XMALVGH7.js";import{a as F}from"./chunk-TZXXJWHA.js";import{e as S}from"./chunk-Z7S3IWUX.js";import{n as h}from"./chunk-UJLULWSR.js";import{b as _,r as C,s as P}from"./chunk-A7RJQJNT.js";function W(e){return e.kind==="simulator"?e.id:e.virtualName??e.id}function X(e,r,o={}){let t={platform:e.platform,udid:e.id,target:e.kind};return r&&(t.app_package=r),o.noReset!==void 0&&(t.no_reset=o.noReset),o.appiumUrl&&(t.appium_url=o.appiumUrl),e.platform==="android"&&o.autoGrantPermissions!==void 0&&(t.auto_grant_permissions=o.autoGrantPermissions),e.platform==="ios"&&o.autoAcceptAlerts!==void 0&&(t.auto_accept_alerts=o.autoAcceptAlerts),t}function Y(e=process.env){let r=e.KANE_APPIUM_URL?.trim();return r||null}function m(e){return`${e.platform}|${W(e)}`}var g=new Map,Z=new Set;function ee(e){return Z.has(m(e))}function ye(e,r,o){r.state==="stopped"&&(g.has(m(r))||oe(e,r,o))}async function re(e,r,o){let t=g.get(m(r));return t?(o?.(`waiting for ${r.displayName} to finish booting\u2026`),t):oe(e,r,o)}function oe(e,r,o){let t=m(r),a=e.prepare(r,o);g.set(t,a),r.state==="stopped"&&a.then(()=>Z.add(t),()=>{});let n=()=>{g.get(t)===a&&g.delete(t)};return a.then(n,n),a.catch(()=>{}),a}import{basename as le}from"path";import{spawnSync as pe}from"child_process";async function de(e,r,o){if(!e.teardownPlan||!o.appPackage&&!o.shutdown)return;let t;try{t=await e.teardownPlan(r,o)}catch{return}t.length!==0&&h(`device:${r.id}`,()=>{G({udid:r.id,displayName:r.displayName});for(let a of t)try{pe(a.file,a.args,{timeout:3e4,stdio:"ignore"})}catch{}})}var te={emulator:[".apk"],simulator:[".zip"]};async function ce(e,r,o,t){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 n=await Q({appId:e.value,baseUrl:a.baseUrl,auth:a.auth,...te[o]?{accepts:te[o]}:{},...t?{onProgress:t}:{}}),s=x(n.path);if(!s||s.kind==="app_id")throw new Error(`${n.name} is not a build this CLI can install (from ${e.value}).`);return s}try{let a=new q,n=await V(e.value,a),s=new J;await s.find(n)||t?.(`copying ${le(e.value)} into the local app store\u2026`);let i=await s.put({key:n,sourcePath:e.value,source:"local"});return{...e,value:i.path}}catch{return e}}function ue(e){h(`appium:${e}`,()=>{j({deviceClass:e,owner:process.pid})})}var k=class extends Error{constructor(r){super(r),this.name="MobileHostUnsupportedError"}},v=class extends Error{constructor(o,t){super(o);this.doctorText=t;this.name="MobilePreflightError"}};async function ge(e,r,o){let t=o.cloudUpload,a=await H({path:e,type:r,env:t.env,orgId:t.orgId,userId:t.userId,auth:t.auth,baseUrl:t.baseUrl,...o.onProgress?{onProgress:o.onProgress}:{}});if(z(a)){o.onProgress?.(`app not uploaded \u2014 ${a.reason}`);return}return a.appId}var fe="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.",ae=C(_);function x(e){let r=e.trim();if(y(r))return{kind:"app_id",value:r};let o=P(r,ae);return o?{kind:o.slice(1),value:r}:null}function me(e){return!!e&&(P(e,ae)!==void 0||y(e.trim()))}function ve(e){return e.filter(r=>r.required&&r.status==="fail")}function be(e,r){return!!r&&S(e,r)}async function Ke(e){let r=F();if(!r.supported)throw new k(r.reason);let o=Y()??e.appiumUrl??e.defaults?.appium_url,t=!!(e.agent||!e.interactive),a=U(),n=!!E();t&&e.platform?.toLowerCase()!=="ios"&&!n&&((await a.status("emulator")).installed||await a.ensure("emulator",{automatic:!0,onProgress:e.onProgress}));let s=await N(e.platform,{appiumUrl:o});if(O(s)){let l=s.sections.flatMap(w=>ve(w.checks)).map(w=>w.label).join(", ");throw new v(`Mobile toolchain not ready (${l}). Run \`kane-cli doctor --target ${e.platform?.toLowerCase()==="ios"?"simulator":e.platform?.toLowerCase()==="android"?"emulator":"<emulator|simulator>"}\` for details.`,L(s))}let p=await $({device:e.device,platform:e.platform,defaultTarget:e.defaults?.default_target,interactive:e.interactive}),i;if(p.ok)i=p.target;else if(p.reason==="needs-picker"&&e.pickTarget){let l=await e.pickTarget(p.candidates);if(!l)throw new Error("Target selection cancelled");i=l}else throw new Error(p.message);let u=B(i.platform);if(!u)throw new Error(`No provider for platform "${i.platform}"`);let d=R(i);if(!d)throw new Error(`No managed dependencies serve ${i.platform} ${i.kind} targets yet.`);if(!(n&&i.platform.toLowerCase()==="android"))try{await a.ensure(d,{automatic:t,onProgress:e.onProgress})}catch(l){throw l instanceof I?new v(l.message,l.message):l}let ie=i.state!=="ready"||ee(i);i=await re(u,i,e.onProgress);let ne=await K(d,{...o?{appiumUrl:o}:{},device:{udid:i.id,displayName:i.displayName},onProgress:e.onProgress});ue(d);let D=be(i,e.defaults?.default_target)?e.defaults?.default_app:void 0,f=e.app??(me(D)?D:void 0);if(e.app&&!x(e.app))throw new Error(`${e.app}: ${fe}`);let c=f?x(f):null,M=c?await ce(c,e,d,e.onProgress):null,b=M?await u.ensureApp(i,M,e.onProgress):void 0,T=c?.kind==="app_id"?c.value:e.cloudUpload&&c&&f?await ge(c.value,d,e):void 0;await de(u,i,{shutdown:ie,...b?{appPackage:b}:{}});let se=X(i,b,{noReset:e.noReset??e.defaults?.no_reset,appiumUrl:ne.url,autoGrantPermissions:e.defaults?.auto_grant_permissions,autoAcceptAlerts:e.defaults?.auto_accept_alerts}),A=T??f;return{device:se,target:i,provider:u,...T?{appId:T}:{},...A?{appRef:A}:{}}}export{W as a,X as b,ye as c,re as d,k as e,v as f,fe as g,x as h,me as i,Ke as j};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { createRequire } from 'module'; const require = createRequire(import.meta.url);
|
|
2
|
-
import{c as d,d as p,e as g}from"./chunk-
|
|
2
|
+
import{c as d,d as p,e as g}from"./chunk-2SY2NCOP.js";import{b as m}from"./chunk-QMOGBKJM.js";import{mkdirSync as y,writeFileSync as o,existsSync as u,readFileSync as M}from"fs";import{join as a}from"path";var E={name:"remote-execution",version:"0.5.0",backendId:"hyper",kaneCompat:">=0.4.0",defaults:{runson:"mac",concurrency:1}},f={runson:"mac",concurrency:1,timeoutMinutes:120,mobile:{runson:"mac26",queueTimeout:300,appiumPort:4739,androidHome:"$HOME/android-sdk-shim",globalTimeout:90,testSuiteTimeout:90,testSuiteStep:45,ios:{runson:{}},realDevice:{runson:"linux"}}},v=`version: "0.1"
|
|
3
3
|
runson: {{runson}}
|
|
4
4
|
autosplit: true
|
|
5
5
|
concurrency: {{concurrency}}
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
import { createRequire } from 'module'; const require = createRequire(import.meta.url);
|
|
2
|
+
import{a as c,b as l,c as _}from"./chunk-VZ7KXRXB.js";import{a as y}from"./chunk-GGV336P5.js";import{a as v}from"./chunk-RZ4F3BHX.js";import{a as i,p as f}from"./chunk-QMOGBKJM.js";import{createHash as x}from"crypto";import{promises as o,readFileSync as A,writeFileSync as S,renameSync as N,mkdirSync as F}from"fs";import{dirname as T,join as u}from"path";var w=`# kane-cli metric catalog, version 1.
|
|
3
|
+
#
|
|
4
|
+
# Policies reference these as metrics.<name>. \`where\` and \`value\` expressions
|
|
5
|
+
# are CEL over \`test\` (one tests/*/result.yaml, parsed), \`file\` and \`run\`
|
|
6
|
+
# (run.yaml, parsed); \`expr\` is CEL over \`run\`, \`tests\`, \`totals\`, \`failures\`.
|
|
7
|
+
# A test's run_kind sits in its result.yaml environment on testrun packs and in
|
|
8
|
+
# run.yaml environment on single-test packs.
|
|
9
|
+
catalog: kane-cli
|
|
10
|
+
version: 1
|
|
11
|
+
min_producer: "0.8.10"
|
|
12
|
+
description: Metrics read from the files kane-cli writes into an evidence pack.
|
|
13
|
+
metrics:
|
|
14
|
+
# Tests whose steps contain no assert step. Analyze steps read a value and
|
|
15
|
+
# pass whatever they read, so they do not count as checks.
|
|
16
|
+
tests_without_checks:
|
|
17
|
+
type: count
|
|
18
|
+
unit: tests
|
|
19
|
+
label: Tests without checks
|
|
20
|
+
per_test: true
|
|
21
|
+
verify:
|
|
22
|
+
aggregate: count
|
|
23
|
+
where: "!test.steps.exists(s, has(s.kind) && s.kind == 'assert')"
|
|
24
|
+
merge: recompute
|
|
25
|
+
min_producer: "0.8.10"
|
|
26
|
+
# Tests that failed on replay and passed after adaptive heal re-authored them.
|
|
27
|
+
heal.healed_tests:
|
|
28
|
+
type: count
|
|
29
|
+
unit: tests
|
|
30
|
+
label: Healed tests
|
|
31
|
+
per_test: true
|
|
32
|
+
verify:
|
|
33
|
+
aggregate: count
|
|
34
|
+
where: "has(test.adaptive_heal) && has(test.adaptive_heal.outcome) && test.adaptive_heal.outcome == 'healed'"
|
|
35
|
+
merge: recompute
|
|
36
|
+
min_producer: "0.8.10"
|
|
37
|
+
# Tests that still failed after adaptive heal spent its retry budget.
|
|
38
|
+
heal.exhausted_tests:
|
|
39
|
+
type: count
|
|
40
|
+
unit: tests
|
|
41
|
+
label: Heal-exhausted tests
|
|
42
|
+
per_test: true
|
|
43
|
+
verify:
|
|
44
|
+
aggregate: count
|
|
45
|
+
where: "has(test.adaptive_heal) && has(test.adaptive_heal.outcome) && test.adaptive_heal.outcome == 'exhausted'"
|
|
46
|
+
merge: recompute
|
|
47
|
+
min_producer: "0.8.10"
|
|
48
|
+
# Steps adaptive heal re-authored, summed over the tests where a heal was
|
|
49
|
+
# triggered. Forced-author runs also write reauthored_steps but triggered
|
|
50
|
+
# is false there, so they are left out.
|
|
51
|
+
heal.reauthored_steps:
|
|
52
|
+
type: count
|
|
53
|
+
unit: steps
|
|
54
|
+
label: Re-authored steps
|
|
55
|
+
per_test: true
|
|
56
|
+
verify:
|
|
57
|
+
aggregate: sum
|
|
58
|
+
path: adaptive_heal.reauthored_steps
|
|
59
|
+
where: "has(test.adaptive_heal) && test.adaptive_heal.triggered && has(test.adaptive_heal.reauthored_steps)"
|
|
60
|
+
merge: recompute
|
|
61
|
+
min_producer: "0.8.10"
|
|
62
|
+
# Tests whose run_kind is not replay, so the verdict rests on an authoring
|
|
63
|
+
# run rather than a recorded one.
|
|
64
|
+
non_replay_tests:
|
|
65
|
+
type: count
|
|
66
|
+
unit: tests
|
|
67
|
+
label: Non-replay tests
|
|
68
|
+
per_test: true
|
|
69
|
+
verify:
|
|
70
|
+
aggregate: count
|
|
71
|
+
where: "(has(test.environment) && has(test.environment.run_kind) ? test.environment.run_kind : (has(run.environment.run_kind) ? run.environment.run_kind : 'author')) != 'replay'"
|
|
72
|
+
merge: recompute
|
|
73
|
+
min_producer: "0.8.10"
|
|
74
|
+
# Tests whose attempts disagreed, divided by all tests.
|
|
75
|
+
flaky_rate:
|
|
76
|
+
type: ratio
|
|
77
|
+
unit: fraction of tests
|
|
78
|
+
label: Flaky rate
|
|
79
|
+
range: [0, 1]
|
|
80
|
+
per_test: true
|
|
81
|
+
verify:
|
|
82
|
+
expr: "size(tests) == 0 ? 0.0 : double(tests.filter(t, has(t.flaky) && t.flaky == true).size()) / double(size(tests))"
|
|
83
|
+
merge: recompute
|
|
84
|
+
min_producer: "0.8.10"
|
|
85
|
+
`;var d="kane-cli",P=5e3,E=1;function p(n,e){let r;try{r=l(n)}catch{return null}if(!r||typeof r!="object")return null;let t=r;return t.catalog!==d||typeof t.version!="number"||!Number.isInteger(t.version)||t.version<1||!t.metrics||typeof t.metrics!="object"?null:{yaml:n,id:d,version:t.version,sha256:x("sha256").update(n).digest("hex"),source:e}}function R(){return p(w,"bundled")}function L(n){try{let e=JSON.parse(A(n,"utf-8"));if(e.wrapperVersion!==E||typeof e.yaml!="string")return null;let r=p(e.yaml,"cache");return r?{etag:typeof e.etag=="string"?e.etag:null,catalog:r}:null}catch{return null}}function O(n,e,r){try{F(T(n),{recursive:!0});let t={wrapperVersion:E,writtenByVersion:i,fetchedAt:Date.now(),etag:r,yaml:e},a=`${n}.tmp`;S(a,JSON.stringify(t,null,2)+`
|
|
86
|
+
`),N(a,n)}catch(t){process.stderr.write(`[evidence] Failed to save metric catalog cache: ${t instanceof Error?t.message:String(t)}
|
|
87
|
+
`)}}async function I(n,e={}){let r=e.cachePath??f(n),t=L(r),a=new AbortController,b=setTimeout(()=>a.abort(),P);try{let k=`${y(n).controllerBaseUrl}/public/evidence/catalogs/${d}?producer_version=${encodeURIComponent(i)}`,m={Accept:"application/yaml"};t?.etag&&(m["If-None-Match"]=t.etag);let s=await v(k,{headers:m,signal:a.signal});if(s.status===304&&t)return{...t.catalog,source:"controller"};if(s.ok){let h=await s.text(),g=p(h,"controller");if(g)return O(r,h,s.headers.get("ETag")),g}}catch{}finally{clearTimeout(b)}return t?.catalog??R()}var C=new Map;function G(n){let e=C.get(n);return e||(e=I(n),C.set(n,e)),e}async function J(n,e){await o.mkdir(u(n,"meta"),{recursive:!0}),await o.writeFile(u(n,"meta","metrics-catalog.yaml"),e.yaml);let r=u(n,"run.yaml"),t=l(await o.readFile(r,"utf8"),{schema:c});t.metrics_catalog={id:e.id,version:e.version,sha256:e.sha256,source:e.source},await o.writeFile(r,_(t,{lineWidth:-1,schema:c}))}export{p as a,R as b,I as c,G as d,J as e};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { createRequire } from 'module'; const require = createRequire(import.meta.url);
|
|
2
|
-
import{I as se,J as oe,L as R,M as E,N as ae,Na as k,a as ie,r as A}from"./chunk-UEE3RZN4.js";import{f as x,h as re}from"./chunk-KU3YHPWZ.js";import{a as J,d as X,h as B,i as Y,j as Q,k as V,l as Z,m as ee,n as te,o as F,p as ne}from"./chunk-PUVMC4PX.js";import{d as P}from"./chunk-B7ZX5HEN.js";import{existsSync as D,readFileSync as I,renameSync as $e,writeFileSync as Ee}from"fs";import{dirname as q,isAbsolute as T,resolve as N}from"path";var ve=new Set(["inline","testmd","testrun"]),ye=new Set(["inferred","authored","runtime-derived"]),C=new Set(["passed","failed","broken","skipped"]);function ce(t,e,n){if(n.facts.length===0)return{record:null,errors:[{code:"EMPTY_EXECUTIONS",detail:"a run with no designed units attaches no facts \u2014 skip the call"}]};let a=e;for(let s=0;;s++){let o=t.head(),c=t.serialize(o);if(!t.sameToken(t.parse(a.latestHash),o)){if(s>=3)return{record:null,errors:[{code:"STALE_BASIS",detail:`graph opened at ${String(a.latestHash)} but chain head is ${String(c)} \u2014 retry budget exhausted`}]};a=E(t);continue}let d=be(t,a,n);if(d!=="cas")return d;if(s>=3)return{record:null,errors:[{code:"STALE_BASIS",detail:"concurrent appends kept moving the head \u2014 retry budget exhausted"}]};a=E(t)}}function de(t,e){return ve.has(t.mode)?C.has(t.verdict)?ye.has(t.oracle_mode)?typeof t.drift_flag!="boolean"||typeof t.stale_at_run!="boolean"?[{code:"MISSING_FIELD",detail:`${e}: drift_flag and stale_at_run are required booleans`}]:!t.execution_id||!t.started_at||!t.definition_id_at_run?[{code:"MISSING_FIELD",detail:`${e}: execution_id, started_at and definition_id_at_run are required`}]:[]:[{code:"BAD_ORACLE_MODE",detail:`${e}: oracle_mode '${t.oracle_mode}' not in inferred|authored|runtime-derived`}]:[{code:"BAD_VERDICT",detail:`${e}: verdict '${t.verdict}' not in ${[...C].join("|")}`}]:[{code:"BAD_MODE",detail:`${e}: mode '${t.mode}' not in inline|testmd|testrun`}]}function ue(t,e,n,a){return{about:e,definition_id_at_run:t.definition_id_at_run,verdict:t.verdict,...n&&n.length?{per_ac:n}:{},drift_flag:t.drift_flag,oracle_mode:t.oracle_mode,stale_at_run:t.stale_at_run,...a.length?{unresolved_acs:a}:{},execution_id:t.execution_id,...t.evidence_id?{evidence_id:t.evidence_id}:{},...t.duration_ms!==void 0?{duration_ms:t.duration_ms}:{},started_at:t.started_at,mode:t.mode,local:t.local,...t.via_parent?{via_parent:t.via_parent}:{}}}function pe(t,e,n={}){if(!Array.isArray(e.facts)||e.facts.length===0)return{record:null,errors:[{code:"EMPTY_EXECUTIONS",detail:"parked line carries no facts"}]};for(let a=0;;a++){let s=E(t),o=e.facts.filter(r=>s.appliedEvents.has(r.event_id)).map(r=>r.event_id),c=e.facts.filter(r=>!s.appliedEvents.has(r.event_id));if(c.length===0)return{record:null,errors:null,applied:[],skipped:o,rejected:[]};let d=[],u=[],l=[],h=[];for(let r of c){let i=`executions[${r.ref}]`,f=[];if(!r.about_cid||!s.hasNode(r.about_cid))f.push({code:"UNKNOWN_REF",detail:`${i}: about_cid '${String(r.about_cid)}' is not in the graph \u2014 the pinned run-time target is gone`});else if(s.nodeLabel.get(r.about_cid)!==x.TEST)f.push({code:"ILLEGAL_TARGET",detail:`${i}: execution facts attach to tests \u2014 '${r.about_cid}' is a ${s.nodeLabel.get(r.about_cid)}`});else if(!r.event_id)f.push({code:"MISSING_FIELD",detail:`${i}: parked facts require event_id`});else{f.push(...de(r,i));for(let g of r.per_ac??[])C.has(g.verdict)||f.push({code:"BAD_VERDICT",detail:`${i}.per_ac['${g.ac_ref}']: verdict '${g.verdict}'`})}if(f.length>0){d.push({event_id:r.event_id??"",errors:f});continue}let p=[],m=[],v=[...r.unresolved_acs??[]];for(let g of r.per_ac??[]){let $=g.ac_cid&&s.hasNode(g.ac_cid)&&s.nodeLabel.get(g.ac_cid)===x.AC?g.ac_cid:null,y=$?null:s.resolve(g.ac_ref),_=$??(y?s.tipOf(y.cid):null);if(!_||!$&&(s.superseded.has(_)||s.nodeLabel.get(_)!==x.AC)){v.push(g.ac_ref);continue}p.push({ac_ref:s.nameOf.get(_)??g.ac_ref,ac_cid:_,verdict:g.verdict}),m.push(_)}u.push(ue(r,r.about_cid,p,v)),h.push({about_cid:r.about_cid,per_ac:m}),l.push(r.event_id)}if(u.length===0)return{record:null,errors:null,applied:[],skipped:o,rejected:d};try{let r=R(t,{ts:new Date().toISOString(),proposal_id:null,nodes:[],edges:[],review:[],supersessions:[],executions:u,event_ids:[...l].sort(),source_head_moves:{}},{returnWarnings:!0,graph:s,expectPrev:s.latestHash,intent:{v:1,verb:"parked",args:A({line:e}),pins:{facts:h}},busyRetry:{deadlineMs:5e3},provenance:n.provenance});return{record:r.record,errors:null,applied:l,skipped:o,rejected:d,...r.warnings?{warnings:r.warnings}:{}}}catch(r){if(!(r instanceof k))throw r;if(a>=3)return{record:null,errors:[{code:"STALE_BASIS",detail:"concurrent appends kept moving the head \u2014 parked replay retry budget exhausted (line stays queued)"}]}}}}function be(t,e,n){let a=[],s=[],o=[];for(let d of n.facts){let u=`executions[${d.ref}]`,l=n.pinned?null:e.resolve(d.ref),h=n.pinned?d.about_cid&&e.hasNode(d.about_cid)?d.about_cid:null:l?e.tipOf(l.cid):null;if(!h||!n.pinned&&e.superseded.has(h)){a.push({code:"UNKNOWN_REF",detail:`${u}: '${n.pinned?String(d.about_cid):d.ref}' is not a ${n.pinned?"":"live "}committed node`});continue}if(e.nodeLabel.get(h)!==x.TEST){a.push({code:"ILLEGAL_TARGET",detail:`${u}: execution facts attach to tests \u2014 '${d.ref}' is a ${e.nodeLabel.get(h)}`});continue}let r=de(d,u);if(r.length>0){a.push(...r);continue}let i=[],f=[];for(let p of d.per_ac??[]){let m=n.pinned?null:e.resolve(p.ac_ref),v=n.pinned?p.ac_cid&&e.hasNode(p.ac_cid)?p.ac_cid:null:m?e.tipOf(m.cid):null;if(!v||!n.pinned&&e.superseded.has(v)||e.nodeLabel.get(v)!==x.AC){a.push({code:"UNKNOWN_REF",detail:`${u}.per_ac: '${n.pinned?String(p.ac_cid):p.ac_ref}' is not a${n.pinned?"n":" live"} AC`});continue}if(!C.has(p.verdict)){a.push({code:"BAD_VERDICT",detail:`${u}.per_ac['${p.ac_ref}']: verdict '${p.verdict}'`});continue}i.push({ac_ref:e.nameOf.get(v)??v,ac_cid:v,verdict:p.verdict}),f.push(v)}s.push(ue(d,h,i,d.unresolved_acs??[])),o.push({about_cid:h,per_ac:f})}if(a.length>0)return{record:null,errors:a};let c;try{c=R(t,{ts:new Date().toISOString(),proposal_id:null,nodes:[],edges:[],review:[],supersessions:[],executions:s,...n.eventIds&&n.eventIds.length>0?{event_ids:n.eventIds}:{},source_head_moves:{}},{returnWarnings:!0,graph:e,expectPrev:e.latestHash,intent:{v:1,verb:"execution",args:A({facts:n.facts,by:n.by,eventIds:n.eventIds??null}),pins:{facts:o}},busyRetry:{deadlineMs:n.lockDeadlineMs??5e3},provenance:n.provenance})}catch(d){if(d instanceof k)return"cas";throw d}return{record:c.record,errors:null,...c.warnings?{warnings:c.warnings}:{}}}function Ye(t){let e={failed:3,broken:2,skipped:1,passed:0},n=new Map;for(let a of t)for(let s of a.verifies??[]){let o=n.get(s);(o===void 0||(e[a.status]??0)>(e[o]??0))&&n.set(s,a.status)}return[...n.entries()].map(([a,s])=>({ref:a,verdict:s}))}function Qe(t){let e=[],{store:n}=t;if(!n.exists())return{synced:0,superseded:0,skipped:"no-context",warnings:e};let a=t.by??{kind:"ai",id:"exec-sync"},s=t.lockDeadlineMs;try{Se(n,e,s)}catch(i){e.push(`sync: parked-facts replay failed (${i instanceof Error?i.message:String(i)}) \u2014 queue intact, retrying next sync`)}let o=E(n),c=[],d=0,u=new Set,l=new Set(t.members.map(i=>T(i.path)?i.path:N(t.projectDir,i.path))),h=new Map;for(let i of t.members){let f=T(i.path)?i.path:N(t.projectDir,i.path);if(!D(f)){e.push(`sync: member file missing: ${f} \u2014 skipped, no fact attached`);continue}for(let p of xe(f,e))if(!u.has(p.path))try{let m=p.path===f,v=!m&&l.has(p.path),g=m?void 0:F(I(f,"utf8"))?.id,$=I(p.path,"utf8"),y=F($);if(!y?.id){u.add(p.path);continue}let _=o.resolve(y.id),S=_?o.tipOf(_.cid):null;if(!_||!S||o.superseded.has(S)){u.add(p.path),e.push(`sync: ${y.id} does not resolve to a live test \u2014 skipped (foreign store?)`);continue}let L=B(V($,ee(q(p.path),o))),_e=String(o.getNode(S)?.content.test_md_blob??""),j=B(V(_e,Z(o))),G=o.getNode(S)?.content.definitionId,M=typeof G=="string"?G:j,w=!1,O=S;if(L===j)y.base!==M&&he(p.path,$,M,e);else if(y.base===j||y.base===M){let b=Ie(n,o,S,$,L,q(p.path),a);b.error?(e.push(`sync: could not supersede ${y.id}: ${b.error}`),w=!0):(d++,O=b.newCid,w=b.oracleTier,he(p.path,I(p.path,"utf8"),L,e),o=E(n))}else w=!0,e.push(y.base?`sync: ${y.id} was edited from an older version \u2014 graph kept; reconcile via a redesign or maintain`:`sync: ${y.id} carries no base pin (hand-copied file?) \u2014 fact attached with drift flag`);if(v){w&&h.set(p.path,!0);continue}u.add(p.path);let H=o.getNode(O)?.content.check,W=m?i.acs??[]:[],U=W.filter(b=>fe(o,b.ref)),z=W.filter(b=>!fe(o,b.ref)).map(b=>b.ref);c.push({ref:y.id,about_cid:O,definition_id_at_run:L,verdict:i.verdict,...U.length?{per_ac:U.map(b=>{let K=ge(o,b.ref);return{ac_ref:b.ref,...K?{ac_cid:K}:{},verdict:b.verdict}})}:{},drift_flag:w||h.get(p.path)===!0||m&&i.driftFlag===!0,oracle_mode:H?.expected_mode??(J(H?.operand)?"runtime-derived":"inferred"),stale_at_run:o.stale(O)!=="fresh",...z.length?{unresolved_acs:z}:{},execution_id:i.executionId,...i.evidenceId?{evidence_id:i.evidenceId}:{},...i.durationMs!==void 0?{duration_ms:i.durationMs}:{},started_at:i.startedAt,mode:i.mode,local:i.local,...g?{via_parent:g}:{}})}catch(m){p.path!==f&&l.has(p.path)||u.add(p.path),e.push(`sync: ${p.path} failed to sync (${m instanceof Error?m.message:String(m)}) \u2014 skipped; other members unaffected`)}}if(c.length===0)return{synced:0,superseded:d,warnings:e};let r;try{r=ce(n,E(n),{facts:c,by:a,eventIds:c.map(i=>`exec-fact:${i.execution_id}:${i.ref}`),lockDeadlineMs:s})}catch(i){return e.push(`sync facts: commit threw: ${i instanceof Error?i.message:String(i)}`),le(n,c,a,e,s),{synced:0,superseded:d,warnings:e}}return r.errors?(le(n,c,a,e,s),e.push(...r.errors.map(i=>`sync facts: ${i.code}: ${i.detail}`)),{synced:0,superseded:d,warnings:e}):(r.warnings&&e.push(...r.warnings.map(i=>`sync facts: ${i}`)),{synced:c.length,superseded:d,warnings:e})}function le(t,e,n,a,s){try{let o={by:n,ts:new Date().toISOString(),facts:e.map(u=>({...u,about_cid:u.about_cid??"",event_id:`exec-fact:${u.execution_id}:${u.ref}`}))},{where:c,sideFile:d}=t.parkedFacts().park(JSON.stringify(o),{deadlineMs:s??5e3});d&&a.push(`sync facts: store lock busy \u2014 parked to ${c}; it drains on the next sync`),a.push(`sync facts: commit failed \u2014 ${e.length} fact(s) parked to ${c}; they replay on the next sync`)}catch(o){a.push(`sync facts: could not park the failed batch (${o instanceof Error?o.message:String(o)}) \u2014 this run's facts are LOST`)}}function Se(t,e,n){let a=t.parkedFacts(),s=n??5e3,o=a.snapshot({deadlineMs:s});if("fenced"in o){e.push(`sync: parked facts stay queued while rebase ${o.fenced} is open \u2014 they drain on the first sync after it is finished`);return}let c=o.lines;if(c.length===0)return;let d=new Set,u=[];for(let l of c){let h=null;try{let i=JSON.parse(l);i&&Array.isArray(i.facts)&&(h=i)}catch{}if(!h){u.push({parent:l,line:l}),d.add(l);continue}let r=pe(t,h);if(r.errors){if(r.errors.some(i=>i.code==="STALE_BASIS")){e.push(`sync: parked facts replay deferred (${r.errors[0].detail}) \u2014 retrying next sync`);continue}u.push({parent:l,line:l}),d.add(l),e.push(`sync: parked facts line quarantined to ${a.quarantinePath} (${r.errors.map(i=>`${i.code}: ${i.detail}`).join("; ")})`);continue}for(let i of r.rejected){let f=h.facts.find(p=>p.event_id===i.event_id);u.push({parent:l,line:JSON.stringify({...f??{event_id:i.event_id},_reason:i.errors})})}if(r.rejected.length>0){let i=r.rejected.map(f=>f.errors.map(p=>`${p.code}: ${p.detail}`).join("; ")).join(" | ");e.push(`sync: ${r.rejected.length} parked fact(s) quarantined to ${a.quarantinePath} (${i})`)}d.add(l),r.warnings&&e.push(...r.warnings.map(i=>`sync: ${i}`)),r.applied.length>0&&e.push(`sync: replayed ${r.applied.length} parked fact(s) from a previous run`)}if(d.size!==0)try{a.settle(d,u,{deadlineMs:s})}catch(l){e.push(`sync: queue rewrite failed (${l instanceof Error?l.message:String(l)}) \u2014 already-applied lines dedupe next sync; bad lines re-quarantine then`)}}function xe(t,e){let n=[],a=new Set,s=o=>{if(a.has(o)||!D(o))return;a.add(o);let c;try{c=I(o,"utf8")}catch(d){e.push(`sync: unreadable unit ${o} (${d instanceof Error?d.message:String(d)}) \u2014 skipped`);return}for(let d of c.split(`
|
|
2
|
+
import{a as J,d as X,h as B,i as Y,j as Q,k as V,l as Z,m as ee,n as te,o as F,p as ne}from"./chunk-7V34ZMMS.js";import{d as P}from"./chunk-B7ZX5HEN.js";import{I as se,J as oe,L as R,M as E,N as ae,Na as k,a as ie,r as A}from"./chunk-Z777GGHB.js";import{f as x,h as re}from"./chunk-KU3YHPWZ.js";import{existsSync as D,readFileSync as I,renameSync as $e,writeFileSync as Ee}from"fs";import{dirname as q,isAbsolute as T,resolve as N}from"path";var ve=new Set(["inline","testmd","testrun"]),ye=new Set(["inferred","authored","runtime-derived"]),C=new Set(["passed","failed","broken","skipped"]);function ce(t,e,n){if(n.facts.length===0)return{record:null,errors:[{code:"EMPTY_EXECUTIONS",detail:"a run with no designed units attaches no facts \u2014 skip the call"}]};let a=e;for(let s=0;;s++){let o=t.head(),c=t.serialize(o);if(!t.sameToken(t.parse(a.latestHash),o)){if(s>=3)return{record:null,errors:[{code:"STALE_BASIS",detail:`graph opened at ${String(a.latestHash)} but chain head is ${String(c)} \u2014 retry budget exhausted`}]};a=E(t);continue}let d=be(t,a,n);if(d!=="cas")return d;if(s>=3)return{record:null,errors:[{code:"STALE_BASIS",detail:"concurrent appends kept moving the head \u2014 retry budget exhausted"}]};a=E(t)}}function de(t,e){return ve.has(t.mode)?C.has(t.verdict)?ye.has(t.oracle_mode)?typeof t.drift_flag!="boolean"||typeof t.stale_at_run!="boolean"?[{code:"MISSING_FIELD",detail:`${e}: drift_flag and stale_at_run are required booleans`}]:!t.execution_id||!t.started_at||!t.definition_id_at_run?[{code:"MISSING_FIELD",detail:`${e}: execution_id, started_at and definition_id_at_run are required`}]:[]:[{code:"BAD_ORACLE_MODE",detail:`${e}: oracle_mode '${t.oracle_mode}' not in inferred|authored|runtime-derived`}]:[{code:"BAD_VERDICT",detail:`${e}: verdict '${t.verdict}' not in ${[...C].join("|")}`}]:[{code:"BAD_MODE",detail:`${e}: mode '${t.mode}' not in inline|testmd|testrun`}]}function ue(t,e,n,a){return{about:e,definition_id_at_run:t.definition_id_at_run,verdict:t.verdict,...n&&n.length?{per_ac:n}:{},drift_flag:t.drift_flag,oracle_mode:t.oracle_mode,stale_at_run:t.stale_at_run,...a.length?{unresolved_acs:a}:{},execution_id:t.execution_id,...t.evidence_id?{evidence_id:t.evidence_id}:{},...t.duration_ms!==void 0?{duration_ms:t.duration_ms}:{},started_at:t.started_at,mode:t.mode,local:t.local,...t.via_parent?{via_parent:t.via_parent}:{}}}function pe(t,e,n={}){if(!Array.isArray(e.facts)||e.facts.length===0)return{record:null,errors:[{code:"EMPTY_EXECUTIONS",detail:"parked line carries no facts"}]};for(let a=0;;a++){let s=E(t),o=e.facts.filter(r=>s.appliedEvents.has(r.event_id)).map(r=>r.event_id),c=e.facts.filter(r=>!s.appliedEvents.has(r.event_id));if(c.length===0)return{record:null,errors:null,applied:[],skipped:o,rejected:[]};let d=[],u=[],l=[],h=[];for(let r of c){let i=`executions[${r.ref}]`,f=[];if(!r.about_cid||!s.hasNode(r.about_cid))f.push({code:"UNKNOWN_REF",detail:`${i}: about_cid '${String(r.about_cid)}' is not in the graph \u2014 the pinned run-time target is gone`});else if(s.nodeLabel.get(r.about_cid)!==x.TEST)f.push({code:"ILLEGAL_TARGET",detail:`${i}: execution facts attach to tests \u2014 '${r.about_cid}' is a ${s.nodeLabel.get(r.about_cid)}`});else if(!r.event_id)f.push({code:"MISSING_FIELD",detail:`${i}: parked facts require event_id`});else{f.push(...de(r,i));for(let g of r.per_ac??[])C.has(g.verdict)||f.push({code:"BAD_VERDICT",detail:`${i}.per_ac['${g.ac_ref}']: verdict '${g.verdict}'`})}if(f.length>0){d.push({event_id:r.event_id??"",errors:f});continue}let p=[],m=[],v=[...r.unresolved_acs??[]];for(let g of r.per_ac??[]){let $=g.ac_cid&&s.hasNode(g.ac_cid)&&s.nodeLabel.get(g.ac_cid)===x.AC?g.ac_cid:null,y=$?null:s.resolve(g.ac_ref),_=$??(y?s.tipOf(y.cid):null);if(!_||!$&&(s.superseded.has(_)||s.nodeLabel.get(_)!==x.AC)){v.push(g.ac_ref);continue}p.push({ac_ref:s.nameOf.get(_)??g.ac_ref,ac_cid:_,verdict:g.verdict}),m.push(_)}u.push(ue(r,r.about_cid,p,v)),h.push({about_cid:r.about_cid,per_ac:m}),l.push(r.event_id)}if(u.length===0)return{record:null,errors:null,applied:[],skipped:o,rejected:d};try{let r=R(t,{ts:new Date().toISOString(),proposal_id:null,nodes:[],edges:[],review:[],supersessions:[],executions:u,event_ids:[...l].sort(),source_head_moves:{}},{returnWarnings:!0,graph:s,expectPrev:s.latestHash,intent:{v:1,verb:"parked",args:A({line:e}),pins:{facts:h}},busyRetry:{deadlineMs:5e3},provenance:n.provenance});return{record:r.record,errors:null,applied:l,skipped:o,rejected:d,...r.warnings?{warnings:r.warnings}:{}}}catch(r){if(!(r instanceof k))throw r;if(a>=3)return{record:null,errors:[{code:"STALE_BASIS",detail:"concurrent appends kept moving the head \u2014 parked replay retry budget exhausted (line stays queued)"}]}}}}function be(t,e,n){let a=[],s=[],o=[];for(let d of n.facts){let u=`executions[${d.ref}]`,l=n.pinned?null:e.resolve(d.ref),h=n.pinned?d.about_cid&&e.hasNode(d.about_cid)?d.about_cid:null:l?e.tipOf(l.cid):null;if(!h||!n.pinned&&e.superseded.has(h)){a.push({code:"UNKNOWN_REF",detail:`${u}: '${n.pinned?String(d.about_cid):d.ref}' is not a ${n.pinned?"":"live "}committed node`});continue}if(e.nodeLabel.get(h)!==x.TEST){a.push({code:"ILLEGAL_TARGET",detail:`${u}: execution facts attach to tests \u2014 '${d.ref}' is a ${e.nodeLabel.get(h)}`});continue}let r=de(d,u);if(r.length>0){a.push(...r);continue}let i=[],f=[];for(let p of d.per_ac??[]){let m=n.pinned?null:e.resolve(p.ac_ref),v=n.pinned?p.ac_cid&&e.hasNode(p.ac_cid)?p.ac_cid:null:m?e.tipOf(m.cid):null;if(!v||!n.pinned&&e.superseded.has(v)||e.nodeLabel.get(v)!==x.AC){a.push({code:"UNKNOWN_REF",detail:`${u}.per_ac: '${n.pinned?String(p.ac_cid):p.ac_ref}' is not a${n.pinned?"n":" live"} AC`});continue}if(!C.has(p.verdict)){a.push({code:"BAD_VERDICT",detail:`${u}.per_ac['${p.ac_ref}']: verdict '${p.verdict}'`});continue}i.push({ac_ref:e.nameOf.get(v)??v,ac_cid:v,verdict:p.verdict}),f.push(v)}s.push(ue(d,h,i,d.unresolved_acs??[])),o.push({about_cid:h,per_ac:f})}if(a.length>0)return{record:null,errors:a};let c;try{c=R(t,{ts:new Date().toISOString(),proposal_id:null,nodes:[],edges:[],review:[],supersessions:[],executions:s,...n.eventIds&&n.eventIds.length>0?{event_ids:n.eventIds}:{},source_head_moves:{}},{returnWarnings:!0,graph:e,expectPrev:e.latestHash,intent:{v:1,verb:"execution",args:A({facts:n.facts,by:n.by,eventIds:n.eventIds??null}),pins:{facts:o}},busyRetry:{deadlineMs:n.lockDeadlineMs??5e3},provenance:n.provenance})}catch(d){if(d instanceof k)return"cas";throw d}return{record:c.record,errors:null,...c.warnings?{warnings:c.warnings}:{}}}function Ye(t){let e={failed:3,broken:2,skipped:1,passed:0},n=new Map;for(let a of t)for(let s of a.verifies??[]){let o=n.get(s);(o===void 0||(e[a.status]??0)>(e[o]??0))&&n.set(s,a.status)}return[...n.entries()].map(([a,s])=>({ref:a,verdict:s}))}function Qe(t){let e=[],{store:n}=t;if(!n.exists())return{synced:0,superseded:0,skipped:"no-context",warnings:e};let a=t.by??{kind:"ai",id:"exec-sync"},s=t.lockDeadlineMs;try{Se(n,e,s)}catch(i){e.push(`sync: parked-facts replay failed (${i instanceof Error?i.message:String(i)}) \u2014 queue intact, retrying next sync`)}let o=E(n),c=[],d=0,u=new Set,l=new Set(t.members.map(i=>T(i.path)?i.path:N(t.projectDir,i.path))),h=new Map;for(let i of t.members){let f=T(i.path)?i.path:N(t.projectDir,i.path);if(!D(f)){e.push(`sync: member file missing: ${f} \u2014 skipped, no fact attached`);continue}for(let p of xe(f,e))if(!u.has(p.path))try{let m=p.path===f,v=!m&&l.has(p.path),g=m?void 0:F(I(f,"utf8"))?.id,$=I(p.path,"utf8"),y=F($);if(!y?.id){u.add(p.path);continue}let _=o.resolve(y.id),S=_?o.tipOf(_.cid):null;if(!_||!S||o.superseded.has(S)){u.add(p.path),e.push(`sync: ${y.id} does not resolve to a live test \u2014 skipped (foreign store?)`);continue}let L=B(V($,ee(q(p.path),o))),_e=String(o.getNode(S)?.content.test_md_blob??""),j=B(V(_e,Z(o))),G=o.getNode(S)?.content.definitionId,M=typeof G=="string"?G:j,w=!1,O=S;if(L===j)y.base!==M&&he(p.path,$,M,e);else if(y.base===j||y.base===M){let b=Ie(n,o,S,$,L,q(p.path),a);b.error?(e.push(`sync: could not supersede ${y.id}: ${b.error}`),w=!0):(d++,O=b.newCid,w=b.oracleTier,he(p.path,I(p.path,"utf8"),L,e),o=E(n))}else w=!0,e.push(y.base?`sync: ${y.id} was edited from an older version \u2014 graph kept; reconcile via a redesign or maintain`:`sync: ${y.id} carries no base pin (hand-copied file?) \u2014 fact attached with drift flag`);if(v){w&&h.set(p.path,!0);continue}u.add(p.path);let H=o.getNode(O)?.content.check,W=m?i.acs??[]:[],U=W.filter(b=>fe(o,b.ref)),z=W.filter(b=>!fe(o,b.ref)).map(b=>b.ref);c.push({ref:y.id,about_cid:O,definition_id_at_run:L,verdict:i.verdict,...U.length?{per_ac:U.map(b=>{let K=ge(o,b.ref);return{ac_ref:b.ref,...K?{ac_cid:K}:{},verdict:b.verdict}})}:{},drift_flag:w||h.get(p.path)===!0||m&&i.driftFlag===!0,oracle_mode:H?.expected_mode??(J(H?.operand)?"runtime-derived":"inferred"),stale_at_run:o.stale(O)!=="fresh",...z.length?{unresolved_acs:z}:{},execution_id:i.executionId,...i.evidenceId?{evidence_id:i.evidenceId}:{},...i.durationMs!==void 0?{duration_ms:i.durationMs}:{},started_at:i.startedAt,mode:i.mode,local:i.local,...g?{via_parent:g}:{}})}catch(m){p.path!==f&&l.has(p.path)||u.add(p.path),e.push(`sync: ${p.path} failed to sync (${m instanceof Error?m.message:String(m)}) \u2014 skipped; other members unaffected`)}}if(c.length===0)return{synced:0,superseded:d,warnings:e};let r;try{r=ce(n,E(n),{facts:c,by:a,eventIds:c.map(i=>`exec-fact:${i.execution_id}:${i.ref}`),lockDeadlineMs:s})}catch(i){return e.push(`sync facts: commit threw: ${i instanceof Error?i.message:String(i)}`),le(n,c,a,e,s),{synced:0,superseded:d,warnings:e}}return r.errors?(le(n,c,a,e,s),e.push(...r.errors.map(i=>`sync facts: ${i.code}: ${i.detail}`)),{synced:0,superseded:d,warnings:e}):(r.warnings&&e.push(...r.warnings.map(i=>`sync facts: ${i}`)),{synced:c.length,superseded:d,warnings:e})}function le(t,e,n,a,s){try{let o={by:n,ts:new Date().toISOString(),facts:e.map(u=>({...u,about_cid:u.about_cid??"",event_id:`exec-fact:${u.execution_id}:${u.ref}`}))},{where:c,sideFile:d}=t.parkedFacts().park(JSON.stringify(o),{deadlineMs:s??5e3});d&&a.push(`sync facts: store lock busy \u2014 parked to ${c}; it drains on the next sync`),a.push(`sync facts: commit failed \u2014 ${e.length} fact(s) parked to ${c}; they replay on the next sync`)}catch(o){a.push(`sync facts: could not park the failed batch (${o instanceof Error?o.message:String(o)}) \u2014 this run's facts are LOST`)}}function Se(t,e,n){let a=t.parkedFacts(),s=n??5e3,o=a.snapshot({deadlineMs:s});if("fenced"in o){e.push(`sync: parked facts stay queued while rebase ${o.fenced} is open \u2014 they drain on the first sync after it is finished`);return}let c=o.lines;if(c.length===0)return;let d=new Set,u=[];for(let l of c){let h=null;try{let i=JSON.parse(l);i&&Array.isArray(i.facts)&&(h=i)}catch{}if(!h){u.push({parent:l,line:l}),d.add(l);continue}let r=pe(t,h);if(r.errors){if(r.errors.some(i=>i.code==="STALE_BASIS")){e.push(`sync: parked facts replay deferred (${r.errors[0].detail}) \u2014 retrying next sync`);continue}u.push({parent:l,line:l}),d.add(l),e.push(`sync: parked facts line quarantined to ${a.quarantinePath} (${r.errors.map(i=>`${i.code}: ${i.detail}`).join("; ")})`);continue}for(let i of r.rejected){let f=h.facts.find(p=>p.event_id===i.event_id);u.push({parent:l,line:JSON.stringify({...f??{event_id:i.event_id},_reason:i.errors})})}if(r.rejected.length>0){let i=r.rejected.map(f=>f.errors.map(p=>`${p.code}: ${p.detail}`).join("; ")).join(" | ");e.push(`sync: ${r.rejected.length} parked fact(s) quarantined to ${a.quarantinePath} (${i})`)}d.add(l),r.warnings&&e.push(...r.warnings.map(i=>`sync: ${i}`)),r.applied.length>0&&e.push(`sync: replayed ${r.applied.length} parked fact(s) from a previous run`)}if(d.size!==0)try{a.settle(d,u,{deadlineMs:s})}catch(l){e.push(`sync: queue rewrite failed (${l instanceof Error?l.message:String(l)}) \u2014 already-applied lines dedupe next sync; bad lines re-quarantine then`)}}function xe(t,e){let n=[],a=new Set,s=o=>{if(a.has(o)||!D(o))return;a.add(o);let c;try{c=I(o,"utf8")}catch(d){e.push(`sync: unreadable unit ${o} (${d instanceof Error?d.message:String(d)}) \u2014 skipped`);return}for(let d of c.split(`
|
|
3
3
|
`)){let u=/^@import\s+(\S+)\s*$/.exec(d.trim());if(!u)continue;let l=T(u[1])?u[1]:N(q(o),u[1]);if(!D(l))continue;let h;try{h=I(l,"utf8")}catch(r){e.push(`sync: unreadable import ${l} (${r instanceof Error?r.message:String(r)}) \u2014 skipped; importer continues`);continue}F(h)?.id&&s(l)}n.push({path:o})};return s(t),n}function fe(t,e){return ge(t,e)!==null}function ge(t,e){let n=ae(t,e);return n!==null&&t.nodeLabel.get(n)==="ac"?n:null}function ke(t,e,n,a){let s=t.split(`
|
|
4
4
|
`),o=Q(s),c={};return{blob:s.map((u,l)=>{let h=Y.exec(u.trim());if(!h||o.has(l))return u;let r=h[1];if(a&&r in a){let v=n.tipOf(a[r]);c[r]=v;let g=n.displayNameOf(v);return g?`@import ${g}`:u}let i=n.resolve(r);if(i)return c[r]=i.tip,u;if(e===null&&!T(r))return u;let f=T(r)?r:N(e,r);if(!D(f))return u;let p=F(I(f,"utf8"))?.id,m=p?n.resolve(p):null;return!p||!m?u:(c[r]=m.tip,`@import ${p}`)}).join(`
|
|
5
5
|
`),imports:c}}function Ie(t,e,n,a,s,o,c,d={}){let u=e.getNode(n);if(!u)return{oracleTier:!1,error:"tip unreadable"};let{blob:l,imports:h}=ke(ne(a),o,e,d.imports),r=String(u.content.test_md_blob??""),i=/^#\s+(.+?)\s*$/m.exec(l)?.[1]??String(u.content.title??""),f={...u.content,test_md_blob:l,definitionId:s,title:i};{let _=we(l);_.target!==void 0?f.target=_.target:delete f.target,_.app!==void 0?f.app=_.app:delete f.app}let p=re("test",f);if(p.length>0)return{oracleTier:!1,error:p.map(_=>_.detail).join("; ")};let m=ie("test",f);if(m===n)return{newCid:n,oracleTier:!1};let v=me(r)!==me(l);if(se(e,n,m))return{oracleTier:v,error:"file content reproduces an already-superseded version (supersession cycle guard) \u2014 graph kept; re-edit forward or redesign"};let g=oe({graph:e,oldTip:n,newCid:m,newLabel:"test",by:c,reason:`re-blessed onto ${m} (edited on disk, run sync)`});if(g.errors.length>0)return{oracleTier:v,error:`edge re-bless refused: ${g.errors.join("; ")}`};let $=t.head(),y=t.serialize($);if(!t.sameToken(t.parse(e.latestHash),$)){if(d.throwTransient)throw new k(`store advanced under the sync (basis ${String(e.latestHash)} vs head ${String(y)})`);return{oracleTier:v,error:`store advanced under the sync (basis ${String(e.latestHash)} vs head ${String(y)}) \u2014 re-run to retry`}}try{R(t,{ts:new Date().toISOString(),proposal_id:null,nodes:[{cid:m,label:"test",content:f}],edges:g.edges,review:[{id:m,kind:"review-item",resolution:"edited",edit:null,reason:"edited on disk (run sync)",by:c}],supersessions:[{kind:"node",old:n,new:m,reason:"edited on disk (run sync)",by:c},...g.supersessions],source_head_moves:{}},{graph:e,expectPrev:y,intent:{v:1,verb:"exec-supersede",args:A({tip:n,raw:a,fileId:s,by:c}),pins:{tip:n,imports:h}},provenance:d.provenance})}catch(_){if(d.throwTransient&&_ instanceof k)throw _;return{oracleTier:v,error:_ instanceof Error?_.message:String(_)}}return{newCid:m,oracleTier:v}}function we(t){let e=X(t);return{...typeof e.target=="string"?{target:e.target}:{},...typeof e.app=="string"?{app:e.app}:{}}}function me(t){let e=[],n=t.split(`
|