@testmuai/kane-cli 0.9.0 → 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-LVHXED3O.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-N5AZHXOS.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-UWXDURAB.js → chunk-2IZRPMZN.js} +1 -1
- package/dist/{chunk-X2A6CC6B.js → chunk-2NFS4KE4.js} +1 -1
- package/dist/{chunk-ZXY4P76I.js → chunk-2OOFURWD.js} +1 -1
- package/dist/chunk-2OSFI33O.js +97 -0
- package/dist/{chunk-CSNJPD2J.js → chunk-2S3W2JT3.js} +3 -3
- package/dist/chunk-2SWSVJUP.js +12 -0
- package/dist/chunk-2TVPA3LL.js +2 -0
- package/dist/{chunk-FMUV6UCX.js → chunk-2XW33VOK.js} +1 -1
- 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-DOOI2JBD.js → chunk-4D5PC6QE.js} +1 -1
- package/dist/chunk-4I7YN6YY.js +3 -0
- package/dist/chunk-4IEQNX7F.js +2 -0
- package/dist/{chunk-KXEE6VCA.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-CNUCP6DK.js → chunk-5BUIIFLC.js} +1 -1
- package/dist/{chunk-AKE2CTV6.js → chunk-5D7ENQTQ.js} +1 -1
- 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-4CYBXJIA.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-EBLXHOE3.js → chunk-7RPKHKA3.js} +1 -1
- 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-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-HGFWIBVF.js → chunk-B7ZX5HEN.js} +5 -5
- package/dist/{chunk-WRSIKZ2V.js → chunk-BJJUKB5K.js} +1 -1
- package/dist/{chunk-66MOZKD2.js → chunk-BSRSXYDZ.js} +1 -1
- package/dist/{chunk-4BZOG6PE.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-C25M2J5Q.js → chunk-CPBBYNL7.js} +1 -1
- package/dist/{chunk-75MMTNPB.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-Q5RDCSYM.js → chunk-DDJNYQBH.js} +1 -1
- package/dist/{chunk-6HU5M2DS.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-EOA6YPES.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-K3IQEL7R.js → chunk-I2KOGINW.js} +1 -1
- 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-GCISXCDU.js → chunk-IINZZ4BZ.js} +1 -1
- package/dist/{chunk-M3UAZTDK.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-GFBAK7WQ.js → chunk-K45BKGB5.js} +7 -7
- 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-RWSOZPJQ.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-7GAHJZLH.js → chunk-N3TCNZSX.js} +1 -1
- package/dist/chunk-NC7D7GOM.js +21 -0
- package/dist/{chunk-HAYV4D2I.js → chunk-NDEI7R4K.js} +1 -1
- package/dist/{chunk-BL3SJDCG.js → chunk-NFRA64NU.js} +1 -1
- package/dist/chunk-NLZZLANH.js +4 -0
- package/dist/{chunk-DWMESHFI.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-F7NSSQYZ.js → chunk-OAKYUBD3.js} +1 -1
- package/dist/{chunk-7WXMV3O3.js → chunk-OEWYXCTA.js} +1 -1
- package/dist/{chunk-4FHK4LKQ.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-C6S2RPZA.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-YBAVDT3G.js → chunk-QHRUBG7J.js} +1 -1
- package/dist/chunk-QI5RZ7LL.js +2 -0
- package/dist/chunk-QNLVC5ZB.js +2 -0
- package/dist/{chunk-WDMUPK6I.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-KWEOLPBJ.js → chunk-RFEON5GN.js} +1 -1
- package/dist/{chunk-SOCHN2PY.js → chunk-RFIIM33J.js} +1 -1
- package/dist/chunk-RG372DON.js +6 -0
- package/dist/chunk-RPRXRKKR.js +2 -0
- package/dist/chunk-RTVWQK7I.js +2 -0
- package/dist/{chunk-2PKME4VT.js → chunk-RW3Z2HMB.js} +4 -4
- package/dist/chunk-RX47NRSM.js +2 -0
- package/dist/chunk-RX6776AI.js +5 -0
- package/dist/chunk-S53AQU7R.js +6 -0
- package/dist/{chunk-XT7XA4DN.js → chunk-SA6IKFFD.js} +1 -1
- package/dist/{chunk-Q5CINJYL.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-TM7VRLWS.js → chunk-SXRHKXSE.js} +1 -1
- package/dist/chunk-T3HEJASG.js +5 -0
- package/dist/chunk-T4AVLJCW.js +6 -0
- package/dist/{chunk-6VY62QC2.js → chunk-T6K2MEWP.js} +1 -1
- package/dist/{chunk-PCKIANML.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-OHOJSADN.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-J3BGYSMD.js → chunk-VQLH63X7.js} +8 -8
- 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-UA2QDAWT.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-YWYORBY3.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-OIUV3ISA.js → chunk-Y6Y6RAY4.js} +1 -1
- 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-QD32Y7K7.js → credentials-MRG452Y6.js} +1 -1
- package/dist/{deps-bundle-OI7JJ22L.js → deps-bundle-FWINW4XM.js} +1 -1
- package/dist/{deps-resolve-ZOALDS6H.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-6WMJYNI6.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 +178 -160
- 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-CG2KK5UX.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-32YYMM4N.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-YWNS24TH.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-3WHG6MVB.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-FJPK3XEJ.js +0 -8
- package/dist/ChromeProfilePicker-7DUDJTE2.js +0 -2
- package/dist/CliFeedbackPrompt-ZZPYC6OS.js +0 -2
- package/dist/CliUploadProgress-WQYKIBAR.js +0 -2
- package/dist/ConfigView-KXNOODDW.js +0 -2
- package/dist/EvidenceViewOffer-BTBVPBZX.js +0 -2
- package/dist/FolderPicker-H4YEX5LV.js +0 -2
- package/dist/InfoBox-DTM7X24Z.js +0 -2
- package/dist/LinksBox-KFG3FVOT.js +0 -2
- package/dist/ProfilesView-KBZHT4KL.js +0 -2
- package/dist/ProjectPicker-OARWULNN.js +0 -2
- package/dist/SaveSessionPrompt-37SMU5MC.js +0 -2
- package/dist/ScrollbackTap-QHJOFYMC.js +0 -2
- package/dist/SingleShotApp-UYCAW65Y.js +0 -2
- package/dist/SummaryBox-6RB5DSAH.js +0 -2
- package/dist/TestMdRunView-ZMOII3PL.js +0 -2
- package/dist/TestrunEvidenceTable-3UP2EYIV.js +0 -2
- package/dist/WhoamiView-MC62GERR.js +0 -2
- package/dist/app-client-PQFJAB63.js +0 -2
- package/dist/app-download-P6YXWSVQ.js +0 -2
- package/dist/auth-LXW4OFKF.js +0 -2
- package/dist/bind-ZYESQSCJ.js +0 -15
- package/dist/bootstrap-DI4UGMH3.js +0 -2
- package/dist/bridge-7J3JE3JS.js +0 -2
- package/dist/build-JIKYOZUH.js +0 -2
- package/dist/catalog-LLME3744.js +0 -2
- package/dist/chat-committer-6D7AQI6Z.js +0 -2
- package/dist/chat-controller-UJQ6Z4RE.js +0 -2
- package/dist/chunk-243ZJHT6.js +0 -4
- package/dist/chunk-2KVECC36.js +0 -2
- package/dist/chunk-2YEHV2CX.js +0 -2
- package/dist/chunk-3MCPTVJX.js +0 -2
- package/dist/chunk-3UI5VTQS.js +0 -4
- package/dist/chunk-3VAU3PNU.js +0 -2
- package/dist/chunk-3YIZG7WZ.js +0 -3
- package/dist/chunk-4Y2WH77W.js +0 -2
- package/dist/chunk-5EOX4MEY.js +0 -2
- package/dist/chunk-5HMN74RZ.js +0 -9
- package/dist/chunk-5LJRZI7S.js +0 -6
- package/dist/chunk-5RCS2LIQ.js +0 -26
- package/dist/chunk-5TQFOPJV.js +0 -2
- package/dist/chunk-5ZFOKYFB.js +0 -5
- package/dist/chunk-63DYVWNX.js +0 -2
- package/dist/chunk-6MD7SR7D.js +0 -9
- package/dist/chunk-7N6OCHPC.js +0 -7
- package/dist/chunk-A2SQD2AY.js +0 -4
- package/dist/chunk-AACQE24F.js +0 -2
- package/dist/chunk-AHFIRHSP.js +0 -18
- package/dist/chunk-AJT34ESA.js +0 -38
- package/dist/chunk-AUMJ4RVA.js +0 -21
- package/dist/chunk-AXTPNZPX.js +0 -2
- package/dist/chunk-BB2W35TW.js +0 -2
- package/dist/chunk-BKM2LWU2.js +0 -3
- package/dist/chunk-BUPRL2TE.js +0 -2
- package/dist/chunk-C44QQJR4.js +0 -239
- package/dist/chunk-CW3RHKLA.js +0 -5
- package/dist/chunk-D6E6KRVX.js +0 -2
- package/dist/chunk-DTRKTBCE.js +0 -17
- package/dist/chunk-DTRSYWZE.js +0 -2
- package/dist/chunk-EVFFDODK.js +0 -5
- package/dist/chunk-F2OBORCG.js +0 -2
- package/dist/chunk-FQNQVC5O.js +0 -5
- package/dist/chunk-FY7TCYPK.js +0 -6
- package/dist/chunk-GTVQYT3D.js +0 -35
- package/dist/chunk-HG5LLZBU.js +0 -2
- package/dist/chunk-I7TIGB7K.js +0 -2
- package/dist/chunk-IICT4VOU.js +0 -2
- package/dist/chunk-ILDHE4P4.js +0 -6
- package/dist/chunk-IPXKUYUK.js +0 -2
- package/dist/chunk-JQY5HRZ4.js +0 -15
- package/dist/chunk-JX6BFEDO.js +0 -4
- 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-LH4IPANP.js +0 -2
- package/dist/chunk-LLG7NEGX.js +0 -6
- package/dist/chunk-LSDWPG6C.js +0 -2
- package/dist/chunk-MSGW4JDG.js +0 -2
- package/dist/chunk-NJ4BXZBX.js +0 -2
- package/dist/chunk-NLCCBXXV.js +0 -2
- package/dist/chunk-NMSZ7G6P.js +0 -2
- package/dist/chunk-OC6H6BYI.js +0 -6
- package/dist/chunk-OJAXOOZ5.js +0 -8
- package/dist/chunk-OMNLAGQC.js +0 -29
- package/dist/chunk-OOCCUUR2.js +0 -2
- package/dist/chunk-OXC6O5O7.js +0 -2
- package/dist/chunk-OZQDD2EX.js +0 -94
- package/dist/chunk-PEDINHVU.js +0 -2
- package/dist/chunk-PNUAP3RY.js +0 -8
- package/dist/chunk-Q2F5QB2W.js +0 -2
- package/dist/chunk-Q4YYAN6E.js +0 -2
- package/dist/chunk-Q6AHSGOE.js +0 -5
- package/dist/chunk-QAB3Y5FQ.js +0 -4
- package/dist/chunk-RDHWNSDP.js +0 -7
- package/dist/chunk-RKXHVP2Z.js +0 -2
- package/dist/chunk-RRY5IXOB.js +0 -2
- package/dist/chunk-RSSOJ3L2.js +0 -21
- package/dist/chunk-RTSBKCZY.js +0 -16
- package/dist/chunk-SID4X77D.js +0 -370
- package/dist/chunk-SRTKRHYI.js +0 -12
- package/dist/chunk-T2ONUKTL.js +0 -5
- package/dist/chunk-U6OTFMIT.js +0 -4
- package/dist/chunk-UD7KKHPW.js +0 -5
- package/dist/chunk-USOYXCZ4.js +0 -2
- package/dist/chunk-USY7VAO6.js +0 -2
- package/dist/chunk-V4B5QA3U.js +0 -4
- package/dist/chunk-VBS33P2C.js +0 -2
- package/dist/chunk-VHW7BMZQ.js +0 -2
- package/dist/chunk-VIO7CCFW.js +0 -5
- package/dist/chunk-VORWZLS3.js +0 -9
- package/dist/chunk-VVOKM2VO.js +0 -2
- package/dist/chunk-W5TTF7GB.js +0 -6
- package/dist/chunk-WESMQEPO.js +0 -2
- package/dist/chunk-WMI4P76K.js +0 -27
- package/dist/chunk-WNOC6MQC.js +0 -2
- package/dist/chunk-WVHMPIDQ.js +0 -2
- package/dist/chunk-XBX643ZD.js +0 -2
- package/dist/chunk-XKHWWKJZ.js +0 -3
- package/dist/chunk-XLSOQLVT.js +0 -2
- package/dist/chunk-Y3ZYN6AK.js +0 -4
- package/dist/chunk-YCCUBQY4.js +0 -2
- package/dist/chunk-YKTYVJBN.js +0 -3
- package/dist/chunk-YLQHY4A7.js +0 -2
- package/dist/chunk-Z7IGTVJW.js +0 -2
- package/dist/chunk-ZC2CKWLB.js +0 -2
- package/dist/chunk-ZER3FZSZ.js +0 -22
- package/dist/chunk-ZJYT72BA.js +0 -9
- package/dist/chunk-ZKSN2SJ7.js +0 -2
- package/dist/chunk-ZLWURCJ7.js +0 -2
- package/dist/committer-2QPBANRD.js +0 -2
- package/dist/config-YGTHSGQN.js +0 -2
- package/dist/controller-client-ZF5IXRUV.js +0 -2
- package/dist/cover-cmd-6RO366CC.js +0 -3
- package/dist/descriptor-3JJUOHBM.js +0 -2
- package/dist/design-committer-D44GSUXY.js +0 -2
- package/dist/device-env-DXDJJMTL.js +0 -2
- package/dist/dispatch-7EWWQRQ5.js +0 -2
- package/dist/doctor-TPYPEEUL.js +0 -2
- package/dist/docx-convert-SQRTF7XS.js +0 -2
- package/dist/evidence-NPFTBGDF.js +0 -2
- package/dist/evidence-presentation-XF23B7F2.js +0 -2
- package/dist/evolve-cmd-VGVXV6XW.js +0 -2
- package/dist/explain-NEFBUX5G.js +0 -2
- package/dist/explain-cmd-GOP5TE63.js +0 -9
- package/dist/explain-cmd-M7IX2YNB.js +0 -3
- package/dist/extract-bind-CKIRLXAJ.js +0 -14
- package/dist/extract-cmd-3EWLSPGS.js +0 -5
- package/dist/feeder-66TUPB2R.js +0 -2
- package/dist/gaps-cmd-WVC5GXQC.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-AECK5T4H.js +0 -2
- package/dist/install-ZV3KJZV4.js +0 -2
- package/dist/interactive-bind-IYS6KDOH.js +0 -26
- package/dist/interrupt-guard-UREUWNRL.js +0 -2
- package/dist/lifecycle-cmd-XCSBELFQ.js +0 -2
- package/dist/list-cmd-S4DSN2ET.js +0 -3
- package/dist/list-commands-GLNGHPDU.js +0 -2
- package/dist/locks-cmd-67OHQZNV.js +0 -2
- package/dist/logical-ids-GLVM2SVR.js +0 -2
- package/dist/login-flow-ASUUU7SO.js +0 -2
- package/dist/maintenance-cmd-K5KXRIFL.js +0 -2
- package/dist/mobile-prompts-ZUZTA3RV.js +0 -2
- package/dist/open-provider-YIBB77FE.js +0 -2
- package/dist/pdf-convert-RLXSXFWN.js +0 -2
- package/dist/persist-recorded-session-EWV56TSZ.js +0 -3
- package/dist/phase-seed-MKHEWUN6.js +0 -2
- package/dist/pipeline-LAWACB2O.js +0 -2
- package/dist/prepare-target-WGPCZKLE.js +0 -2
- package/dist/readmodel-FVLRQWZ7.js +0 -2
- package/dist/real-device-run-MDLFKFVQ.js +0 -2
- package/dist/reconcile-cmd-XFM2ZXUJ.js +0 -2
- package/dist/reconcile-deps-V5VLDPYT.js +0 -4
- package/dist/reconcile-engine-VZBTMPUK.js +0 -2
- package/dist/recording-banner-CJHRPHHF.js +0 -2
- package/dist/records-LMCVKPE5.js +0 -2
- package/dist/registry-3JXQFZEG.js +0 -2
- package/dist/require-project-folder-SE5GVCYJ.js +0 -2
- package/dist/resolve-run-intent-DD4MB6UD.js +0 -2
- package/dist/resolver-TLO4SRWV.js +0 -2
- package/dist/revert-NOUECRW4.js +0 -2
- package/dist/review-cmd-7EOYQMPE.js +0 -5
- package/dist/run-EHUNJPW6.js +0 -2
- package/dist/run-OTMPUQSH.js +0 -2
- package/dist/run-channel-RGH4WIQX.js +0 -2
- package/dist/run-test-md-KBDEHGXJ.js +0 -17
- package/dist/scrollback-JLPJR25X.js +0 -2
- package/dist/session-items-2ATN7VXG.js +0 -2
- package/dist/session-target-UMNASXI7.js +0 -2
- package/dist/sessions-NH7WQWMX.js +0 -2
- package/dist/sessions-cmd-M3SECFKQ.js +0 -25
- package/dist/spawner-DPT2RLAO.js +0 -2
- package/dist/store-guard-U32JE6JJ.js +0 -2
- package/dist/store-id-EOSGEKVK.js +0 -2
- package/dist/structured-answers-ZI2B6JJE.js +0 -2
- package/dist/sync-cmd-3EP7LZGL.js +0 -2
- package/dist/sync-setup-SWTBVQEV.js +0 -2
- package/dist/tcg-generate-KXU7E2GF.js +0 -2
- package/dist/testmd-actions-PEWCPQ5R.js +0 -2
- package/dist/testmd-sync-ZWFQWZ2X.js +0 -2
- package/dist/tms-client-KU6HCA23.js +0 -2
- package/dist/token-refresh-QD3OCGJJ.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-AAIXSAWH.js +0 -2
- package/dist/verdicts-LAB5BGCC.js +0 -2
- package/dist/version-check-EHOLX3YH.js +0 -2
- package/dist/walk-session-XP4KYFKO.js +0 -2
- package/dist/with-telemetry-FJMJQDCM.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-NOL7MNZH.js → chunk-A7RJQJNT.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-JQY5HRZ4.js
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { createRequire } from 'module'; const require = createRequire(import.meta.url);
|
|
2
|
-
import{e as O}from"./chunk-VHW7BMZQ.js";import{a as k,c as j}from"./chunk-HGFWIBVF.js";import{dirname as J,basename as L,join as p}from"path";function H(e){let t=L(e);return t.endsWith("_test.md")?t.slice(0,-8):t.endsWith("_module.md")?t.slice(0,-10):t.endsWith(".md")?t.slice(0,-3):t}function b(e){return p(J(e),`output-${H(e)}`)}function pe(e){return p(b(e),"Result.md")}function M(e){return p(b(e),".internal")}function R(e){return p(M(e),"meta.json")}function ue(e){return p(M(e),"execution.json")}function ge(e,t,n){return p(b(e),`${t}-${n}-code`)}function le(e){return p(b(e),"generated-code")}function fe(e){return b(e)+".staging"}function U(e){return p(M(e),"steps")}function me(e,t,n){return p(U(e),`${t}-${n}`)}import{writeFileSync as Y,mkdirSync as z,readFileSync as B}from"fs";import{dirname as T}from"path";function q(e){return typeof e=="string"&&e.trim()||void 0}function ve(e){return q(y(e)?.tc_id)}function Me(e){let t=y(e)?.environment_id;return typeof t=="number"&&Number.isInteger(t)&&t>0?t:void 0}function y(e){try{return JSON.parse(B(R(e),"utf8"))}catch{return null}}function Re(e){let t=R(e.sourcePath);try{z(T(t),{recursive:!0})}catch(i){return process.stderr.write(`
|
|
3
|
-
\u26A0 Failed to create output directory.
|
|
4
|
-
${i.message}
|
|
5
|
-
Path: ${T(t)}
|
|
6
|
-
|
|
7
|
-
`),t}let n={commit_id:e.commitId};e.testId!==void 0&&(n.test_id=e.testId),e.testcaseId!==void 0&&(n.testcase_id=e.testcaseId),e.projectId!==void 0&&(n.project_id=e.projectId),e.folderId!==void 0&&(n.folder_id=e.folderId),e.orgId!==void 0&&(n.org_id=e.orgId),e.sessionName!==void 0&&(n.session_name=e.sessionName),e.plan!==void 0&&(n.plan=e.plan),e.media&&Object.keys(e.media).length>0&&(n.media=e.media),e.tcId&&(n.tc_id=e.tcId),e.environmentId&&(n.environment_id=e.environmentId);try{Y(t,JSON.stringify(n,null,2)+`
|
|
8
|
-
`,"utf8")}catch(i){process.stderr.write(`
|
|
9
|
-
\u26A0 Failed to write meta.json.
|
|
10
|
-
${i.message}
|
|
11
|
-
Path: ${t}
|
|
12
|
-
|
|
13
|
-
`)}return t}import{readFileSync as X,existsSync as Z}from"fs";import{basename as F,dirname as ee,isAbsolute as te,resolve as V}from"path";import{createHash as C}from"crypto";function _(e){if(e==null)return null;if(Array.isArray(e))return e.map(_);if(typeof e=="object"){let t={};for(let n of Object.keys(e).sort()){let i=e[n];i!==void 0&&(t[n]=_(i))}return t}return e}function Q(e){if(e.body.kind!=="objective")throw new Error("stepMd5: only objective steps have an md5; @import rows do not");let t={...e.config??{},optional:e.optional??!1},n=JSON.stringify(_(t));return C("md5").update(e.body.text).update(`
|
|
14
|
-
`).update(n).digest("hex")}function E(e){let t={};for(let[i,o]of Object.entries(e.bindings??{}))t[i]={value:o.value,...o.secret===!0?{secret:!0}:{},...o.syntax?{syntax:o.syntax}:{}};let n=JSON.stringify(_({bindings:t,optional:e.optional}));return C("md5").update(e.path).update(`
|
|
15
|
-
`).update(n).digest("hex")}function Se(e){return Q({index:e.trace[e.trace.length-1].stepIndex,heading:e.trace[e.trace.length-1].heading,verifies:[],body:{kind:"objective",text:e.objective},config:e.parsedConfig,headingLine:1,optional:e.optional})}var $=["target","chrome_profile","cdp_endpoint","ws_endpoint","headless"],ne=["app","no_reset","os_version","device_name"],re=["mode","on_lock_conflict","tags","dataset","target","chrome_profile","cdp_endpoint","ws_endpoint","headless","app","no_reset","os_version","device_name"],f=class extends Error{constructor(t){super(t),this.name="TestMdResolveError"}};function w(e){let t=F(e);return t.endsWith("_test.md")?"test":t.endsWith("_module.md")?"module":"helper"}function Fe(e){let t=V(e),n=P(t),i=se(n.global),o=[],s=[],a=[{file:t,kind:w(t)}],d=[];return D(n,s,o,[],t,{},{},a,d,{}),o.forEach((c,g)=>c.flatIndex=g+1),{rootPath:t,rootTitle:n.title,rootGlobal:n.global,rootSteps:n.steps,chrome:i,steps:o,unitFiles:a,warnings:d}}function Ve(e){let t=[];for(let n of e.unitFiles){if(n.kind!=="test")continue;let i=y(n.file);i&&t.push({file:n.file,...i.project_id?{project_id:String(i.project_id)}:{},...i.org_id?{org_id:String(i.org_id)}:{}})}return t}function P(e){if(!Z(e))throw new f(`@import path not found: ${e}`);let t=X(e,"utf8");return k(e,t)}function D(e,t,n,i,o,s,a,d,u,c){if(t.includes(e.path)){let r=[...t,e.path].map(l=>F(l)).join(" \u2192 ");throw new f(`cyclic reference: ${r}`)}t.push(e.path);let g=i.length===0,m=e.global.variables??{};for(let r of Object.keys(s))if(Object.hasOwn(m,r))throw new f(`callsite binding '${r}' collides with a declared variable in ${e.path} (frontmatter variables are pinned; parameters are its undeclared names)`);let x=e.global;if(!g){let r={...e.global};for(let l of re)r[l]!==void 0&&(u.push(`${e.path}: '${l}' is root-governed on imported units \u2014 ignored`),delete r[l]);r.url!==void 0&&(c.pending=String(r.url),delete r.url),x=r}let N=new Map;for(let r of e.steps){let l=r.body.kind!=="objective";if(r.optional&&l&&!g)throw new f(`intermediate-ref 'optional' is not supported in v1: ${e.path}:${r.headingLine}`);if(r.body.kind==="objective"){let v={file:e.path,stepIndex:r.index,heading:r.heading,optional:r.optional??!1},G=de(x,r.config,s,a),I={flatIndex:0,objective:r.body.text,sourceFile:e.path,trace:[...i,v],config:G,parsedConfig:r.config,optional:r.optional??!1,verifies:r.verifies,owningFile:e.path,unitKind:w(e.path),...r.replayOnly?{replayOnly:r.replayOnly}:{},...r.controlFlow?{controlFlow:r.controlFlow}:{},...r.block?{block:{...r.block,id:ae(r,n.length+1,N)}}:{}};c.pending&&(I.unitEntryUrl=c.pending,c.pending=void 0),n.push(I);continue}let A={file:e.path,stepIndex:r.index,heading:r.heading,optional:r.optional??!1,rowMd5:E({path:r.body.path,bindings:r.body.bindings,optional:r.optional??!1})},K=ee(e.path),h=te(r.body.path)?r.body.path:V(K,r.body.path),W=P(h);d.some(v=>v.file===h)||d.push({file:h,kind:w(h)});let S={...a,...s,...m};D(W,t,n,[...i,A],o,oe(r.body.bindings??{},S),S,d,u,c)}g||(c.pending=void 0),t.pop()}var ie=/(\\?)\{\{\s*([^{}]+?)\s*\}\}/g;function oe(e,t){let n=new Map;for(let[o,s]of Object.entries(t))n.set(O(o),s);let i={};for(let[o,s]of Object.entries(e)){let a=s.secret===!0,d=s.value.replace(ie,(u,c,g)=>{if(c)return u;let m=n.get(g);return m?(m.secret&&(a=!0),m.value):u});i[o]={...s,value:d,...a?{secret:!0}:{}}}return i}function se(e){let t={};for(let n of $){if(n==="target"){let i=j(e);i!==void 0&&(t.target=i);continue}e[n]!==void 0&&(t[n]=e[n])}return t}function de(e,t,n,i){let o={};for(let[d,u]of Object.entries(e))$.includes(d)||ne.includes(d)||(o[d]=u);let s={...o,...t??{}},a={...i,...n,...e.variables??{},...t?.variables??{}};return Object.keys(a).length>0?s.variables=a:delete s.variables,s}function ae(e,t,n){let i=e.block.id;if(e.controlFlow==="if"||e.controlFlow==="while")return n.set(i,t),t;let o=n.get(i);if(o===void 0)throw new f(`block member before its opener in ${e.heading}`);return o}export{H as a,b,pe as c,M as d,R as e,ue as f,ge as g,le as h,fe as i,U as j,me as k,E as l,Se as m,q as n,ve as o,Me as p,y as q,Re as r,f as s,w as t,Fe as u,Ve as v};
|
package/dist/chunk-JX6BFEDO.js
DELETED
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import { createRequire } from 'module'; const require = createRequire(import.meta.url);
|
|
2
|
-
import{b as N,c as O,e as S,f as D,j as T,q as y,s as z,u as U}from"./chunk-JQY5HRZ4.js";import{a as Y,b as M}from"./chunk-NBXYL2JT.js";import{a as F}from"./chunk-HGFWIBVF.js";import{a as R}from"./chunk-DHJSM5DT.js";import{a as A}from"./chunk-5TQFOPJV.js";import{e as $}from"./chunk-UR6MHSHU.js";var C=$(Y(),1);import{existsSync as k,readFileSync as I,readdirSync as J,statSync as K}from"fs";import{dirname as H,isAbsolute as V,join as h,relative as P,resolve as Z,sep as _}from"path";import{createHash as q}from"crypto";var b="testmd-bundle.json",u=class extends Error{constructor(t){super(t),this.name="BundleUsageError"}},B=e=>e.split(_).join("/");function v(e){if(!k(e))return[];let t=[];for(let s of J(e).sort()){let r=h(e,s);K(r).isDirectory()?t.push(...v(r)):t.push(r)}return t}function G(e){let t=e.map(r=>H(r).split(_)),s=t[0];for(let r of t.slice(1)){let i=0;for(;i<s.length&&i<r.length&&s[i]===r[i];)i++;s=s.slice(0,i)}return s.join(_)||_}function Q(e){for(let t of e){let s=F(t,I(t,"utf8"));for(let r of s.steps)if(r.body.kind==="import_ref"&&V(r.body.path))throw new u(`bundle sync: absolute @import is not portable after unzip: ${t} step ${r.index} (@import ${r.body.path})`)}}function j(e,t={}){let s=Z(e),r=S(s),i=y(s);if(!i?.commit_id||!i?.test_id)throw new u(`bundle sync: ${s} is not authored \u2014 run \`kane-cli testmd run\` first (output-<stem>/.internal/meta.json needs commit_id + test_id)`);let l;try{l=U(s)}catch(n){throw n instanceof z?new u(`bundle sync: ${n.message}`):n}let c=[s];for(let n of l.steps)for(let a of n.trace.slice(1))c.includes(a.file)||c.push(a.file);Q(c);let o=[],d=[];for(let n of l.unitFiles){if(n.file===s)continue;let a=N(n.file);o.includes(a)||o.push(a),n.kind==="module"&&d.push(S(n.file))}let m=[...c],p=n=>{k(n)&&m.push(n)};p(O(s)),m.push(r),p(D(s)),m.push(...v(T(s)));for(let n of o)p(h(n,"Result.md")),m.push(...v(h(n,".internal","steps")));for(let n of d)p(n);let f=G(m);if(k(h(f,b)))throw new u(`bundle sync: a real file named ${b} exists at the zip root (${f}) \u2014 it would collide with the generated manifest`);let w=m.map(n=>{let a=n===r&&t.identityOverride?Buffer.from(JSON.stringify({...JSON.parse(I(n,"utf8")),commit_id:t.identityOverride.commit_id},null,2)+`
|
|
3
|
-
`):void 0,E=a??I(n);return{abs:n,rel:B(P(f,n)),sha256:q("sha256").update(E).digest("hex"),bytes:E.length,...a?{contents:a}:{}}}).sort((n,a)=>n.rel<a.rel?-1:1),x=B(P(f,s)),L={schema_version:2,entry:x,commit_id:t.identityOverride?.commit_id??i.commit_id,test_id:i.test_id,testcase_id:i.testcase_id??null,project_id:i.project_id??null,folder_id:i.folder_id??null,org_id:i.org_id??null,created_at:new Date().toISOString(),producer:{name:"kane-cli",version:A},files:w.map(n=>({path:n.rel,sha256:n.sha256,bytes:n.bytes})),units:l.unitFiles.filter(n=>n.file!==s).map(n=>({path:B(P(f,n.file)),kind:n.kind}))};return{zipRoot:f,entry:x,files:w,manifest:L}}var g=e=>e instanceof Error?e.message:String(e);function W(e){return new Promise((t,s)=>{let r=(0,C.default)("zip",{zlib:{level:6}}),i=[];r.on("data",l=>i.push(l)),r.on("error",s),r.on("end",()=>t(Buffer.concat(i))),r.append(JSON.stringify(e.manifest,null,2)+`
|
|
4
|
-
`,{name:b});for(let l of e.files)l.contents?r.append(l.contents,{name:l.rel}):r.file(l.abs,{name:l.rel});r.finalize()})}async function X(e){let{plan:t,controller:s,testId:r,sessionId:i,commitId:l}=e,c;try{c=await W(t)}catch(d){return{ok:!1,stage:"zip",error:g(d)}}let o;try{let d={key:"testmd",content_type:"application/zip",filename:`${l}-testmd.zip`},p=(await s.getPresignedUrls(r,i,[d])).urls?.testmd?.upload_url;if(!p)return{ok:!1,stage:"presign",error:"presign response missing testmd upload_url"};o=p}catch(d){return{ok:!1,stage:"presign",error:g(d)}}try{await M(o,c,"application/zip")}catch(d){return{ok:!1,stage:"upload",error:g(d)}}return{ok:!0,bytes:c.length}}async function ee(e){let t;try{t=j(e.sourcePath,{identityOverride:e.identityOverride})}catch(s){return s instanceof u?{ok:!1,stage:"collect",error:s.message}:{ok:!1,stage:"collect",error:g(s)}}return X({...e,plan:t})}function ge(e){return e.shouldUploadPipeline&&e.uploadSucceeded&&!!e.metaCommitId&&!!e.metaTestId}function te(e){return e.persisted?e.uploadSucceeded?e.local?"local":e.hasBasicAuth?!e.metaCommitId||!e.metaTestId?"not_authored":null:"no_auth":"upload_failed":"not_persisted"}async function ye(e){let t=e.recordedTestPath??null,s=t?y(t):null,r=te({persisted:!!t,uploadSucceeded:e.uploadSucceeded,local:e.local,hasBasicAuth:!!e.basicAuth,metaCommitId:s?.commit_id,metaTestId:s?.test_id});if(r)return e.log("info","BUNDLE_SYNC_SKIPPED","testmd bundle sync skipped",{reason:r,...t?{path:t}:{}}),{skipped:r};let i=s.commit_id,l=s.test_id,c=o=>{try{e.onAgentEvent?.(o)}catch{}};try{let o=await(e.syncFn??ee)({sourcePath:t,testId:l,sessionId:e.sessionId,commitId:i,controller:new R(e.controllerBaseUrl,{username:e.basicAuth.username,accessKey:e.basicAuth.access_key})});return o.ok?(e.log("info","BUNDLE_SYNC_OK","testmd bundle pushed",{commit_id:i,path:t,bytes:o.bytes}),c({type:"test_md_bundle_sync",status:"ok",commit_id:i,path:t,bytes:o.bytes})):(e.log("warn","BUNDLE_SYNC_FAILED","testmd bundle sync failed",{commit_id:i,path:t,stage:o.stage,error:o.error}),c({type:"test_md_bundle_sync",status:"failed",commit_id:i,path:t,stage:o.stage})),o}catch(o){let d=g(o);return e.log("warn","BUNDLE_SYNC_FAILED","testmd bundle sync threw",{commit_id:i,path:t,error:d}),c({type:"test_md_bundle_sync",status:"failed",commit_id:i,path:t,stage:"upload"}),{ok:!1,stage:"upload",error:d}}}export{j as a,W as b,X as c,ee as d,ge as e,te as f,ye as g};
|
package/dist/chunk-K2UJYY2U.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import { createRequire } from 'module'; const require = createRequire(import.meta.url);
|
|
2
|
-
import{g as h}from"./chunk-FY7TCYPK.js";import{F as l}from"./chunk-RDHWNSDP.js";import{b as u}from"./chunk-FQNQVC5O.js";import{f}from"./chunk-XLSOQLVT.js";import{existsSync as w,readFileSync as _,readdirSync as R}from"fs";import{join as p}from"path";function g(i,r){let{records:t}=l(i),o=new Set;for(let e of t)for(let n of e.review)n.resolution!=="pending"&&o.add(n.id);let s=[],d=new Set;for(let e=t.length-1;e>=0;e--)for(let n of t[e].dedup_hits??[]){if(n.new_cid===void 0)continue;let c=`${n.new_cid}|${n.candidate_cid}`;d.has(c)||(d.add(c),!o.has(n.new_cid)&&(r.superseded.has(n.new_cid)||r.superseded.has(n.candidate_cid)||r.trust.get(n.new_cid)==="derived"&&s.push({new_cid:n.new_cid,candidate_cid:n.candidate_cid,score:n.score,scorer:n.scorer})))}return s}var a=(i,r)=>i.displayNameOf(r)??r.slice(0,19);function m(i,r){return{design_children:i.edgesInto(r).filter(o=>(o.type==="belongs_to"||o.type==="scoped_to")&&!i.superseded.has(o.src)).length}}function v(i,r){let{records:t}=l(i),o=new Set,s=new Map;for(let e of t)for(let n of e.review)n.kind==="pending_archive"?s.set(n.id,n.reason):n.resolution!=="pending"&&o.add(n.id);let d=new Map;for(let[e,n]of s)r.superseded.has(e)||r.trust.get(e)!=="derived"||o.has(e)||d.set(e,n);return{all:s,live:d}}function y(i,r){let t=[],o=new Set;for(let e of g(i.contextDir,r)){o.add(e.new_cid);let n=e.scorer==="lexical_fallback"?" (lexical fallback \u2014 the probe ran degraded)":"";t.push({kind:"PAIR",ref:a(r,e.new_cid),title:String(r.getNode(e.new_cid)?.content.title??e.new_cid.slice(0,12)),why:`possible duplicate of ${a(r,e.candidate_cid)} \u2014 score ${e.score}${n}`,pair:{candidate_cid:e.candidate_cid,candidate_ref:a(r,e.candidate_cid),score:e.score,scorer:e.scorer}})}let{all:s,live:d}=v(i.contextDir,r);for(let[e,n]of d)t.push({kind:"REVIEW",ref:a(r,e),title:String(r.getNode(e)?.content.title??e.slice(0,12)),why:`archive held for interactive confirmation${n?` \u2014 ${n}`:""}`,held:!0,impact:m(r,e)});for(let e of k(i.contextDir))t.push({kind:"MODIFY_HELD",ref:`${e.sid}:${e.tempRef}`,title:String(e.content.title??e.tempRef),why:`${e.rationale} \u2014 held by paused/dead session ${e.sid}`,heldPayload:e});for(let{cid:e,content:n}of r.byLabel(f.USECASE))r.superseded.has(e)||r.trust.get(e)!=="derived"||o.has(e)||s.has(e)||t.push({kind:"REVIEW",ref:a(r,e),title:String(n.title??e.slice(0,12)),why:"unreviewed \u2014 approve, archive, or defer",impact:m(r,e)});return t}function F(i,r){let t={REVIEW:0,PAIR:0,MODIFY_HELD:0};for(let o of y(i,r))t[o.kind]++;return t}function b(i,r){try{let t=JSON.parse(_(p(i,"sessions",r,".lock"),"utf8"));return typeof t.pid=="number"&&u(t.pid)}catch{return!1}}function k(i){let r=[],t=p(i,"sessions");if(!w(t))return r;let o=[];try{o=R(t)}catch{return r}for(let s of o){if(!w(p(t,s,"state.json"))||b(i,s))continue;let d=[],e=!1;try{let c=h(i,s).kane;c?.pending?.proposals?.length&&(d=c.pending.proposals,e=!0)}catch{e=!1}if(!e)try{d=JSON.parse(_(p(t,s,"state.json"),"utf8")).pending?.proposals??[]}catch{continue}for(let n of d)r.push({sid:s,tempRef:String(n.tempRef??n.temp_ref??"held"),...typeof n.event_id=="string"?{event_id:n.event_id}:{},label:String(n.label??"usecase"),content:n.content??{},rationale:String(n.rationale??"held payload")})}return r}export{m as a,v as b,y as c,F as d};
|
package/dist/chunk-KBM3XHAM.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import { createRequire } from 'module'; const require = createRequire(import.meta.url);
|
|
2
|
-
import{a as p}from"./chunk-2YEHV2CX.js";import{d as o}from"./chunk-5EOX4MEY.js";import s from"fs";import a from"path";var g=new Set(["org_id","user_id","plan","user_type"]);function m(e){let t={machine_id:p(),env:e};try{let i=JSON.parse(s.readFileSync(o(e),"utf8"));for(let[n,r]of Object.entries(i))g.has(n)&&typeof r=="string"&&r.length>0&&r.length<=128&&(t[n]=r)}catch{}return t}async function y(e,t){if(!t)return;let i={};if(t.org_id!==void 0&&t.org_id!==null&&(i.org_id=String(t.org_id)),t.user_id!==void 0&&t.user_id!==null&&(i.user_id=String(t.user_id)),typeof t.plan=="string"&&t.plan&&(i.plan=t.plan),typeof t.user_type=="string"&&t.user_type&&(i.user_type=t.user_type),Object.keys(i).length===0)return;let n=o(e);await s.promises.mkdir(a.dirname(n),{recursive:!0});let r=`${n}.tmp-${process.pid}`;await s.promises.writeFile(r,JSON.stringify(i),{mode:384}),await s.promises.rename(r,n)}export{m as a,y as b};
|
package/dist/chunk-KDNNMU7Q.js
DELETED
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import { createRequire } from 'module'; const require = createRequire(import.meta.url);
|
|
2
|
-
import{d as o}from"./chunk-VVOKM2VO.js";function s(n,r,e){let t=r.mediaOf(e),l=typeof t?.text_blob=="string"&&t.text_blob!==""?t.text_blob:null;if(l!==null)return o(n,l);let i=String(r.getNode(e)?.content.blob??"");return i===""?null:o(n,i)}function b(n){return n.toString("utf8").replace(/\n$/,"").split(`
|
|
3
|
-
`).map((e,t)=>`${String(t+1).padStart(4,"0")}| ${e}`).join(`
|
|
4
|
-
`)}export{s as a,b};
|
package/dist/chunk-KJQNAOOE.js
DELETED
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { createRequire } from 'module'; const require = createRequire(import.meta.url);
|
|
2
|
-
import{a as $,b as C,c as S,d as _}from"./chunk-3UI5VTQS.js";function E(i){return i.replace(/\n$/,"").split(`
|
|
3
|
-
`).map((d,o)=>`${String(o+1).padStart(4,"0")}| ${d}`).join(`
|
|
4
|
-
`)}function L(i,l,d){if(!i.quote)return i;let o=C(d,i.anchor);if(o!==null&&S(i.quote,o))return i;let a=_(l,i.quote);if(a.length!==1)return"gone-or-ambiguous";let[{index:t,length:r}]=a,m=l.slice(0,t).split(`
|
|
5
|
-
`).length,e=l.slice(0,t+r).replace(/\n$/,"").split(`
|
|
6
|
-
`).length;return{...i,anchor:`L${m}-L${e}`}}function k(i,l){let d=l.replace(/\n$/,""),o=E(l),a=t=>{if(!t?.quote)return t;let r=L(t,d,o);return r==="gone-or-ambiguous"?t:r};return{...i,use_cases:i.use_cases.map(t=>({...t,cite:a(t.cite)??t.cite,...t.criteria?{criteria:t.criteria.map(r=>({...r,cite:a(r.cite)??r.cite}))}:{},...t.updated?.criteria?{updated:{...t.updated,criteria:t.updated.criteria.map(r=>"op"in r?r.op==="set"?{...r,cite:a(r.cite)??r.cite}:r:{...r,cite:a(r.cite)??r.cite})}}:{}}))}}function q(i,l,d){let o=[],a=l.mediaOf(i.source.source_cid).images??[],t=d!==void 0?l.mediaOf(d).images??[]:null,r=(e,n)=>{let f=e?$(e.anchor):null;if(!e||f?.kind!=="img-part")return e;if(t===null)return o.push({code:"HELD_CITES_STALE",detail:`${n}: this plan predates image-part staging \u2014 ${e.anchor} cannot be verified against the version it staged under; re-run kane-cli maintain reconcile to re-stage`}),e;let c=t.find(s=>s.ref===f.ref)?.blob;if(c===void 0)return o.push({code:"HELD_CITES_STALE",detail:`${n}: ${e.anchor} names no decodable image of the staged version \u2014 re-run kane-cli maintain reconcile to re-stage`}),e;if(a.some(s=>s.ref===f.ref&&s.blob===c))return e;let p=a.filter(s=>s.blob===c),h=p.filter(s=>s.delivery==="selected");if(h.length===1)return{...e,anchor:`img#${h[0].ref}`};if(p.length===1)return{...e,anchor:`img#${p[0].ref}`};if(p.length===0){let s=t.find(u=>u.ref===f.ref)?.appearance;if(s!==void 0){let u=a.filter(g=>g.appearance===s),b=u.filter(g=>g.delivery==="selected");if(b.length===1)return{...e,anchor:`img#${b[0].ref}`};if(u.length===1)return{...e,anchor:`img#${u[0].ref}`}}}return o.push({code:"HELD_CITES_STALE",detail:`${n}: the image behind ${e.anchor} is ${p.length===0?"no longer in":"ambiguous in"} the current head \u2014 re-run kane-cli maintain reconcile to re-stage`}),e};return{proposal:{...i,use_cases:i.use_cases.map(e=>({...e,cite:r(e.cite,e.temp_ref)??e.cite,...e.criteria?{criteria:e.criteria.map(n=>({...n,cite:r(n.cite,e.temp_ref)??n.cite}))}:{},...e.updated?.criteria?{updated:{...e.updated,criteria:e.updated.criteria.map(n=>"op"in n?n.op==="set"?{...n,cite:r(n.cite,e.temp_ref)??n.cite}:n:{...n,cite:r(n.cite,e.temp_ref)??n.cite})}}:{}}))},errors:o.length>0?o:null}}export{E as a,k as b,q as c};
|
package/dist/chunk-LH4IPANP.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import { createRequire } from 'module'; const require = createRequire(import.meta.url);
|
|
2
|
-
import{y as m}from"./chunk-5TQFOPJV.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-LLG7NEGX.js
DELETED
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { createRequire } from 'module'; const require = createRequire(import.meta.url);
|
|
2
|
-
import{a as v}from"./chunk-QSCXXNC2.js";import{n as g}from"./chunk-RSSOJ3L2.js";import{a as u,b as d}from"./chunk-5TQFOPJV.js";import{existsSync as F}from"fs";import{join as P}from"path";import{mkdirSync as w,rmSync as b,writeFileSync as h}from"fs";import{join as S,resolve as k}from"path";import{join as W}from"path";function f(){return process.env.KANE_CLI_WIRE_BASE_DIR||d}function B(e){return W(f(),"sessions",`testrun-${e}`)}function E(e=f()){return S(e,"sessions","active")}function y(e,r){return S(E(r),`${e}.json`)}function _(e){let r=e.pid??process.pid,n=y(r,e.baseDir);try{w(E(e.baseDir),{recursive:!0}),h(n,JSON.stringify({pid:r,cwd:process.cwd(),surface:e.surface,session_dir:k(e.sessionDir),started:new Date().toISOString(),cli_version:u,host_agent:v()},null,2)+`
|
|
3
|
-
`)}catch{}return n}function m(e=process.pid,r){try{b(y(e,r),{force:!0})}catch{}}var R={run:"run_end",testmd:"test_md_done",testrun:"testrun_done"};import{appendFileSync as A,mkdirSync as I}from"fs";import{dirname as N}from"path";function x(e){let r=!1;return{path:e,append(n){try{r||(I(N(e),{recursive:!0}),r=!0),A(e,n+`
|
|
4
|
-
`)}catch{}}}}function D(e,r=()=>new Date){let{v:n,ts:c,...i}=e;return{...i,v:1,ts:typeof c=="string"?c:r().toISOString()}}function T(e){let r=e.stdout??(t=>{process.stdout.write(t)}),n=R[e.surface],c=!1,i=null,o=null,p=[],l=()=>{if(!(o||!i||!F(i))){o=x(P(i,"events.ndjson"));for(let t of p)o.append(t);p=[];try{e.onAttach?.(i)}catch{}}};return{emit(t){if(c)return;let a=JSON.stringify(D(t,e.now));r(a+`
|
|
5
|
-
`),l(),o?o.append(a):p.push(a),t.type===n&&(c=!0,p=[])},attachSessionDir(t){i=t,l()},setTerminal(t){n=t},get logPath(){return o?o.path:null}}}var s=null;function V(e){return r=>{_({surface:e,sessionDir:r}),g("wire-active-run",()=>m()),process.once("exit",()=>m())}}function ie(e,r){return s=T({surface:e,cliVersion:u,onAttach:r??V(e)}),s.emit({type:"stream_start",cli_version:u,surface:e,pid:process.pid}),s}function oe(){return s}function se(e){if(s){s.emit(e);return}process.stdout.write(JSON.stringify(D(e))+`
|
|
6
|
-
`)}export{B as a,x as b,D as c,ie as d,oe as e,se as f};
|
package/dist/chunk-LSDWPG6C.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import { createRequire } from 'module'; const require = createRequire(import.meta.url);
|
|
2
|
-
import{f}from"./chunk-XLSOQLVT.js";function k(s,n){let t=null;for(let[i,e]of s.designOf)i!==n&&s.tipOf(i)!==n||(t==null||e.seq>t.seq)&&(t={...e,designed_at_cid:i});return t}function $(s,n){let t=new Map;for(let[d,o]of s.superseded)o!=null&&t.set(o,d);let i=[n],e=n;for(;t.has(e);)e=t.get(e),i.unshift(e);return i}function w(s,n,t){let i=s.resolve(n);if(!i){let r=[...s.names.keys()].filter(m=>m.startsWith("uc-")).sort().slice(0,6);return{ok:!1,code:2,message:`unknown use-case '${n}' \u2014 no live node by that logical id or cid${r.length?` (known: ${r.join(", ")})`:""}`}}let e=i.tip;if(s.superseded.has(e)&&s.superseded.get(e)===null)return{ok:!1,code:2,message:`use-case '${n}' was removed (tombstoned) \u2014 nothing to design`};let d=s.nodeLabel.get(e);if(d!==f.USECASE)return{ok:!1,code:2,message:`'${n}' is a ${d??"missing node"}, not a use-case \u2014 design runs per use-case`};let o=s.nameOf.get(e)??s.nameOf.get(i.cid)??e.slice(0,19);if(s.trust.get(e)==="archived"){let r=s.archivedReason.get(e);return{ok:!1,code:2,message:`use-case '${o}' is archived${r?` (${r})`:""} \u2014 design runs only over live use-cases`}}let c=k(s,e);if(c==null||t)return{ok:!0};let l=$(s,e),a=l.length;if(c.designed_at_cid===e)return{ok:!1,code:2,message:`'${o}' is already designed @ v${a} \u2014 current; use --force to redesign`,wall:{kind:"already-designed",display:o,currentV:a}};let u=l.indexOf(c.designed_at_cid),g=u>=0?`v${u+1}`:"an earlier version";return{ok:!1,code:2,message:`'${o}' was designed @ ${g} \u2014 the use-case is now @ v${a} (STALE); use --force to redesign`,wall:{kind:"designed-stale",display:o,currentV:a,designedV:g}}}export{k as a,w as b};
|
package/dist/chunk-MSGW4JDG.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import { createRequire } from 'module'; const require = createRequire(import.meta.url);
|
|
2
|
-
import{createRequire as Sr}from"module";var Ur=Sr("/"),H,Fr,Cr;try{H=Ur("worker_threads"),Fr=H.Worker,Cr=H.isMarkedAsUntransferable}catch{}var g=Uint8Array,k=Uint16Array,Dr=Int32Array,cr=new g([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),pr=new g([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),Tr=new g([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),gr=function(n,r){for(var t=new k(31),e=0;e<31;++e)t[e]=r+=1<<n[e-1];for(var i=new Dr(t[30]),e=1;e<30;++e)for(var l=t[e];l<t[e+1];++l)i[l]=l-t[e]<<5|e;return{b:t,r:i}},H=gr(cr,2),yr=H.b,Ir=H.r;yr[28]=258,Ir[258]=28;var wr=gr(pr,0),Br=wr.b,Rr=wr.r,or=new k(32768);for(f=0;f<32768;++f)B=(f&43690)>>1|(f&21845)<<1,B=(B&52428)>>2|(B&13107)<<2,B=(B&61680)>>4|(B&3855)<<4,or[f]=((B&65280)>>8|(B&255)<<8)>>1;var B,f,Q=(function(n,r,t){for(var e=n.length,i=0,l=new k(r);i<e;++i)n[i]&&++l[n[i]-1];var u=new k(r);for(i=1;i<r;++i)u[i]=u[i-1]+l[i-1]<<1;var o;if(t){o=new k(1<<r);var v=15-r;for(i=0;i<e;++i)if(n[i])for(var s=i<<4|n[i],c=r-n[i],a=u[n[i]-1]++<<c,h=a|(1<<c)-1;a<=h;++a)o[or[a]>>v]=s}else for(o=new k(e),i=0;i<e;++i)n[i]&&(o[i]=or[u[n[i]-1]++]>>15-n[i]);return o}),X=new g(288);for(f=0;f<144;++f)X[f]=8;var f;for(f=144;f<256;++f)X[f]=9;var f;for(f=256;f<280;++f)X[f]=7;var f;for(f=280;f<288;++f)X[f]=8;var f,mr=new g(32);for(f=0;f<32;++f)mr[f]=5;var f;var Zr=Q(X,9,1);var Er=Q(mr,5,1),er=function(n){for(var r=n[0],t=1;t<n.length;++t)n[t]>r&&(r=n[t]);return r},C=function(n,r,t){var e=r/8|0;return(n[e]|n[e+1]<<8)>>(r&7)&t},ir=function(n,r){var t=r/8|0;return(n[t]|n[t+1]<<8|n[t+2]<<16)>>(r&7)},qr=function(n){return(n+7)/8|0},L=function(n,r,t){return(r==null||r<0)&&(r=0),(t==null||t>n.length)&&(t=n.length),new g(n.subarray(r,t))};var Gr=["unexpected EOF","invalid block type","invalid length/literal","invalid distance","stream finished","no stream handler",,"no callback","invalid UTF-8 data","extra field too long","date not in range 1980-2099","filename too long","stream finishing","invalid zip data"],p=function(n,r,t){var e=new Error(r||Gr[n]);if(e.code=n,Error.captureStackTrace&&Error.captureStackTrace(e,p),!t)throw e;return e},xr=function(n,r,t,e){var i=n.length,l=e?e.length:0;if(!i||r.f&&!r.l)return t||new g(0);var u=!t,o=u||r.i!=2,v=r.i;u&&(t=new g(i*3));var s=function(ur){var lr=t.length;if(ur>lr){var vr=new g(Math.max(lr*2,ur));vr.set(t),t=vr}},c=r.f||0,a=r.p||0,h=r.b||0,M=r.l,y=r.d,T=r.m,D=r.n,S=i*8;do{if(!M){c=C(n,a,1);var q=C(n,a+1,3);if(a+=3,q)if(q==1)M=Zr,y=Er,T=9,D=5;else if(q==2){var G=C(n,a,31)+257,O=C(n,a+10,15)+4,P=G+C(n,a+5,31)+1;a+=14;for(var E=new g(P),V=new g(19),w=0;w<O;++w)V[Tr[w]]=C(n,a+w*3,7);a+=O*3;for(var N=er(V),I=(1<<N)-1,$=Q(V,N,1),w=0;w<P;){var j=$[C(n,a,I)];a+=j&15;var z=j>>4;if(z<16)E[w++]=z;else{var x=0,U=0;for(z==16?(U=3+C(n,a,3),a+=2,x=E[w-1]):z==17?(U=3+C(n,a,7),a+=3):z==18&&(U=11+C(n,a,127),a+=7);U--;)E[w++]=x}}var d=E.subarray(0,G),F=E.subarray(G);T=er(d),D=er(F),M=Q(d,T,1),y=Q(F,D,1)}else p(1);else{var z=qr(a)+4,W=n[z-4]|n[z-3]<<8,R=z+W;if(R>i){v&&p(0);break}o&&s(h+W),t.set(n.subarray(z,R),h),r.b=h+=W,r.p=a=R*8,r.f=c;continue}if(a>S){v&&p(0);break}}o&&s(h+131072);for(var b=(1<<T)-1,rr=(1<<D)-1,Y=a;;Y=a){var x=M[ir(n,a)&b],Z=x>>4;if(a+=x&15,a>S){v&&p(0);break}if(x||p(2),Z<256)t[h++]=Z;else if(Z==256){Y=a,M=null;break}else{var _=Z-254;if(Z>264){var w=Z-257,J=cr[w];_=C(n,a,(1<<J)-1)+yr[w],a+=J}var nr=y[ir(n,a)&rr],tr=nr>>4;nr||p(3),a+=nr&15;var F=Br[tr];if(tr>3){var J=pr[tr];F+=ir(n,a)&(1<<J)-1,a+=J}if(a>S){v&&p(0);break}o&&s(h+131072);var fr=h+_;if(h<F){var hr=l-F,Mr=Math.min(F,fr);for(hr+h<0&&p(3);h<Mr;++h)t[h]=e[hr+h]}for(;h<fr;++h)t[h]=t[h-F]}}r.l=M,r.p=Y,r.b=h,r.f=c,M&&(c=1,r.m=T,r.d=y,r.n=D)}while(!c);return h!=t.length&&u?L(t,0,h):t.subarray(0,h)};var K=new g(0);var A=function(n,r){return n[r]|n[r+1]<<8},m=function(n,r){return(n[r]|n[r+1]<<8|n[r+2]<<16|n[r+3]<<24)>>>0},ar=function(n,r){return m(n,r)+m(n,r+4)*4294967296};var Or=(function(){function n(r,t){typeof r=="function"&&(t=r,r={}),this.ondata=t;var e=r&&r.dictionary&&r.dictionary.subarray(-32768);this.s={i:0,b:e?e.length:0},this.o=new g(32768),this.p=new g(0),e&&this.o.set(e)}return n.prototype.e=function(r){if(this.ondata||p(5),this.d&&p(4),!this.p.length)this.p=r;else if(r.length){var t=new g(this.p.length+r.length);t.set(this.p),t.set(r,this.p.length),this.p=t}},n.prototype.c=function(r){this.s.i=+(this.d=r||!1);var t=this.s.b,e=xr(this.p,this.s,this.o);this.ondata(L(e,t,this.s.b),this.d),this.o=L(e,this.s.b-32768),this.s.b=this.o.length,this.p=L(this.p,this.s.p/8|0),this.s.p&=7},n.prototype.push=function(r,t){this.e(r),this.c(t)},n})();function Pr(n,r){return xr(n,{i:2},r&&r.out,r&&r.dictionary)}var sr=typeof TextDecoder<"u"&&new TextDecoder,Nr=0;try{sr.decode(K,{stream:!0}),Nr=1}catch{}var dr=function(n){for(var r="",t=0;;){var e=n[t++],i=(e>127)+(e>223)+(e>239);if(t+i>n.length)return{s:r,r:L(n,t-1)};i?i==3?(e=((e&15)<<18|(n[t++]&63)<<12|(n[t++]&63)<<6|n[t++]&63)-65536,r+=String.fromCharCode(55296|e>>10,56320|e&1023)):i&1?r+=String.fromCharCode((e&31)<<6|n[t++]&63):r+=String.fromCharCode((e&15)<<12|(n[t++]&63)<<6|n[t++]&63):r+=String.fromCharCode(e)}};function zr(n,r){if(r){for(var t="",e=0;e<n.length;e+=16384)t+=String.fromCharCode.apply(null,n.subarray(e,e+16384));return t}else{if(sr)return sr.decode(n);var i=dr(n),l=i.s,t=i.r;return t.length&&p(8),l}}var kr=function(n,r){return r+30+A(n,r+26)+A(n,r+28)},Hr=function(n,r,t){var e=A(n,r+28),i=A(n,r+30),l=zr(n.subarray(r+46,r+46+e),!(A(n,r+8)&2048)),u=r+46+e,o=Ar(n,u,i,t,m(n,r+20),m(n,r+24),m(n,r+42)),v=o[0],s=o[1],c=o[2];return[A(n,r+10),v,s,l,u+i+A(n,r+32),c]},Ar=function(n,r,t,e,i,l,u){var o=i==4294967295,v=l==4294967295,s=u==4294967295,c=r+t,a=o+v+s;if(e&&a){for(;r+4<c;r+=4+A(n,r+2))if(A(n,r)==1)return[o?ar(n,r+4+8*v):i,v?ar(n,r+4):l,s?ar(n,r+4+8*(v+o)):u,1];e<2&&p(13)}return[i,l,u,0]};var Lr=(function(){function n(){}return n.prototype.push=function(r,t){this.ondata(null,r,t)},n.compression=0,n})();var Vr=(function(){function n(){var r=this;this.i=new Or(function(t,e){r.ondata(null,t,e)})}return n.prototype.push=function(r,t){try{this.i.push(r,t)}catch(e){this.ondata(e,null,t)}},n.compression=8,n})();var Yr=(function(){function n(r){this.onfile=r,this.k=[],this.o={0:Lr},this.p=K}return n.prototype.push=function(r,t){var e=this;if(this.onfile||p(5),this.p||p(4),this.c>0){var i=Math.min(this.c,r.length),l=r.subarray(0,i);if(this.c-=i,this.d?this.d.push(l,!this.c):this.k[0].push(l),r=r.subarray(i),r.length)return this.push(r,t)}else{var u=0,o=0,v=void 0,s=void 0;this.p.length?r.length?(s=new g(this.p.length+r.length),s.set(this.p),s.set(r,this.p.length)):s=this.p:s=r;for(var c=s.length,a=this.c,h=a&&this.d,M=function(){var S=m(s,o);if(S==67324752){u=1,v=o,y.d=null,y.c=0;var q=A(s,o+6),z=A(s,o+8),W=q&2048,R=q&8,G=A(s,o+26),O=A(s,o+28);if(c>o+30+G+O){var P=[];y.k.unshift(P),u=2;var E=m(s,o+18),V=m(s,o+22),w=zr(s.subarray(o+30,o+=30+G),!W),N=Ar(s,o,O,2,E,V,0),I=N[0],$=N[1],j=N[3];R&&(I=-1-j),o+=O,y.c=I;var x,U={name:w,compression:z,start:function(){if(U.ondata||p(5),!I)U.ondata(null,K,!0);else{var d=e.o[z];d||U.ondata(p(14,"unknown compression type "+z,1),null,!1),x=I<0?new d(w):new d(w,I,$),x.ondata=function(Y,Z,_){U.ondata(Y,Z,_)};for(var F=0,b=P;F<b.length;F++){var rr=b[F];x.push(rr,!1)}e.k[0]==P&&e.c?e.d=x:x.push(K,!0)}},terminate:function(){x&&x.terminate&&x.terminate()}};I>=0&&(U.size=I,U.originalSize=$),y.onfile(U)}return"break"}else if(a){if(S==134695760)return v=o+=12+(a==-2&&8),u=3,y.c=0,"break";if(S==33639248)return v=o-=4,u=3,y.c=0,"break"}},y=this;o<c-4;++o){var T=M();if(T==="break")break}if(this.p=K,a<0){var D=u?s.subarray(0,v-12-(a==-2&&8)-(m(s,v-16)==134695760&&4)):s.subarray(0,o);h?h.push(D,!!u):this.k[+(u==2)].push(D)}if(u&2)return this.push(s.subarray(o),t);this.p=s.subarray(o)}t&&(this.c&&p(13),this.p=null)},n.prototype.register=function(r){this.o[r.compression]=r},n})();function Jr(n,r){for(var t={},e=n.length-22;m(n,e)!=101010256;--e)(!e||n.length-e>65558)&&p(13);var i=A(n,e+8);if(!i)return{};var l=m(n,e+16),u=m(n,e-20)==117853008;if(u){var o=m(n,e-12);u=m(n,o)==101075792,u&&(i=m(n,o+32),l=m(n,o+48))}for(var v=r&&r.filter,s=0;s<i;++s){var c=Hr(n,l,u),a=c[0],h=c[1],M=c[2],y=c[3],T=c[4],D=c[5],S=kr(n,D);l=T,(!v||v({name:y,size:h,originalSize:M,compression:a}))&&(a?a==8?t[y]=Pr(n.subarray(S,S+h),{out:new g(M)}):p(14,"unknown compression type "+a):t[y]=L(n,S,S+h))}return t}export{Lr as a,Vr as b,Yr as c,Jr as d};
|
package/dist/chunk-NJ4BXZBX.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import { createRequire } from 'module'; const require = createRequire(import.meta.url);
|
|
2
|
-
import{a as B}from"./chunk-D6E6KRVX.js";import{F,M as T,m as O}from"./chunk-RDHWNSDP.js";function P(h){let{contextDir:x,graph:f,seq:r,by:i}=h,{records:u,hashes:v}=F(x);if(!Number.isInteger(r)||r<1||r>u.length)return{record:null,warnings:[],errors:[{code:"UNKNOWN_SEQ",detail:`no record ${r} (chain has ${u.length})`}]};let d=u[r-1],p=u.slice(0,r-1),c=h.reason??`revert of record ${r}`,n=[],l=[],g=[],m=[],w={},C=new Set(d.nodes.map(e=>e.cid)),k=new Map;for(let e of u)for(let t of e.edges)k.has(t.ecid)||k.set(t.ecid,t);let N=e=>u.slice(r).some(t=>t.supersessions.some(s=>s.kind==="edge"&&s.ecid===e)),$=new Set,y=new Set;for(let e of d.nodes){if(f.superseded.has(e.cid)){$.add(e.cid),n.push(`${e.cid} was already superseded after record ${r} \u2014 left as is`);continue}y.add(e.cid),l.push({kind:"node",old:e.cid,new:null,reason:c,by:i})}let R=new Set;for(let e of d.edges){if(f.superseded.has(e.ecid)){n.push(`edge ${e.ecid} was already retracted after record ${r} \u2014 left as is`);continue}if(($.has(e.src)||$.has(e.dst))&&!y.has(e.src)&&!y.has(e.dst)){n.push(`edge ${e.ecid} was minted with a kept node \u2014 left as is`);continue}l.push({kind:"edge",ecid:e.ecid,reason:c,by:i}),R.add(e.ecid)}let _=new Set;for(let e of d.supersessions){if(e.kind!=="node")continue;if(u.slice(r).some(s=>s.supersessions.some(o=>o.kind==="node"&&o.old===e.old))){n.push(`supersession of ${e.old.slice(0,19)} was changed again after record ${r} \u2014 later state kept`);continue}let t;for(let s of p)for(let o of s.supersessions)o.kind==="node"&&o.old===e.old&&(t=o.new===o.old?void 0:o.new);t===void 0?(l.push({kind:"node",old:e.old,new:e.old,reason:c,by:i}),_.add(e.old)):l.push({kind:"node",old:e.old,new:t,reason:c,by:i})}for(let e of d.supersessions)if(!(e.kind!=="edge"||!e.revoke)){if(N(e.ecid)){n.push(`edge ${e.ecid} was touched again after record ${r} \u2014 later state kept`);continue}l.push({kind:"edge",ecid:e.ecid,reason:c,by:i}),R.add(e.ecid)}let j=[];for(let e of d.supersessions){if(e.kind!=="edge"||e.revoke)continue;if(N(e.ecid)){n.push(`edge ${e.ecid} was touched again after record ${r} \u2014 later state kept`);continue}let t=!1;for(let I of p)for(let S of I.supersessions)S.kind==="edge"&&S.ecid===e.ecid&&(t=!S.revoke);if(t){n.push(`edge ${e.ecid} was already retracted before record ${r} \u2014 left retracted`);continue}let s=k.get(e.ecid);if(!s){n.push(`edge ${e.ecid} is unknown to the chain \u2014 left retracted`);continue}if(f.superseded.has(s.src)&&!_.has(s.src)){n.push(`edge ${e.ecid} would revive from a superseded source \u2014 left retracted`);continue}let o=f.tipOf(s.dst);if(f.superseded.has(o)&&!_.has(o)){n.push(`edge ${e.ecid} would point at a retired destination \u2014 left retracted`);continue}let a=B(f,{type:s.type,src:s.src,dst:s.dst},{pending:j,retracted:R},`revert revive ${s.type}`);if(a){n.push(`edge ${e.ecid} left retracted \u2014 reviving it would double an occupied slot (${a.detail})`);continue}l.push({kind:"edge",ecid:e.ecid,reason:c,by:i,revoke:!0}),j.push({src:s.src,dst:s.dst,type:s.type})}let b=u.slice(r);for(let e of Object.keys(d.source_head_moves)){if(b.some(s=>e in s.source_head_moves)){n.push(`head of ${e} was moved again after record ${r} \u2014 later state kept`);continue}let t=null;for(let s of p)e in s.source_head_moves&&(t=s.source_head_moves[e]);w[e]=t}let E=new Set;for(let e of d.review){if(E.has(e.id)||C.has(e.id))continue;if(E.add(e.id),b.some(o=>o.review.some(a=>a.id===e.id))){n.push(`trust of ${e.id.slice(0,19)} was reviewed again after record ${r} \u2014 later state kept`);continue}let t=null,s=null;for(let o of p)for(let a of o.review)a.id===e.id&&(t=a.resolution==="reset"?null:a.resolution,s=a.reason);t==="approved"||t==="edited"?g.push({id:e.id,kind:"review-item",resolution:"approved",edit:null,reason:c,by:i}):t==="rejected"?g.push({id:e.id,kind:"review-item",resolution:"rejected",edit:null,reason:s??c,by:i}):g.push({id:e.id,kind:"review-item",resolution:"reset",edit:null,reason:c,by:i})}for(let e of d.names??[]){if(b.some(s=>(s.names??[]).some(o=>o.slug===e.slug))){n.push(`slug "${e.slug}" was reassigned after record ${r} \u2014 later state kept`);continue}let t;for(let s of p)for(let o of s.names??[])o.slug===e.slug&&(t=o.cid);t!==void 0?m.push({cid:t,slug:e.slug,by:i}):n.push(`slug "${e.slug}" was first assigned by record ${r} \u2014 unassignment unsupported, reassign manually`)}return l.length===0&&g.length===0&&m.length===0&&Object.keys(w).length===0?{record:null,warnings:n,errors:[{code:"NOTHING_TO_REVERT",detail:`record ${r} left no compensable facts`}]}:(d.extraction_of&&n.push(`extraction cache for ${d.extraction_of.slice(0,19)} stays \u2014 re-extract with --force`),{record:T(x,{ts:new Date().toISOString(),proposal_id:null,nodes:[],edges:[],review:g,supersessions:l,...m.length>0?{names:m}:{},source_head_moves:w},{expectPrev:v[v.length-1]??null,intent:{v:1,verb:"revert",args:O({seq:r,reason:h.reason??null,by:i}),pins:{target:{seq:r,hash:v[r-1]}}},provenance:h.provenance}).record,warnings:n,errors:null})}export{P as a};
|
package/dist/chunk-NLCCBXXV.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import { createRequire } from 'module'; const require = createRequire(import.meta.url);
|
|
2
|
-
import{a}from"./chunk-RZ4F3BHX.js";function c(n,r){return`Basic ${Buffer.from(`${n}:${r}`).toString("base64")}`}var u=class{constructor(r,e){this.baseUrl=r;typeof e=="string"?this.authHeader=`Bearer ${e}`:this.authHeader=c(e.username,e.accessKey)}authHeader;headers(){return{Authorization:this.authHeader,"Content-Type":"application/json",Accept:"application/json"}}async request(r,e,s,d){let o=new AbortController,i=setTimeout(()=>o.abort(),3e4);try{let t=await a(`${this.baseUrl}${e}`,{method:r,headers:{...this.headers(),...d},...s!==void 0?{body:JSON.stringify(s)}:{},signal:o.signal});if(clearTimeout(i),!t.ok){let g=await t.text();throw new Error(`${r} ${e} failed: ${t.status} ${g}`)}return(t.headers.get("content-type")??"").includes("application/json")?await t.json():await t.text()}catch(t){throw clearTimeout(i),t instanceof DOMException&&t.name==="AbortError"?new Error(`${r} ${e} timed out after 30s`):t}}};export{c as a,u as b};
|
package/dist/chunk-NMSZ7G6P.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import { createRequire } from 'module'; const require = createRequire(import.meta.url);
|
|
2
|
-
import{x as s}from"./chunk-5TQFOPJV.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,mobileHubUrl:process.env.KANE_STAGE_MOBILE_HUB_URL??e.mobileHubUrl,lrmaaBaseUrl:process.env.KANE_STAGE_LRMAA_URL??e.lrmaaBaseUrl,deviceStreamUrl:process.env.KANE_STAGE_DEVICE_STREAM_URL??e.deviceStreamUrl}}export{n as a};
|
package/dist/chunk-OC6H6BYI.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-OXC6O5O7.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-OJAXOOZ5.js
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { createRequire } from 'module'; const require = createRequire(import.meta.url);
|
|
2
|
-
import{a as N,c as V}from"./chunk-Q6AHSGOE.js";import{b as Y}from"./chunk-LDPLJFCV.js";import{a as k}from"./chunk-LSDWPG6C.js";import{a as M,b as U}from"./chunk-UJZZDPDY.js";import{b as B}from"./chunk-5ZFOKYFB.js";import{a as K}from"./chunk-BZAGVBCX.js";import{P as E,Q as F,S as L}from"./chunk-GTVQYT3D.js";import{B as I,z as A}from"./chunk-IICT4VOU.js";import{f as p,g as $}from"./chunk-XLSOQLVT.js";var q=new Set([p.USECASE,p.SCENARIO,p.AC,p.TEST]);function w(t,e){return!t.superseded.has(e)&&t.trust.get(e)!=="archived"}function T(t,e,n){let r=t.edgesFrom(e).find(s=>s.type===n);return r?t.tipOf(r.dst):null}function _(t,e,n){if(n===p.USECASE)return e;if(n===p.SCENARIO)return T(t,e,$.BELONGS_TO);if(n===p.AC){let r=T(t,e,$.SCOPED_TO);return r?t.nodeLabel.get(r)===p.USECASE?r:T(t,r,$.BELONGS_TO):null}if(n===p.TEST){let r=T(t,e,$.AUTOMATES);return r?T(t,r,$.BELONGS_TO):null}return null}function G(t,e){let n=t.nameOf.get(e);if(n)return n;for(let[r,s]of t.names)if(t.tipOf(s)===e)return r;return e}function J(t,e){return{ucTip:e,display:G(t,e),seamRef:t.nameOf.get(e)??e}}function se(t,e){let n=t.resolve(e);if(!n)return{ok:!1,message:`unknown ref '${e}' \u2014 no test/scenario/ac/use-case by that id or cid`};let r=n.tip,s=t.nodeLabel.get(r);if(!s||!q.has(s))return{ok:!1,message:`'${e}' is a ${s??"missing node"} \u2014 evolve takes a test, scenario, acceptance criterion, or use-case`};let o=_(t,r,s);return!o||t.nodeLabel.get(o)!==p.USECASE?{ok:!1,message:`cannot resolve '${e}' to a parent use-case \u2014 its ${s} chain is broken`}:t.superseded.has(o)?{ok:!1,message:`use-case ${G(t,o)} was removed \u2014 nothing to evolve`}:t.trust.get(o)==="archived"?{ok:!1,message:`use-case ${G(t,o)} was archived \u2014 nothing to evolve`}:{ok:!0,target:J(t,o)}}function Ie(t,e){return R(t,e)}function R(t,e){let n=[];for(let{cid:s}of t.byLabel(p.SCENARIO)){if(!w(t,s)||!t.edgesFrom(s).some(i=>i.type===$.BELONGS_TO&&t.tipOf(i.dst)===e))continue;let o=t.edgesInto(s).filter(i=>i.type===$.AUTOMATES&&w(t,i.src));if(o.length===0)n.push({scenario:s,test:null});else for(let i of o)n.push({scenario:s,test:i.src})}let r=new Map;for(let{cid:s}of t.byLabel(p.AC)){if(!w(t,s)||_(t,s,p.AC)!==e)continue;let o=t.edgesInto(s).filter(i=>i.type===$.VERIFIES&&w(t,i.src)).map(i=>i.src).sort();r.set(s,o)}return{pairs:n,verifies:r}}function re(t,e){let n=i=>`${i.scenario}\0${i.test??""}`,r=new Set(t.pairs.map(n)),s=new Set(e.pairs.map(n)),o=[];for(let[i,c]of t.verifies){let d=e.verifies.get(i);d&&(c.length===d.length&&c.every((f,u)=>f===d[u])||o.push({ac:i,before:c,after:d}))}return{superseded:t.pairs.filter(i=>!s.has(n(i))),minted:e.pairs.filter(i=>!r.has(n(i))),retained:e.pairs.filter(i=>r.has(n(i))),moves:o}}function ie(t,e,n,r,s){let o=c=>e.nameOf.get(c)??c,i=c=>` - ${o(c.scenario)} \xB7 ${c.test?o(c.test):"(no test)"}`;t.out(`evolved: use-case ${n} \u2014 design record ${r.before} \u2192 ${r.after}`),t.out(` superseded ${s.superseded.length} pair(s)`);for(let c of s.superseded)t.out(i(c));t.out(` minted ${s.minted.length} pair(s)`);for(let c of s.minted)t.out(i(c));t.out(` retained ${s.retained.length} pair(s)`);for(let c of s.retained)t.out(i(c));if(s.moves.length===0)t.out(" verifies none moved");else{t.out(" verifies moved:");for(let c of s.moves){let d=f=>f.length>0?f.map(o).join(" + "):"(none)";t.out(` - ${o(c.ac)}: ${d(c.before)} \u2192 ${d(c.after)}`)}}}async function j(t,e,n,r,s,o,i,c){let d=A(t),f=k(d,e.ucTip);if(!f)return o==="batch"?(r.out(`note: ${e.display} has no design output \u2014 nothing to evolve; run kane-cli design tests --use-case ${e.display} first`),c?.({type:"evolve_skipped",use_case:e.display,reason:"no-design"}),{code:0,outcome:"no-design"}):(E(r,`nothing to evolve \u2014 run kane-cli design tests --use-case ${e.display} first (no design output)`),{code:2,outcome:"no-design"});let u=R(d,e.ucTip),g=[`evolve ${e.display}`,` re-designs use-case ${e.display}`,` affects ${u.pairs.length} pair(s)`,...n.because?[` because ${n.because}`]:[]];if(n.yes)for(let S of g)r.out(S);else{for(let b of g)r.out(b);if(!await r.confirm(`proceed with the re-design of ${e.display}?`))return r.out(o==="batch"?`skipped ${e.display}`:"declined \u2014 nothing evolved"),{code:0,outcome:"declined"}}let h=e.named?de(e.named):void 0,m=V(t,d,e.ucTip,n.because,h),v=e.named?fe(d,e.named,e.display,n.because,e.ucTip):void 0,l=await M(i,{verb:"evolve",subject:e.display},()=>s(e.seamRef,{yes:!!n.yes,...n.mode?{mode:n.mode}:{},...n.because?{because:n.because}:{},...m!==void 0?{changeDelta:m.change_delta,priorDesign:m.prior_design}:{},...c?{onChildEvent:c}:{},...v?{statement:v}:{}}),S=>({ok:S===0,exitCode:S}));if(l===3)return r.out(`design session for ${e.display} paused \u2014 resume with \`kane-cli design tests --resume\`, then re-run evolve for the diff`),{code:l,outcome:"paused"};if(l!==0)return E(r,`design run for ${e.display} ended with exit code ${l} \u2014 no diff to report`),{code:l,outcome:"failed"};let a=A(t),y=a.tipOf(e.ucTip),O=k(a,y)?.seq,C={before:f.seq,after:O??"?"},x=re(u,R(a,y));return ie(r,a,e.display,C,x),c?.(me(a,e.display,C,x)),{code:0,outcome:"evolved"}}function oe(t){let e=new Map,n=0;for(let{cid:s,state:o}of t.staleList()){if(o==="superseded")continue;let i=t.nodeLabel.get(s);if(!i||!q.has(i)||!w(t,s)||!I(t,s))continue;let c=_(t,s,i);!c||t.nodeLabel.get(c)!==p.USECASE||!w(t,c)||(n++,e.has(c)||e.set(c,J(t,c)))}return{targets:[...e.values()].sort((s,o)=>s.display<o.display?-1:s.display>o.display?1:0),staleCount:n}}function ae(t,e){for(let{cid:n,state:r}of t.staleList()){if(r==="superseded")continue;let s=t.nodeLabel.get(n);if(!(!s||!q.has(s)||!w(t,n))&&I(t,n)&&_(t,n,s)===e)return!0}return!1}async function Q(t,e,n,r={},s=process.cwd()){let o=e.mode==="agent";if(t&&e.fromStale)return E(n,"pass a <ref> OR --from-stale, not both"),2;if(!t&&!e.fromStale)return E(n,"evolve needs a <ref> or --from-stale"),2;if(!o&&(e.answer?.length??0)>0)return E(n,"--answer rides --mode agent: the blast-radius question is asked on the stream and answered on the next call. In a terminal, answer the prompt instead"),2;let i=F(s,n);if(!i)return 2;let c=r.runDesignForUc??we,d=r.emitEvent,f=r.onChild??(d?be(d):n.isTTY?$e(n):void 0);n.out(`evolving ${t??"stale use-cases"}: reading the graph\u2026`);let u=A(i),g,h=null,m;if(t){let l=se(u,t);if(!l.ok)return E(n,l.message),2;if(!e.because&&k(u,l.target.ucTip)&&!ae(u,l.target.ucTip))return E(n,`nothing changed underneath ${t} \u2014 its sources and requirements are current; use --because "<reason>" to re-design anyway`),2;let a=ce(u,t);g=[{...l.target,ref:t,...a?{named:a}:{}}]}else{let{targets:l,staleCount:a}=oe(u);if(l.length===0){if(o&&(e.answer?.length??0)>0){let y=ee(e.answer,[]);if("error"in y)return te(n,y.error)}return d?.({type:"evolve_batch",stale_nodes:a,use_cases:0}),n.out("nothing stale \u2014 nothing to evolve"),0}h=`from-stale: ${a} stale node(s) \u2192 ${l.length} use-case(s)`,m={stale_nodes:a,use_cases:l.length},g=l}if(!e.yes&&!n.isTTY&&!o)return E(n,"evolve needs a TTY \u2014 the blast-radius confirm is the point; headless, run with --mode agent (the question rides the stream and is answered with --answer on the next call) or let kane-cli maintain reconcile drive it"),2;if(h&&n.out(h),o)return Ee({ref:t,opts:e,io:n,dir:i,graph:u,targets:g,batch:m,runDesign:c,onChild:f,emit:d??(()=>{})});if(t){let l=await j(i,g[0],e,n,c,"single",f);return l.outcome==="evolved"&&e.because&&P(i,t,e.because),l.code}let v=[];for(let l of g){let a=await j(i,l,e,n,c,"batch",f);a.outcome==="evolved"&&e.because&&P(i,l.display,e.because),v.push(a.code)}return X(v)}function X(t){let e=t.find(n=>n!==0&&n!==3);return e!==void 0?e:t.includes(3)?3:0}function P(t,e,n){K(t,{ts:new Date().toISOString(),command:"evolve",id:e,verdict:"gap-resolved-evolve",polarity:"preference",by:{kind:"human",id:process.env.USER??"operator"},target:e,reason:n})}var z={[p.TEST]:"test",[p.SCENARIO]:"scenario",[p.AC]:"ac",[p.USECASE]:"usecase"},Z={test:"test",scenario:"scenario",ac:"acceptance criterion",usecase:"use-case"},W=120;function ce(t,e){let n=t.resolve(e);if(!n)return null;let r=z[t.nodeLabel.get(n.tip)??""];if(!r)return null;let s=t.getNode(n.tip)?.content??{},o=r==="ac"?s.text:s.title,i=typeof o=="string"?o.replace(/[\u0000-\u001f\u007f]+/g," ").trim():"",c=Array.from(i),d=c.length===0?void 0:c.length>W?`${c.slice(0,W-1).join("")}\u2026`:i,f=t.superseded.has(n.tip)?"removed":t.trust.get(n.tip)==="archived"?"archived":void 0;return{ref:t.nameOf.get(n.tip)??t.displayNameOf(n.tip)??e,label:r,...d?{title:d}:{},cid:n.tip,...f?{dead:f}:{}}}function de(t){if(!t.dead)return{ref:t.ref,label:t.label,...t.title?{title:t.title}:{}}}function ue(t,e,n){let r=[];for(let{cid:s,state:o}of t.staleList()){if(o==="superseded"||s===n)continue;let i=t.nodeLabel.get(s),c=z[i??""];if(!i||!c||!w(t,s)||!I(t,s)||_(t,s,i)!==e)continue;let d=N(t,s);if(!d)continue;let f=t.nameOf.get(s)??t.displayNameOf(s)??s;r.push({display:f,text:`${Z[c]} ${f} \u2014 ${d}`})}return r.sort((s,o)=>s.display<o.display?-1:s.display>o.display?1:0),r[0]?.text??null}var le=`Judge the scope yourself: change what this genuinely affects and leave the rest as designed.
|
|
3
|
-
If it is ambiguous what should change, ask before changing anything.`;function fe(t,e,n,r,s){let o=e.label==="usecase"?"":` in use-case ${n}`,i=[e.title?`"${e.title}"`:"",e.dead?`${e.dead} earlier`:""].filter(Boolean).join(", "),c=`[kane] evolve started on ${Z[e.label]} ${e.ref}${i?` (${i})`:""}${o}.`,d=r?.trim(),f=d||e.dead?void 0:N(t,e.cid),u=d?void 0:f??(s?ue(t,s,e.cid):null),g=d?`Because: ${d}`:u?`Stale: ${u}`:null;return[c,g,le].filter(h=>h!==null).join(`
|
|
4
|
-
`)}function D(t){return`evolve:${t.display}`}function ge(t,e,n){return{type:"evolve_target",...t.ref!==void 0?{ref:t.ref}:{},use_case:t.display,pairs:e,...n?{because:n}:{}}}function pe(t,e,n){return{id:D(t),header:"Re-design?",text:`Re-design use-case ${t.display}? ${e} scenario/test pair(s) are affected${n?` \u2014 because: ${n}`:""}.`,risk:"med",rationale:"evolve re-designs the whole parent use-case: what the change touches is superseded, the rest is re-emitted verbatim; the run spends design credits",options:[{label:"proceed",detail:`re-design use-case ${t.display} now (${e} pair(s) affected)`},{label:"decline",detail:"leave the current design as it is"}],recommended_index:0,allow_free_text:!1}}function me(t,e,n,r){let s=i=>t.nameOf.get(i)??i,o=i=>({scenario:s(i.scenario),test:i.test?s(i.test):null});return{type:"evolve_diff",use_case:e,generation:n,superseded:r.superseded.map(o),minted:r.minted.map(o),retained:r.retained.map(o),moves:r.moves.map(i=>({ac:s(i.ac),before:i.before.map(s),after:i.after.map(s)}))}}function ve(t){return`'${t.replace(/'/g,"'\\''")}'`}function he(t,e,n){return`kane-cli maintain evolve ${t??"--from-stale"}${e?` --because ${ve(e)}`:""} --mode agent`+[...n.entries()].map(([s,o])=>` --answer ${s}=${o==="proceed"?1:2}`).join("")}function ye(t){if(t.optionIndex===0)return"proceed";if(t.optionIndex===1)return"decline";if(t.optionIndex!==void 0)return null;let e=(t.freeText??"").trim().toLowerCase();return e==="proceed"||e==="yes"||e==="y"?"proceed":e==="decline"||e==="no"||e==="n"?"decline":null}function ee(t,e){let n=new Map;if(!t||t.length===0)return n;let r=B({answer:t});if(!r.ok)return{error:r.error};for(let s of r.value?.answers??[]){if(!e.includes(s.target))return{error:`${s.target} is not a question this run asks \u2014 addressable: ${e.length>0?e.join(", "):"(none)"}`};let o=ye(s);if(o===null)return{error:`'${s.optionIndex!==void 0?String(s.optionIndex+1):s.freeText??""}' is not a choice for ${s.target} \u2014 use 1 or proceed, 2 or decline`};n.set(s.target,o)}return n}function te(t,e){return t.err?t.err(`error: ${e}`,"ANSWER_USAGE"):t.out(`error: ${e}`),2}function be(t){return e=>{e.kind==="start"?t({type:"child_start",child:"design",subject:e.subject}):e.kind==="end"&&t({type:"child_end",ok:e.ok,dur_s:e.durS,...e.exitCode!==void 0?{exit_code:e.exitCode}:{}})}}async function Ee(t){let{ref:e,opts:n,io:r,dir:s,graph:o,targets:i,batch:c,runDesign:d,onChild:f,emit:u}=t,g=[],h=[];for(let a of i){if(!k(o,a.ucTip)){if(e)return E(r,`nothing to evolve \u2014 run kane-cli design tests --use-case ${a.display} first (no design output)`),2;h.push(a);continue}g.push({target:a,pairs:R(o,a.ucTip).pairs.length})}let m=ee(n.answer,g.map(a=>D(a.target)));if("error"in m)return te(r,m.error);c&&u({type:"evolve_batch",...c});for(let a of h)r.out(`note: ${a.display} has no design output \u2014 nothing to evolve; run kane-cli design tests --use-case ${a.display} first`),u({type:"evolve_skipped",use_case:a.display,reason:"no-design"});for(let a of g)u(ge(a.target,a.pairs,n.because));let v=g.filter(a=>!m.has(D(a.target)));if(v.length>0){let a=he(e,n.because,m),y=b=>a+v.map(ne=>` --answer ${D(ne.target)}=${b==="proceed"?1:2}`).join(""),O=v.length===1?`use-case ${v[0].target.display}`:`${v.length} use-cases`,C=[...m.values()].filter(b=>b==="proceed").length,x=C>0?`; the ${C} use-case(s) already answered proceed still re-design`:"",S=[{cmd:y("proceed"),why:`re-design ${O} now \u2014 supersedes what the change touches, spends design credits${x}`,title:C>0?"Proceed with the remaining re-design":"Proceed with the re-design"},{cmd:y("decline"),why:`leave ${O} as designed${x}`,title:C>0?"Decline the remaining question(s)":"Decline"}].filter(b=>Y(b.cmd));return u({type:"evolve_paused",pending_questions:v.map(b=>pe(b.target,b.pairs,n.because)),resume:a,next:S}),3}let l=[];for(let{target:a}of g){if(m.get(D(a))==="decline"){r.out(e?"declined \u2014 nothing evolved":`skipped ${a.display}`),u({type:"evolve_skipped",use_case:a.display,reason:"declined"});continue}let O=await j(s,a,{...n,yes:!0},r,d,e?"single":"batch",f,u);O.outcome==="evolved"&&n.because&&P(s,e??a.display,n.because),l.push(O.code)}return X(l)}function $e(t){let e="",n="evolve";return r=>{r.kind==="start"?(e=r.subject,n=r.verb,t.out(`\u25CF ${U(r.verb).ing} ${r.subject}`)):r.kind==="end"&&t.out(r.ok?`\u25CF ${U(n).ed} ${e} \u2014 ${r.durS}s`:`\u25CF ${n} failed \u2014 ${r.exitCode!=null?`exited ${r.exitCode}`:"error"}${r.fixCmd?` \xB7 ${r.fixCmd}`:""}`)}}var we=async(t,e)=>{let{designTestsCommand:n}=await import("./bind-ZYESQSCJ.js"),r=()=>n({useCase:t,force:!0,...e.mode?{mode:e.mode}:e.yes?{mode:"override"}:{},...e.because?{because:e.because}:{},...e.changeDelta!==void 0?{changeDelta:e.changeDelta}:{},...e.priorDesign!==void 0?{priorDesign:e.priorDesign}:{},...e.statement?{statement:e.statement}:{}});if(e.mode!=="agent")return r();let s=e.onChildEvent,o=process.stdout.write,i="";process.stdout.write=((c,d,f)=>{if(s){i+=typeof c=="string"?c:Buffer.isBuffer(c)?c.toString("utf8"):String(c);let g=i.indexOf(`
|
|
5
|
-
`);for(;g>=0;)H(i.slice(0,g),s),i=i.slice(g+1),g=i.indexOf(`
|
|
6
|
-
`)}let u=typeof d=="function"?d:f;return typeof u=="function"&&queueMicrotask(()=>u(null)),!0});try{return await r()}finally{process.stdout.write=o,s&&i.length>0&&H(i,s)}};function H(t,e){let n=t.trim();if(!n.startsWith("{"))return;let r;try{r=JSON.parse(n)}catch{return}if(!r||typeof r!="object"||typeof r.type!="string")return;let s=r;s.type!=="done"&&e(s)}async function Re(t,e,n={},r,s=process.cwd()){let{makeHeadlessIO:o,agentRefusal:i}=await import("./headless-io-75HUMWZB.js");if(e.mode!==void 0&&e.mode!=="interactive"&&e.mode!=="agent")return i(o("ndjson","evolve",r),`--mode must be interactive | agent, got '${e.mode}'`,"MODE_USAGE");if(e.mode==="agent"){let d=process.stdout.write.bind(process.stdout),f=process.stderr.write.bind(process.stderr),u=o("ndjson","evolve",r??{stdout:a=>{d(a)},stderr:a=>{f(a)}}),g=[],h=a=>{(a.type==="evolve_paused"||a.type==="session_paused")&&Array.isArray(a.next)&&g.push(...a.next),u.event(a)},m={out:u.out,err:(a,y)=>u.event({type:"error",message:a,...y?{code:y}:{}}),isTTY:!1,confirm:async()=>!1,ask:async()=>""},{runWithChannel:v}=await import("./run-channel-RGH4WIQX.js"),l=2;try{l=await v({event:a=>u.event(a)},()=>Q(t,e,m,{...n,emitEvent:h},s))}catch(a){l=1,u.event({type:"error",message:a instanceof Error?a.message:String(a)})}return u.done(l,void 0,g.length>0?g:void 0)}let c=r?{...L(),out:d=>r.stdout(`${d}
|
|
7
|
-
`),err:d=>r.stderr(`${d}
|
|
8
|
-
`),isTTY:!1}:L();return Q(t,e,c,n,s)}export{se as a,Ie as b,j as c,oe as d,Q as e,ce as f,le as g,fe as h,we as i,H as j,Re as k};
|
package/dist/chunk-OMNLAGQC.js
DELETED
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import { createRequire } from 'module'; const require = createRequire(import.meta.url);
|
|
2
|
-
import{d as w}from"./chunk-HGFWIBVF.js";import{b,c as v}from"./chunk-VZ7KXRXB.js";import{b as $}from"./chunk-RDHWNSDP.js";import{b as E}from"./chunk-FQNQVC5O.js";var _=new Set(["delta","state-transition"]),N=/^capture baseline:/i;function R(e){return typeof e=="string"?e:e.text}function j(e){return typeof e=="object"&&e.baseline===!0||N.test(R(e).trim())}function T(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)&&"derived"in e}function M(e,i){if(e.check_prose)return e.check_prose;let t=i.find(o=>o.ref===e.check.verified_against),n=t?.text?` \u2014 the stated promise: ${t.text}`:"",s=String(e.check.operand??e.check.within??e.check.metric??"");return e.check.kind==="forbidden-presence"?`Confirm '${s}' does NOT appear (forbidden-presence)${n}`:`Confirm ${e.check.kind} check: ${s} (${e.check.operator})${n}`}var F=/^## Step \d+ — assert\s*$/;function ae(e,i){let t=e.split(`
|
|
3
|
-
`),n=!1;for(let s=0;s<t.length;s++){let o=/^(##\s.*?)\s@verifies\s+(.+?)\s*$/.exec(t[s]);if(!o)continue;n=!0;let c=o[2].split(",").map(a=>a.trim()).filter(Boolean).map(a=>{let r=i(a)??(a.startsWith("ac-")?a:null);if(!r)throw new Error(`@verifies ref '${a}' does not resolve to a committed AC`);return r});t[s]=`${o[1]} @verifies ${c.join(", ")}`}return{md:t.join(`
|
|
4
|
-
`),tagged:n}}function de(e,i){if(i.length!==0&&!e.split(`
|
|
5
|
-
`).some(t=>/^##\s/.test(t)&&w.test(t)))throw new Error("generated body has no @verifies binding for its ACs \u2014 the emitter contract is broken")}function ue(e){let i=e.split(`
|
|
6
|
-
`);if(i[0]?.trim()!=="---")return{};let t=i.slice(1).findIndex(n=>n.trim()==="---");if(t<0)return{};try{return b(i.slice(1,t+1).join(`
|
|
7
|
-
`))??{}}catch{return{}}}function le(e,i){if(i.length===0)return e;let t=e.split(`
|
|
8
|
-
`);for(let n=t.length-1;n>=0;n--){if(/^## Step \d+ — assert @verifies /.test(t[n]))return e;if(F.test(t[n]))return t[n]=`${t[n].trimEnd()} @verifies ${i.join(", ")}`,t.join(`
|
|
9
|
-
`)}return e}function fe(e,i){return i.size===0?e:e.split(`
|
|
10
|
-
`).map(t=>{let n=t.match(/^@import\s+(\S+)\s*$/);if(n&&i.has(n[1]))return`@import ${i.get(n[1])}`;let s=t.match(/^## Import: (\S+)\s*$/);return s&&i.has(s[1])?`## Import: ${i.get(s[1])}`:t}).join(`
|
|
11
|
-
`)}function I(e){let i=e.expected_mode??(T(e.operand)?"runtime-derived":"inferred");return{kind:e.kind,operator:e.operator,...e.operand!==void 0?{operand:e.operand}:{},..._.has(e.kind)?{baseline:e.baseline??null}:{},...e.within!==void 0?{within:e.within}:{},...e.metric!==void 0?{metric:e.metric}:{},...e.threshold!==void 0?{threshold:e.threshold}:{},...e.unit!==void 0?{unit:e.unit}:{},verified_against:e.verified_against,expected_mode:i,review_required:e.review_required??i==="runtime-derived"}}function pe(e,i,t){if(_.has(e.check.kind)&&!e.steps.some(j))throw new Error(`emitTestMd: check kind '${e.check.kind}' needs a baseline-capture step before the action (a step starting 'capture baseline: <metric>' or { baseline: true }) \u2014 the validator should have caught this`);let n=[];if(e.target){let r=d=>/^[A-Za-z0-9._/@-]+$/.test(d)?d:JSON.stringify(d);n.push("---",`target: ${e.target}`),e.app&&n.push(`app: ${r(e.app)}`),n.push("---","")}n.push(`# ${e.title}`,""),i.intent&&n.push(`> ${i.intent}`,"");for(let r of e.reuses??[])n.push(`## Import: ${r}`,"",`@import ${r}`,"");let s=[],o=e.steps.some(r=>typeof r=="object"&&(r.verifies?.length??0)>0),c=0;for(let r of e.steps){c++;let d=R(r).trim(),l=typeof r=="object"&&r.verifies?.length?` @verifies ${r.verifies.join(", ")}`:"";n.push(`## Step ${c}${l}`,"",d,""),s.push({step:c,objective:d,...j(r)?{baseline:!0}:{},...typeof r=="object"&&r.verifies?.length?{verifies:[...r.verifies]}:{}})}if(o){let r=-1;if(e.steps.forEach((d,l)=>{typeof d=="object"&&d.verifies?.includes(e.check.verified_against)&&(r=l)}),r<0)throw new Error(`emitTestMd: no tagged step claims check.verified_against (${String(e.check.verified_against)}) \u2014 the check would be dropped`);s[r].check=I(e.check)}else{c++;let r=M(e,t);n.push(`## Step ${c} \u2014 assert`,"",r,""),s.push({step:c,objective:r,check:I(e.check)})}let a=v({title:e.title,...i.title?{scenario:i.title}:{},objectives:s},{sortKeys:!0,lineWidth:-1});return{test_md:n.join(`
|
|
12
|
-
`),objectives_yaml:a}}function me(e){let t=e.replace(/\r\n/g,`
|
|
13
|
-
`).split(`
|
|
14
|
-
`).map(o=>o.replace(/[ \t]+$/,""));if(t[0]?.trim()==="---"){let o=t.slice(1).findIndex(c=>c.trim()==="---");if(o>=0){let c=b(t.slice(1,o+1).join(`
|
|
15
|
-
`))??{},a="assurance"in c;delete c.assurance,Object.keys(c).length===0&&a?t=t.slice(o+2):t=["---",...v(c,{sortKeys:!0,lineWidth:-1}).trimEnd().split(`
|
|
16
|
-
`),"---",...t.slice(o+2)]}}let n=[];for(let o of t)o===""&&n[n.length-1]===""||n.push(o);for(;n[0]==="";)n.shift();for(;n[n.length-1]==="";)n.pop();let s=n.join(`
|
|
17
|
-
`)+`
|
|
18
|
-
`;return"sha256:"+$(Buffer.from("assurance.testdef\0"+s,"utf8"))}import{existsSync as O,readFileSync as W}from"fs";import{dirname as z,isAbsolute as G,resolve as Q}from"path";var A=/^@import\s+(\S+)\s*$/;function U(e){let i=new Set;for(let t=0;t<e.length;t++)if(A.test(e[t].trim()))for(let n=t-1;n>=0;n--){let s=e[n].trim();if(s!==""){s==="```"&&i.add(t);break}}return i}function q(e,i,t=new Set,n=0){if(n>10)return e;let s=e.split(`
|
|
19
|
-
`),o=U(s);return s.map((c,a)=>{let r=A.exec(c.trim());if(!r||o.has(a))return c;let d=i(r[1]);if(!d||t.has(d.cycleKey))return c;let l=new Set(t);return l.add(d.cycleKey),q(d.body.trimEnd(),d.next,l,n+1)}).join(`
|
|
20
|
-
`)}function V(e){return i=>{let t=e.resolve(i);if(!t)return null;let n=e.getNode(t.tip)?.content.test_md_blob;return n?{body:n,cycleKey:t.tip,next:V(e)}:null}}function D(e,i){return t=>{let n=G(t)?t:Q(e,t);if(!O(n))return null;let s=W(n,"utf8"),o=P(s);return!o||!i.resolve(o)?null:{body:J(s),cycleKey:n,next:D(z(n),i)}}}function L(e,i){let t=-1;for(let u=1;u<i;u++)if(/^assurance\s*:\s*$/.test(e[u])){t=u;break}if(t<0)return null;let n=i;for(let u=t+1;u<i;u++)if(/^[^\s#]/.test(e[u])){n=u;break}let s,o=t,c,a,r,d,l,f=!1;for(let u=t+1;u<n;u++){let p=e[u].endsWith("\r")?e[u].slice(0,-1):e[u];if(p.trim()===""||/^\s*#/.test(p))continue;o=u;let x=/^(\s+)([^\s:#][^:]*):\s*(.*)$/.exec(p);if(!x){/^\s*["']?base["']?\s*:/.test(p)&&(f=!0);continue}let[,y,B,K]=x,m=B.trimEnd();s===void 0&&(s=y);let h=y===s,k=/^([^#\s]\S*)?\s*(#.*)?$/.exec(K.trim()),S=k?.[1];m==="id"&&h&&c===void 0&&(c=u,a=S),m==="base"&&(h&&r===void 0?(r=u,d=S,l=k?.[2]):h||(f=!0)),m!=="base"&&/^["']base["']$/.test(m)&&(f=!0)}return{start:t,lastChild:o,childIndent:s,idLine:c,id:a,baseLine:r,base:d,baseComment:l,strayBase:f}}function H(e){let i=C(e);if(!i)return null;let t=e.split(`
|
|
21
|
-
`),n=L(t,i.endLine);return n?.id?{id:n.id,...n.base!==void 0?{base:n.base}:{}}:null}function P(e){return H(e)?.id??null}function C(e){let i=e.split(`
|
|
22
|
-
`);if(i[0]?.trim()!=="---")return null;for(let t=1;t<i.length;t++)if(i[t].trim()==="---")return{text:i.slice(1,t).join(`
|
|
23
|
-
`),endLine:t};return null}function J(e){let i=C(e);if(!i)return e;let t=e.split(`
|
|
24
|
-
`),n=L(t,i.endLine),s=[],o=!1;for(let a=1;a<i.endLine;a++){let r=t[a];if(n&&a>=n.start&&a<=n.lastChild){o=!1;continue}if(/^assurance\s*:\s*\{/.test(r)){o=!0;continue}o&&/^\s+\S/.test(r)||(o=!1,s.push(r))}let c=t.slice(i.endLine+1).join(`
|
|
25
|
-
`);return s.every(a=>a.trim()==="")?c:["---",...s,"---",c].join(`
|
|
26
|
-
`)}import{appendFileSync as Z,readdirSync as X,readFileSync as Y,rmSync as ee,statSync as te}from"fs";import{join as g}from"path";import{randomBytes as ne}from"crypto";var ie="pending-facts.ndjson",re=/^pending-facts\.(\d+)-[0-9a-f]+\.ndjson$/,we=()=>`pending-facts.${process.pid}-${ne(4).toString("hex")}.ndjson`;function $e(e,i=1/0){let t=[];for(let n of X(e)){let s=re.exec(n);if(!s)continue;let o=Number(s[1]),c=Date.now()-te(g(e,n)).mtimeMs;if(o!==process.pid&&E(o)&&c<i){t.push(n);continue}let a=Y(g(e,n),"utf8").split(`
|
|
27
|
-
`).filter(r=>r!=="");a.length>0&&Z(g(e,ie),a.join(`
|
|
28
|
-
`)+`
|
|
29
|
-
`),ee(g(e,n))}return t}export{T as a,ae as b,de as c,ue as d,le as e,fe as f,pe as g,me as h,A as i,U as j,q as k,V as l,D as m,L as n,H as o,J as p,ie as q,re as r,we as s,$e as t};
|
package/dist/chunk-OOCCUUR2.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import { createRequire } from 'module'; const require = createRequire(import.meta.url);
|
|
2
|
-
import{a as L}from"./chunk-RRY5IXOB.js";import{d as j}from"./chunk-RKXHVP2Z.js";import{a as O}from"./chunk-5Y2G4NC7.js";import{a as D}from"./chunk-YCCUBQY4.js";import{y as l}from"./chunk-5TQFOPJV.js";import{a as E}from"./chunk-HCBYKLMW.js";import{a as g,b as s,i as I,k as B}from"./chunk-C44QQJR4.js";import{a as P}from"./chunk-6YGTRKDT.js";import{e as $}from"./chunk-UR6MHSHU.js";var H=$(P(),1);var w=$(E(),1),K=["\u280B","\u2819","\u2839","\u2838","\u283C","\u2834","\u2826","\u2827","\u2807","\u280F"];function J(e){let t=e.replace(/…$/,"");return t&&t.charAt(0).toLowerCase()+t.slice(1)}function N(e,t){if(e.length<=t)return e;if(t<=1)return"\u2026";let r=Math.ceil((t-1)/2),n=Math.floor((t-1)/2);return`${e.slice(0,r)}\u2026${n>0?e.slice(-n):""}`}function Z({status:e,meta:t,tallies:r,keys:n,child:d,cols:c}){let{stdout:h}=B(),m=c??h?.columns??80,f=e.kind==="working"||e.kind==="child-working",[i,b]=(0,H.useState)(0);O(()=>b(a=>a+1),f?120:null);let k=K[i%K.length],u,p;switch(e.kind){case"working":u=`${k} ${e.step}${e.elapsedS!==void 0?` \xB7 ${e.elapsedS}s`:""}`,p=l.assuranceAccent;break;case"waiting":u=`\u25CF waiting on you${e.pending?` \u2014 ${e.pending} question${e.pending===1?"":"s"}`:""}`,p=l.amber;break;case"idle":u="\u25CF idle",p=l.assuranceAccent;break;case"card":u=`\u25CF card ${e.n} of ${e.m}`,p=l.amber;break;case"child-working":u=`${k} child: ${e.step}`,p=l.assuranceAccent;break;case"child-waiting":u="\u25CF child waiting on you",p=l.amber;break}let A=d?`${t.verb} \u25B8 ${d.verb}`:t.verb,S=d?.sid?t.sid?`${N(t.sid,14)} \u25B8 ${d.sid}`:d.sid:t.sid,C=t.env==="prod"?"":t.env,_=[A,S,C].filter(Boolean),v=" \xB7 ",R=u.length+v.length+_.join(v).length,T=t.subject;if(T){let a=m-R-v.length;T=a>=8?N(T,a):void 0}let M=[A,...T?[T]:[],S,C].filter(Boolean).join(v);return(0,w.jsxs)(g,{flexDirection:"column",children:[(0,w.jsx)(s,{color:l.muted,children:"\u2500".repeat(Math.max(1,m))}),(0,w.jsxs)(s,{children:[(0,w.jsx)(s,{color:p,children:u}),(0,w.jsx)(s,{color:l.dim,children:`${v}${M}`})]}),(0,w.jsx)(s,{color:l.dim,children:r.items.length>0?r.items.join(v):" "}),(0,w.jsx)(s,{color:l.muted,children:n.join(v)})]})}var y=$(P(),1);function ne({onToggleThinking:e,onCtrlC:t,explorer:r,panel:n}){let c=(0,y.useRef)(null),h=(0,y.useRef)(""),m=()=>{c.current&&clearTimeout(c.current),c.current=null,h.current=""};return(0,y.useEffect)(()=>m,[]),I((f,i)=>{if(i.ctrl&&f==="t"){e();return}if(i.ctrl&&f==="c"){t();return}if(!i.ctrl&&f.includes("")){t();return}if(!i.ctrl&&f.includes("")){e();return}if(r&&r.isOpen()){let b=()=>{c.current&&clearTimeout(c.current),c.current=setTimeout(()=>{m(),r.onBack()},150)};if(c.current){if(i.upArrow||i.downArrow||i.return){m(),i.return?r.onEnter():r.onMove(i.upArrow?-1:1);return}if(h.current+=f,h.current==="["){b();return}let k=h.current;m();let u=/^\[([ABCD])/.exec(k);if(u){(u[1]==="A"||u[1]==="B")&&r.onMove(u[1]==="A"?-1:1);return}r.onBack();return}if(i.upArrow){r.onMove(-1);return}if(i.downArrow){r.onMove(1);return}if(i.return){r.onEnter();return}if(i.escape){h.current="",b();return}return}if(n&&n.isFocused()){let b=()=>{c.current&&clearTimeout(c.current),c.current=setTimeout(()=>{m(),n.onBack()},150)};if(c.current){if(i.upArrow||i.downArrow||i.return||i.leftArrow||i.rightArrow){m(),i.return?n.onSelect():i.leftArrow?n.onLeft?.():i.rightArrow?n.onRight?.():n.onMove(i.upArrow?-1:1);return}if(h.current+=f,h.current==="["){b();return}let k=h.current;m();let u=/^\[([ABCD])/.exec(k);if(u){u[1]==="A"||u[1]==="B"?n.onMove(u[1]==="A"?-1:1):u[1]==="C"?n.onRight?.():n.onLeft?.();return}n.onBack();return}if(i.upArrow){n.onMove(-1);return}if(i.downArrow){n.onMove(1);return}if(i.leftArrow){n.onLeft?.();return}if(i.rightArrow){n.onRight?.();return}if(i.return){n.onSelect();return}if(i.escape){h.current="",b();return}if(/^[1-9]$/.test(f)){n.onDigit(Number(f));return}if(i.tab){n.onTab?.();return}if(f===" "&&n.isMulti()){n.onSpace();return}if(f&&!i.ctrl&&!i.meta){n.onType(f);return}return}}),null}var o=$(E(),1);function V(e){return e.kind==="REVIEW"?[{v:"approve",label:"approve",detail:"mark it reviewed and trusted"},{v:"archive",label:"archive",detail:"reject it \u2014 asks for a reason; impact shown above"},{v:"defer",label:"defer",detail:"not now \u2014 stays queued"}]:e.kind==="PAIR"?[{v:"merge",label:"merge",detail:"duplicate \u2014 fold into the older item (it stays unreviewed)"},{v:"keep_both",label:"keep both",detail:"genuinely distinct \u2014 promote both"},{v:"defer",label:"defer",detail:"not now \u2014 stays queued"}]:e.kind==="ARCHIVE"?[{v:"archive",label:"retire",detail:"hidden from now on; history is kept and it can be reverted"},{v:"skip",label:"skip",detail:"keep it \u2014 decided, never re-offered"},{v:"defer",label:"defer",detail:"not now \u2014 the plan re-offers it"}]:e.heldPayload?[{v:"approve",label:"approve update",detail:"commit the held payload \u2014 impact preview above"},{v:"skip",label:"keep current",detail:"drop the held payload (the owner's disk state stays untouched)"},{v:"defer",label:"defer",detail:"not now \u2014 stays held"}]:[{v:"approve",label:"approve",detail:e.kind==="ADD"?"commit + design it":"commit the updated version (old\u2192new redirect)"},{v:"skip",label:e.origin==="content-change"?"reject":"skip",detail:e.origin==="content-change"?"drop the staged proposal \u2014 nothing committed":"leave it as is"},{v:"defer",label:"defer",detail:"not now \u2014 the plan keeps it staged"}]}function F(e){let t=V(e);return e.viewDiff&&t.push({v:"view_diff",label:"view diff",detail:"full old \u2192 new"}),t}function W(e){return e.kind==="ARCHIVE"?null:F(e).length}var q={ADD:{color:l.green??"green"},MODIFY:{color:"yellow"},ARCHIVE:{color:l.red},REVIEW:{color:"cyan"},PAIR:{color:"magenta"}},Q=60;function ce({card:e,position:t,sel:r=0,focused:n=!1,freeText:d=null,editorIntent:c="steer"}){let{stdout:h}=B(),m=h?.columns??80,f=m<Q,i=F(e),b=W(e),k=q[e.kind],u=a=>n&&r===a?(0,o.jsx)(s,{color:l.assuranceAccent,children:"\u276F"}):" ",p=e.impact,A=p&&"stale_refs"in p&&p.stale_refs.length>0?`${e.kind==="ARCHIVE"?"retiring leaves":"approving marks"} ${p.stale_refs.length} item(s) stale`+((p.direct_refs?.length??0)>0?` \u2014 ${p.direct_refs.length} directly touched: ${p.direct_refs.join(", ")}`:""):p&&"design_children"in p?`${e.kind==="REVIEW"?"archiving drops":"merging folds"} ${p.design_children} design child(ren)`:null,S=e.provenance&&e.provenance!==e.why?e.provenance:e.origin??null,C=[{label:"why",text:e.why},...S?[{label:"from",text:S,dimmer:!0}]:[],...e.tier?[{label:"match",text:e.tier,dimmer:!0}]:[],...A?[{label:"impact",text:A}]:[]],_=Math.max(...C.map(a=>a.label.length)),v="? reconcile",R=`item ${t.n} of ${t.of}`,T=(0,o.jsxs)(g,{flexDirection:"column",children:[(0,o.jsx)(g,{paddingLeft:2,children:(0,o.jsxs)(s,{bold:!0,children:[(0,o.jsx)(s,{color:k.color,children:`[${e.kind}]`}),` ${L(e.title)}`]})}),C.map((a,x)=>(0,o.jsx)(g,{paddingLeft:2,children:(0,o.jsxs)(s,{children:[(0,o.jsx)(s,{color:l.dim,children:`${a.label.padEnd(_)} `}),(0,o.jsx)(s,{color:a.dimmer?l.dim:void 0,children:a.text})]})},`f-${x}`)),e.diffSummary?(0,o.jsx)(g,{paddingLeft:2,children:(0,o.jsx)(s,{color:l.dim,children:e.diffSummary})}):(e.diff??[]).map((a,x)=>(0,o.jsx)(g,{paddingLeft:4,children:(0,o.jsx)(s,{color:a.op==="-"?"red":"green",children:`${a.op==="-"?"\u2212":"+"} ${a.field==="criteria"?"criterion":a.field}: ${a.text}`})},`d-${x}`)),(e.citeLines??[]).map((a,x)=>(0,o.jsx)(g,{paddingLeft:2,children:(0,o.jsx)(s,{color:l.dim,children:a})},`c-${x}`)),(0,o.jsx)(s,{children:" "}),i.map((a,x)=>(0,o.jsxs)(s,{children:[u(x),` ${x+1}. ${a.label}`,(0,o.jsx)(s,{color:l.dim,children:` \u2014 ${a.detail}`})]},`o-${x}`)),b!==null||d&&c==="because"?d?(0,o.jsxs)(g,{flexDirection:"column",children:[(0,o.jsxs)(g,{children:[(0,o.jsxs)(s,{children:[(0,o.jsx)(s,{color:l.assuranceAccent,children:"\u276F"})," ",(0,o.jsx)(s,{color:l.dim,children:"\u270E "})]}),(0,o.jsx)(D,{value:d.value,onChange:d.onChange,onSubmit:d.onSubmit,onCancel:d.onCancel,placeholder:c==="because"?"why archive it?":"say what to adjust"})]}),(0,o.jsx)(s,{color:l.muted,children:c==="because"?" submits as: archive \xB7 your reason goes on the record":e.kind==="PAIR"?" submits as: defer \xB7 your note parks with the card (it re-offers)":" submits as: approve \xB7 your words steer the re-design"})]}):b!==null?(0,o.jsxs)(s,{children:[u(b)," ",(0,o.jsx)(s,{color:l.dim,children:e.kind==="PAIR"?"\u270E defer with a note \u2014 say what you noticed":"\u270E approve with changes \u2014 say what to adjust"})]}):null:null]});if(f)return(0,o.jsxs)(g,{marginTop:1,marginBottom:1,flexDirection:"column",children:[(0,o.jsx)(s,{bold:!0,color:l.assuranceAccent,children:v}),(0,o.jsx)(s,{color:l.dim,children:R}),T]});let M=Math.max(2,Math.min(m-1,100)-v.length-R.length);return(0,o.jsxs)(g,{marginTop:1,marginBottom:1,flexDirection:"column",children:[(0,o.jsxs)(s,{children:[(0,o.jsx)(s,{bold:!0,color:l.assuranceAccent,children:v})," ".repeat(M),(0,o.jsx)(s,{color:l.dim,children:R})]}),(0,o.jsx)(s,{children:" "}),T]})}var Y={"acceptance criteria":1,scenarios:2,"acceptance criteria + exercises":3,"tests + gaps":4};function ue(e,t){let r=[],n=j(e.turns).entries.length;if(t==="design"){let c;for(let m=e.ledger.length-1;m>=0;m--){let f=e.ledger[m];if(f.kind==="banner"&&f.text.startsWith("designing: ")){c=f.text.slice(11);break}}let h=c?Y[c]:void 0;h&&r.push(`phase ${h}/4`),n>0&&r.push(`${n} item${n===1?"":"s"} this session`)}else n>0&&r.push(`${n} saved as draft${n===1?"":"s"}`);let d=e.pending?e.pending.resolution.filter(c=>!c).length:0;return d>0&&r.push(`${d} question${d===1?"":"s"} pending`),e.credits&&r.push(`${e.credits.total.toFixed(1)} credits`),{items:r}}function fe(e,t){let r=[],n=e.applied+e.committed+e.retired;r.push(`${n} applied`),r.push(`${t} to decide`);let d=[];return e.skipped>0&&d.push(`${e.skipped} skipped`),e.deferred>0&&d.push(`${e.deferred} deferred`),e.failed>0&&d.push(`${e.failed} failed`),{items:[...r,...d]}}function he(e,t){let r=["\u2191\u2193 select","\u23CE confirm"];return e.multi_select&&r.push("space toggle"),t.batchCount>1&&r.push("\u2190 \u2192 questions"),(e.allow_free_text||e.options.some(n=>n.input===!0))&&r.push("\u270E type your own"),t.canAttach&&r.push("@ attach a file or URL"),t.escBack&&r.push("esc back"),{keys:r}}function ge(e,t){let r=["\u2191\u2193 select","\u23CE confirm"];return e.some(n=>n.free)&&r.push("\u270E type your own"),t.escBack&&r.push("esc back"),{keys:r}}function be(e){let t=["\u2191\u2193 select","\u23CE confirm","1-9 verdict"];return W(e)!==null&&t.push("type = adjust"),t.push("esc \xB7 nothing to undo"),{keys:t}}export{J as a,Z as b,ne as c,V as d,F as e,W as f,ce as g,ue as h,fe as i,he as j,ge as k,be as l};
|
package/dist/chunk-OXC6O5O7.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import { createRequire } from 'module'; const require = createRequire(import.meta.url);
|
|
2
|
-
import{b as f}from"./chunk-243ZJHT6.js";import{c as g}from"./chunk-UD7KKHPW.js";import{existsSync as u}from"fs";import{dirname as A,resolve as l}from"path";import{fileURLToPath as E}from"url";var p=A(E(import.meta.url));function _(){return[l(p,".."),l(p,"../../..")]}function x(s){return{"darwin-arm64":"kane-cli-darwin-arm64","darwin-x64":"kane-cli-darwin-x64","linux-x64":"kane-cli-linux-x64","linux-arm64":"kane-cli-linux-arm64","win32-x64":"kane-cli-win-x64"}[s]??null}function T(s){return{"darwin-arm64":"kane-cli-assurance-darwin-arm64","darwin-x64":"kane-cli-assurance-darwin-x64","linux-x64":"kane-cli-assurance-linux-x64","linux-arm64":"kane-cli-assurance-linux-arm64","win32-x64":"kane-cli-assurance-win-x64"}[s]??null}function I(s=_()){let n=x(`${process.platform}-${process.arch}`),i=T(`${process.platform}-${process.arch}`),a=process.platform==="win32"?"assurance-agent.exe":"assurance-agent";for(let e of s){for(let t of i?["@testmuai","@lambdatestincprivate"]:[]){let m=l(e,"node_modules",t,i,"bin",a);if(u(m))return{cmd:m,args:[],tier:"platform"}}for(let t of n?["@testmuai","@lambdatestincprivate"]:[]){let m=l(e,"node_modules",t,n,"bin",a);if(u(m))return{cmd:m,args:[],tier:"platform"}}let c=l(e,"dist","bin",a);if(u(c))return{cmd:c,args:[],tier:"embedded"};let r=l(e,"../assurance-agent/dist",a);if(u(r))return{cmd:r,args:[],tier:"sibling"};let o=l(e,"../assurance-agent/main.py");if(u(o)){let t=l(e,"../assurance-agent/.venv/bin/python");return{cmd:u(t)?t:"python3",args:[o],tier:"dev-python"}}}return null}function U(s,n={}){return{...process.env,...n,...f(),TESTMUAI_SOURCE:"kane-cli",TESTMUAI_SESSION_ID:s,ASSURANCE_LOG_LEVEL:process.env.ASSURANCE_LOG_LEVEL??"info"}}async function P(){if(process.env.TESTMUAI_API_KEY||process.env.TESTMUAI_BASIC_AUTH)return{};try{let{CredentialsManager:s}=await import("./credentials-QD32Y7K7.js"),n=process.env.TESTMUAI_ENV==="stage"?"stage":"prod",i=new s,a=i.getActiveProfile()??"default",e={TESTMUAI_ENV:n},c=i.loadBasicAuth(a,n);if(c)return e.TESTMUAI_BASIC_AUTH=Buffer.from(`${c.username}:${c.access_key}`,"utf8").toString("base64"),e;let r=i.loadCredentials(a,n);if(r){try{let{refreshOAuthToken:t}=await import("./token-refresh-QD3OCGJJ.js");await t({creds:i,profile:a,env:n,credentials:r})}catch{}let o=i.loadCredentials(a,n)??r;if(typeof o.access_token=="string"){let t=await w(n,o.access_token);return t?(e.TESTMUAI_BASIC_AUTH=t,e):(e.TESTMUAI_API_KEY=o.access_token,e)}}return{}}catch{return{}}}var h=8e3;function d(){return g("warn: session auth may expire during long runs \u2014 if that happens, run `kane-cli login` and retry","AUTH_EXCHANGE_FAILED"),null}async function w(s,n){try{let[{getEnvironment:i},{ControllerClient:a}]=await Promise.all([import("./config-YGTHSGQN.js"),import("./controller-client-ZF5IXRUV.js")]),e=new a(i(s).controllerBaseUrl,n),c;try{let r=await Promise.race([e.getTmsCredentials().catch(()=>null),new Promise(o=>{c=setTimeout(()=>o(null),h)})]);if(typeof r?.username!="string"||!r.username||typeof r.access_key!="string"||!r.access_key)return d();try{let[{refreshIdentitySnapshot:o},{telemetryEnvName:t}]=await Promise.all([import("./identity-ADZ4PAJF.js"),import("./bootstrap-DI4UGMH3.js")]);await o(t(),r)}catch{}return Buffer.from(`${r.username}:${r.access_key}`,"utf8").toString("base64")}finally{clearTimeout(c)}}catch{return d()}}export{x as a,T as b,I as c,U as d,P as e};
|