@testmuai/kane-cli 0.7.2 → 0.8.2
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-B3ULYDYC.js +8 -0
- package/dist/{ChromeProfilePicker-DGDWGCZD.js → ChromeProfilePicker-T77E7ZSC.js} +1 -1
- package/dist/{CliFeedbackPrompt-SYCZXSME.js → CliFeedbackPrompt-FQ2XV5DZ.js} +1 -1
- package/dist/{CliUploadProgress-VDEAKXJY.js → CliUploadProgress-TZ55LONO.js} +1 -1
- package/dist/ConfigView-WWQMH36G.js +2 -0
- package/dist/EvidenceViewOffer-L5FVBQNK.js +2 -0
- package/dist/FolderPicker-6Z3CYSHF.js +2 -0
- package/dist/{HelpView-ON6BFGJM.js → HelpView-XXPCPJNF.js} +1 -1
- package/dist/{InfoBox-B23NZ6IG.js → InfoBox-SHBRHQX5.js} +1 -1
- package/dist/{LinksBox-TI26VFFH.js → LinksBox-ENNF7TDJ.js} +1 -1
- package/dist/{ProfilesView-CRO5AH3H.js → ProfilesView-CNF2FXF3.js} +1 -1
- package/dist/{ProjectPicker-3N7LJOXU.js → ProjectPicker-PVPLS642.js} +1 -1
- package/dist/{SaveSessionPrompt-UTOEC5AW.js → SaveSessionPrompt-4QP4GNGO.js} +1 -1
- package/dist/SingleShotApp-M3HNSUMZ.js +2 -0
- package/dist/{SummaryBox-JK64EKC2.js → SummaryBox-HYNINDNN.js} +1 -1
- package/dist/TestMdRunView-ISOVQ7YP.js +2 -0
- package/dist/{WhoamiView-6QSLPNF6.js → WhoamiView-NN2HOK6H.js} +1 -1
- package/dist/adbkit-apkreader-ORZBGCJQ.js +184 -0
- package/dist/app-client-ZCCNE3RV.js +2 -0
- package/dist/app-download-5UJMXPF3.js +2 -0
- package/dist/{auth-IKFVW3NX.js → auth-QKBTOWQX.js} +1 -1
- package/dist/{bind-KCUSVJXG.js → bind-LVGP5KHO.js} +3 -3
- package/dist/{bootstrap-NFYYRGGR.js → bootstrap-RUJBMB2P.js} +1 -1
- package/dist/bridge-QDPBIIOW.js +2 -0
- package/dist/{changelog-AAH2ZBYO.js → changelog-HBPBPR2O.js} +1 -1
- package/dist/{chat-committer-UUC6JTRJ.js → chat-committer-ZWWCLJFD.js} +1 -1
- package/dist/{chat-controller-T2FAI55V.js → chat-controller-R4THYYPU.js} +1 -1
- package/dist/chunk-2E3ZWGIK.js +12 -0
- package/dist/chunk-2KH2JUGL.js +13 -0
- package/dist/{chunk-VWKVUOXU.js → chunk-2TYCUPCN.js} +1 -1
- package/dist/{chunk-GYNTNKNB.js → chunk-2ZZDNPFN.js} +1 -1
- package/dist/chunk-3654GK6O.js +66 -0
- package/dist/{chunk-M6FKJKC6.js → chunk-3NHO5R4P.js} +3 -3
- package/dist/{chunk-SFII7HPP.js → chunk-4II6VDXG.js} +1 -1
- package/dist/chunk-4J6DQFPC.js +4 -0
- package/dist/chunk-4JOD47QI.js +2 -0
- package/dist/{chunk-5FJJJNJK.js → chunk-4U4OSOA4.js} +1 -1
- package/dist/{chunk-QIGPXYMF.js → chunk-56PAQAX5.js} +6 -6
- package/dist/chunk-5NIYYD7O.js +2 -0
- package/dist/chunk-5SNT2MK5.js +2 -0
- package/dist/chunk-6IA6QMPH.js +2 -0
- package/dist/chunk-6J5T5FEY.js +2 -0
- package/dist/chunk-6N726QLP.js +349 -0
- package/dist/chunk-7F2ZV46B.js +2 -0
- package/dist/{chunk-7OYZR6JA.js → chunk-7S3JZ6FQ.js} +1 -1
- package/dist/chunk-A2SQD2AY.js +4 -0
- package/dist/chunk-AJQT4IWZ.js +2 -0
- package/dist/chunk-AN2ZPHCE.js +2 -0
- package/dist/{chunk-7QJ75SYR.js → chunk-ATGRRKEV.js} +2 -2
- package/dist/chunk-AXTPNZPX.js +2 -0
- package/dist/{chunk-ZRASQ63J.js → chunk-BKVDAZEJ.js} +1 -1
- package/dist/{chunk-2WVKOZ6W.js → chunk-BPMSNGXQ.js} +1 -1
- package/dist/chunk-BRIEBB2U.js +2 -0
- package/dist/chunk-BSYX225I.js +2 -0
- package/dist/{chunk-B5RS2XZU.js → chunk-CAMO26QU.js} +3 -3
- package/dist/chunk-DPUV6OSP.js +2 -0
- package/dist/chunk-ECZMYPLJ.js +19 -0
- package/dist/chunk-EYOCNMUM.js +2 -0
- package/dist/{chunk-DZPGG4S6.js → chunk-FNS2EAA5.js} +2 -2
- package/dist/{chunk-VMM4LC4V.js → chunk-GNIFMQNK.js} +3 -3
- package/dist/chunk-GUVM6SZF.js +2 -0
- package/dist/{chunk-ZBOWFJB2.js → chunk-HFFPPCZO.js} +2 -2
- package/dist/chunk-HRZOFTV7.js +4 -0
- package/dist/chunk-HWH3UYD6.js +4 -0
- package/dist/{chunk-JKM2PUHI.js → chunk-I7RQS65W.js} +1 -1
- package/dist/chunk-IUEEFGEW.js +11 -0
- package/dist/{chunk-KWIK22R6.js → chunk-IV76ZXCY.js} +1 -1
- package/dist/{chunk-HYSFJSIG.js → chunk-IZ2FJYHG.js} +1 -1
- package/dist/{chunk-4NFCAGRK.js → chunk-J7KT44IC.js} +1 -1
- package/dist/{chunk-VOOPWFHW.js → chunk-JEDLXUO5.js} +1 -1
- package/dist/chunk-JGOZUAMC.js +2 -0
- package/dist/{chunk-4LTXE3IX.js → chunk-JHKM7W5X.js} +1 -1
- package/dist/chunk-JJN76EXE.js +2 -0
- package/dist/{chunk-EOLFTMWF.js → chunk-JUVQQP42.js} +1 -1
- package/dist/chunk-KKRNTSLL.js +6 -0
- package/dist/chunk-KRKGZ2ZW.js +47 -0
- package/dist/{chunk-YTHQNN2L.js → chunk-LDCLZR2U.js} +1 -1
- package/dist/chunk-LQQXPY5B.js +4 -0
- package/dist/{chunk-UC7MNPIN.js → chunk-LVCY5IYI.js} +1 -1
- package/dist/{chunk-O75ZHGJG.js → chunk-LVN6VHFN.js} +1 -1
- package/dist/chunk-MMBBQ4OZ.js +2 -0
- package/dist/chunk-MSGW4JDG.js +2 -0
- package/dist/{chunk-VLWMMOMF.js → chunk-MTIC65NK.js} +1 -1
- package/dist/chunk-NHBYZCSX.js +4 -0
- package/dist/chunk-NRUD56FY.js +7 -0
- package/dist/chunk-NXFAEDHV.js +26 -0
- package/dist/{chunk-OIYGGEUL.js → chunk-NXXJ56QA.js} +1 -1
- package/dist/{chunk-AXTGYOMK.js → chunk-O3AHFP3K.js} +1 -1
- package/dist/chunk-OAVPM6YJ.js +2 -0
- package/dist/{chunk-FBHRBFHP.js → chunk-OJTCIZDK.js} +1 -1
- package/dist/{chunk-JPWLGHPM.js → chunk-OOEPLMKA.js} +1 -1
- package/dist/{chunk-VT54ARGE.js → chunk-PXCMEI73.js} +1 -1
- package/dist/{chunk-APPYQZFK.js → chunk-R4UCBA5R.js} +1 -1
- package/dist/chunk-RKXHVP2Z.js +2 -0
- package/dist/{chunk-AJ56AMT6.js → chunk-RN4PKQFR.js} +1 -1
- package/dist/chunk-RUCSRS4C.js +5 -0
- package/dist/chunk-TAOHYWEO.js +2 -0
- package/dist/chunk-TZXXJWHA.js +2 -0
- package/dist/{chunk-VRLUNZAK.js → chunk-U5GHOGLM.js} +1 -1
- package/dist/chunk-UJZZDPDY.js +2 -0
- package/dist/{chunk-VHZ4S57N.js → chunk-UODLRQQ4.js} +1 -1
- package/dist/chunk-VK3NU742.js +21 -0
- package/dist/{chunk-FDIPQRX4.js → chunk-VPRNGWIY.js} +1 -1
- package/dist/{chunk-RDNFVZEB.js → chunk-WOEQDUJ6.js} +1 -1
- package/dist/chunk-WQPQNL4S.js +2 -0
- package/dist/{chunk-SL6PCVM2.js → chunk-WV27D55O.js} +1 -1
- package/dist/{chunk-2WFZIQ62.js → chunk-WVCH66YH.js} +1 -1
- package/dist/{chunk-PLOWZLG5.js → chunk-YCLG3T5E.js} +2 -2
- package/dist/chunk-YGMC3FGJ.js +26 -0
- package/dist/{chunk-5SXMV66P.js → chunk-YHYTCENI.js} +1 -1
- package/dist/{chunk-KQZA2QSC.js → chunk-YSSYT5F5.js} +1 -1
- package/dist/{chunk-OR6MCL6Z.js → chunk-YTDSQAYN.js} +1 -1
- package/dist/{chunk-XUS4WKDS.js → chunk-ZEDAPY7M.js} +1 -1
- package/dist/{chunk-F7ISS545.js → chunk-ZGBSGZZM.js} +1 -1
- package/dist/chunk-ZI6UIJUN.js +11 -0
- package/dist/{config-CWZV6XPT.js → config-RLDXM5ZH.js} +1 -1
- package/dist/{controller-client-RD2YEMAH.js → controller-client-OB4WD2C4.js} +1 -1
- package/dist/{cover-cmd-NWIRJY5Z.js → cover-cmd-HDZZWJXG.js} +1 -1
- package/dist/{credentials-YHTJGKEO.js → credentials-CALNKQMN.js} +1 -1
- package/dist/deps-bundle-GVHIMZ5E.js +2 -0
- package/dist/deps-resolve-T6P4EACP.js +2 -0
- package/dist/{dispatch-WVNXB7AD.js → dispatch-ECUEAMXS.js} +1 -1
- package/dist/doctor-SIBHJVGC.js +2 -0
- package/dist/docx-convert-JMUMT5C4.js +2 -0
- package/dist/evidence-ZVQHPELX.js +2 -0
- package/dist/evolve-cmd-JGCFTXWA.js +2 -0
- package/dist/exec-P2IKJRRR.js +2 -0
- package/dist/exit-manager-3FVBTNYR.js +2 -0
- package/dist/{explain-cmd-IZEHWZV5.js → explain-cmd-3GEKR7O5.js} +1 -1
- package/dist/{explain-cmd-75MCF2ZV.js → explain-cmd-EX24XKD6.js} +1 -1
- package/dist/extract-bind-EXW32RUY.js +10 -0
- package/dist/{extract-cmd-ZRYMJ6IC.js → extract-cmd-7IOLJJCL.js} +2 -2
- package/dist/gaps-cmd-WPCJPLGB.js +3 -0
- package/dist/{generate-headless-D6BISWDC.js → generate-headless-U4GTG234.js} +3 -3
- package/dist/host-7GZPBA74.js +2 -0
- package/dist/index.js +84 -67
- package/dist/ingest-cmd-YYNAKI2U.js +2 -0
- package/dist/interactive-bind-Y65XV4Y5.js +25 -0
- package/dist/{lifecycle-cmd-EQSFAZG6.js → lifecycle-cmd-HO5VL7AM.js} +1 -1
- package/dist/{list-cmd-IRJSUCM5.js → list-cmd-N4KMA34H.js} +1 -1
- package/dist/list-commands-3EROWJWV.js +2 -0
- package/dist/login-flow-TRINUSBB.js +2 -0
- package/dist/{maintenance-cmd-MVFA6H74.js → maintenance-cmd-6XSVO6FO.js} +1 -1
- package/dist/mobile-prompts-TP3ODM5M.js +2 -0
- package/dist/persist-recorded-session-EHYT3PVN.js +3 -0
- package/dist/pipeline-5GOS2KV2.js +2 -0
- package/dist/prepare-target-BUEOZVJV.js +2 -0
- package/dist/reconcile-cmd-TY3MWZL3.js +2 -0
- package/dist/reconcile-deps-6KTJHBMJ.js +4 -0
- package/dist/reconcile-engine-O7QEZVX6.js +2 -0
- package/dist/{recording-banner-76GCIPUN.js → recording-banner-BWWFOJCR.js} +1 -1
- package/dist/registry-KXEDLM6X.js +2 -0
- package/dist/{require-project-folder-ACRDP5ZB.js → require-project-folder-CXDRRWEQ.js} +1 -1
- package/dist/resolve-run-intent-PZXEQTHC.js +7 -0
- package/dist/{resolver-SRPCFW7P.js → resolver-FTU5KO7H.js} +1 -1
- package/dist/{review-cmd-L3V5UP5T.js → review-cmd-DQRKQUMG.js} +1 -1
- package/dist/run-CMFBSYWF.js +2 -0
- package/dist/run-WKHPVWUN.js +2 -0
- package/dist/{run-test-md-KEHSRMCM.js → run-test-md-7HGOZJSU.js} +3 -3
- package/dist/session-items-2ATN7VXG.js +2 -0
- package/dist/session-target-UWROGOCY.js +2 -0
- package/dist/{sessions-cmd-ZVYGSRJ3.js → sessions-cmd-ZZIZN2VB.js} +1 -1
- package/dist/{skill-installer-HBN3A35K.js → skill-installer-QNUDLGPD.js} +1 -1
- package/dist/spawner-DQZRJIE6.js +2 -0
- package/dist/{structured-answers-A43Q25CZ.js → structured-answers-5EY2AZN7.js} +1 -1
- package/dist/tcg-generate-XKSTMCOG.js +2 -0
- package/dist/testmd-actions-IFRW7NGG.js +2 -0
- package/dist/{tms-client-VD3B3SMU.js → tms-client-V3TR4QW3.js} +1 -1
- package/dist/token-refresh-FP6JFLXB.js +2 -0
- package/dist/types-6E2HTDKJ.js +2 -0
- package/dist/{validate-basic-ZGWPBYB6.js → validate-basic-3CNUDDH7.js} +1 -1
- package/dist/{verdicts-SCETLY5J.js → verdicts-NYCSBWUC.js} +1 -1
- package/dist/{version-check-CJWKDAXV.js → version-check-7TSAVA6V.js} +1 -1
- package/dist/{view-cmd-SOVM64L2.js → view-cmd-KPJTP4DI.js} +1 -1
- package/dist/walk-session-AINBHZKB.js +2 -0
- package/dist/{with-telemetry-E7QWPGL6.js → with-telemetry-3DL7ZEZL.js} +1 -1
- package/package.json +12 -6
- package/dist/ChatSurface-E7QKI4LA.js +0 -8
- package/dist/ConfigView-HPKRQXMC.js +0 -2
- package/dist/EvidenceViewOffer-F5YG54OC.js +0 -2
- package/dist/FolderPicker-4NSDXQY5.js +0 -2
- package/dist/SingleShotApp-Y3YDFQSD.js +0 -2
- package/dist/TestMdRunView-O6JTHV5W.js +0 -2
- package/dist/bridge-JSKEO4N3.js +0 -2
- package/dist/chunk-23VPUWBD.js +0 -23
- package/dist/chunk-2WRBTLFN.js +0 -13
- package/dist/chunk-53IBTIL3.js +0 -12
- package/dist/chunk-5WXGMXGA.js +0 -26
- package/dist/chunk-5ZQZOVWY.js +0 -4
- package/dist/chunk-74HTO7K3.js +0 -11
- package/dist/chunk-AECMF3T2.js +0 -8
- package/dist/chunk-AFBKGZFG.js +0 -2
- package/dist/chunk-BXYWX4J3.js +0 -2
- package/dist/chunk-C3T7TKAC.js +0 -349
- package/dist/chunk-DBKNJRJG.js +0 -2
- package/dist/chunk-H32GM5G4.js +0 -2
- package/dist/chunk-J5FBU425.js +0 -62
- package/dist/chunk-KCCSWEGA.js +0 -4
- package/dist/chunk-MK7JUOYV.js +0 -6
- package/dist/chunk-ORQNKZ2Z.js +0 -5
- package/dist/chunk-OUJQVBUT.js +0 -7
- package/dist/chunk-QOFZSHSC.js +0 -47
- package/dist/chunk-RKWJG3WW.js +0 -19
- package/dist/chunk-STVP2XHO.js +0 -2
- package/dist/chunk-VFII6C46.js +0 -2
- package/dist/chunk-VGFTNLQQ.js +0 -2
- package/dist/chunk-WAOCHXJ5.js +0 -2
- package/dist/chunk-ZUGCHQFC.js +0 -2
- package/dist/docx-convert-CHLJUTFH.js +0 -2
- package/dist/evidence-IVDNXWPL.js +0 -2
- package/dist/evolve-cmd-XBX4SX5H.js +0 -2
- package/dist/exit-manager-XZL4KIJU.js +0 -2
- package/dist/extract-bind-5OWELRME.js +0 -10
- package/dist/gaps-cmd-XBRXKXDL.js +0 -3
- package/dist/ingest-cmd-YTGOICTC.js +0 -2
- package/dist/interactive-bind-XSRD36MO.js +0 -25
- package/dist/list-commands-RCYHJ5Y3.js +0 -2
- package/dist/login-flow-PYAPYCPY.js +0 -2
- package/dist/persist-recorded-session-DTYCLXTQ.js +0 -3
- package/dist/pipeline-MXFOD6ES.js +0 -2
- package/dist/reconcile-cmd-EG6BOU3A.js +0 -2
- package/dist/reconcile-deps-HTT6IPHT.js +0 -4
- package/dist/reconcile-engine-JQNXALNY.js +0 -2
- package/dist/run-GMZCDRDD.js +0 -2
- package/dist/run-TFRWPGXP.js +0 -2
- package/dist/spawner-GC5CFAJ7.js +0 -2
- package/dist/tcg-generate-V7YFNC5O.js +0 -2
- package/dist/testmd-actions-MNDOO76O.js +0 -2
- package/dist/token-refresh-3UYMCYG3.js +0 -2
- package/dist/walk-session-YUYRULPY.js +0 -2
package/dist/chunk-QOFZSHSC.js
DELETED
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
import { createRequire } from 'module'; const require = createRequire(import.meta.url);
|
|
2
|
-
import{a as De}from"./chunk-BKHXPBWN.js";import{a as we,b as Ae}from"./chunk-2UIHS2FH.js";import{a as Ee}from"./chunk-N2P4MI32.js";import{b as Ce}from"./chunk-NVGBE2DR.js";import{c as _t,e as xe}from"./chunk-UR6MHSHU.js";var Oe=_t(D=>{"use strict";Object.defineProperty(D,"__esModule",{value:!0});D.CHAR=`
|
|
3
|
-
\r -\uD7FF\uE000-\uFFFD\u{10000}-\u{10FFFF}`;D.S=` \r
|
|
4
|
-
`;D.NAME_START_CHAR=":A-Z_a-z\xC0-\xD6\xD8-\xF6\xF8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u{10000}-\u{EFFFF}";D.NAME_CHAR="-"+D.NAME_START_CHAR+".0-9\xB7\u0300-\u036F\u203F-\u2040";D.CHAR_RE=new RegExp("^["+D.CHAR+"]$","u");D.S_RE=new RegExp("^["+D.S+"]+$","u");D.NAME_START_CHAR_RE=new RegExp("^["+D.NAME_START_CHAR+"]$","u");D.NAME_CHAR_RE=new RegExp("^["+D.NAME_CHAR+"]$","u");D.NAME_RE=new RegExp("^["+D.NAME_START_CHAR+"]["+D.NAME_CHAR+"]*$","u");D.NMTOKEN_RE=new RegExp("^["+D.NAME_CHAR+"]+$","u");var Ut=9,Ht=10,Wt=13,Vt=32;D.S_LIST=[Vt,Ht,Wt,Ut];function zi(e){return e>=Vt&&e<=55295||e===Ht||e===Wt||e===Ut||e>=57344&&e<=65533||e>=65536&&e<=1114111}D.isChar=zi;function Ui(e){return e===Vt||e===Ht||e===Wt||e===Ut}D.isS=Ui;function ke(e){return e>=65&&e<=90||e>=97&&e<=122||e===58||e===95||e===8204||e===8205||e>=192&&e<=214||e>=216&&e<=246||e>=248&&e<=767||e>=880&&e<=893||e>=895&&e<=8191||e>=8304&&e<=8591||e>=11264&&e<=12271||e>=12289&&e<=55295||e>=63744&&e<=64975||e>=65008&&e<=65533||e>=65536&&e<=983039}D.isNameStartChar=ke;function Hi(e){return ke(e)||e>=48&&e<=57||e===45||e===46||e===183||e>=768&&e<=879||e>=8255&&e<=8256}D.isNameChar=Hi});var Xe=_t(x=>{"use strict";Object.defineProperty(x,"__esModule",{value:!0});x.CHAR="-\uD7FF\uE000-\uFFFD\u{10000}-\u{10FFFF}";x.RESTRICTED_CHAR="-\b\v\f-\x7F-\x84\x86-\x9F";x.S=` \r
|
|
5
|
-
`;x.NAME_START_CHAR=":A-Z_a-z\xC0-\xD6\xD8-\xF6\xF8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u{10000}-\u{EFFFF}";x.NAME_CHAR="-"+x.NAME_START_CHAR+".0-9\xB7\u0300-\u036F\u203F-\u2040";x.CHAR_RE=new RegExp("^["+x.CHAR+"]$","u");x.RESTRICTED_CHAR_RE=new RegExp("^["+x.RESTRICTED_CHAR+"]$","u");x.S_RE=new RegExp("^["+x.S+"]+$","u");x.NAME_START_CHAR_RE=new RegExp("^["+x.NAME_START_CHAR+"]$","u");x.NAME_CHAR_RE=new RegExp("^["+x.NAME_CHAR+"]$","u");x.NAME_RE=new RegExp("^["+x.NAME_START_CHAR+"]["+x.NAME_CHAR+"]*$","u");x.NMTOKEN_RE=new RegExp("^["+x.NAME_CHAR+"]+$","u");var Me=9,Ie=10,Pe=13,Be=32;x.S_LIST=[Be,Ie,Pe,Me];function Wi(e){return e>=1&&e<=55295||e>=57344&&e<=65533||e>=65536&&e<=1114111}x.isChar=Wi;function Vi(e){return e>=1&&e<=8||e===11||e===12||e>=14&&e<=31||e>=127&&e<=132||e>=134&&e<=159}x.isRestrictedChar=Vi;function Gi(e){return e===9||e===10||e===13||e>31&&e<127||e===133||e>159&&e<=55295||e>=57344&&e<=65533||e>=65536&&e<=1114111}x.isCharAndNotRestricted=Gi;function qi(e){return e===Be||e===Ie||e===Pe||e===Me}x.isS=qi;function Le(e){return e>=65&&e<=90||e>=97&&e<=122||e===58||e===95||e===8204||e===8205||e>=192&&e<=214||e>=216&&e<=246||e>=248&&e<=767||e>=880&&e<=893||e>=895&&e<=8191||e>=8304&&e<=8591||e>=11264&&e<=12271||e>=12289&&e<=55295||e>=63744&&e<=64975||e>=65008&&e<=65533||e>=65536&&e<=983039}x.isNameStartChar=Le;function ji(e){return Le(e)||e>=48&&e<=57||e===45||e===46||e===183||e>=768&&e<=879||e>=8255&&e<=8256}x.isNameChar=ji});var ze=_t(k=>{"use strict";Object.defineProperty(k,"__esModule",{value:!0});k.NC_NAME_START_CHAR="A-Z_a-z\xC0-\xD6\xD8-\xF6\xF8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u{10000}-\u{EFFFF}";k.NC_NAME_CHAR="-"+k.NC_NAME_START_CHAR+".0-9\xB7\u0300-\u036F\u203F-\u2040";k.NC_NAME_START_CHAR_RE=new RegExp("^["+k.NC_NAME_START_CHAR+"]$","u");k.NC_NAME_CHAR_RE=new RegExp("^["+k.NC_NAME_CHAR+"]$","u");k.NC_NAME_RE=new RegExp("^["+k.NC_NAME_START_CHAR+"]["+k.NC_NAME_CHAR+"]*$","u");function $e(e){return e>=65&&e<=90||e===95||e>=97&&e<=122||e>=192&&e<=214||e>=216&&e<=246||e>=248&&e<=767||e>=880&&e<=893||e>=895&&e<=8191||e>=8204&&e<=8205||e>=8304&&e<=8591||e>=11264&&e<=12271||e>=12289&&e<=55295||e>=63744&&e<=64975||e>=65008&&e<=65533||e>=65536&&e<=983039}k.isNCNameStartChar=$e;function Zi(e){return $e(e)||e===45||e===46||e>=48&&e<=57||e===183||e>=768&&e<=879||e>=8255&&e<=8256}k.isNCNameChar=Zi});var ae=_t(ot=>{"use strict";Object.defineProperty(ot,"__esModule",{value:!0});ot.SaxesParser=ot.EVENTS=void 0;var ht=Oe(),Yi=Xe(),re=ze(),O=ht.isS,Qi=ht.isChar,vt=ht.isNameStartChar,Ue=ht.isNameChar,ii=ht.S_LIST,Ki=ht.NAME_RE,Ji=Yi.isChar,tn=re.isNCNameStartChar,en=re.isNCNameChar,nn=re.NC_NAME_RE,Nt="http://www.w3.org/XML/1998/namespace",at="http://www.w3.org/2000/xmlns/",sn={__proto__:null,xml:Nt,xmlns:at},rn={__proto__:null,amp:"&",gt:">",lt:"<",quot:'"',apos:"'"},A=-1,X=-2,He=0,an=1,Gt=2,on=3,nt=4,hn=5,ln=6,un=7,qt=8,fn=9,cn=10,pn=11,dn=12,R=13,Tt=14,jt=15,gn=16,Zt=17,mn=18,vn=19,Yt=20,xn=21,Cn=22,En=23,We=24,Qt=25,bt=26,Ve=27,Dn=28,wn=29,Ge=30,An=31,_n=32,q=33,Tn=34,Kt=35,xt=36,Jt=37,bn=38,qe=39,je=40,yn=41,Ze=42,Fn=43,Sn=44,te=9,L=10,ee=13,Ye=32,Qe=33,ni=34,Ct=38,si=39,yt=45,Ft=47,Nn=59,W=60,st=61,_=62,y=63,ri=91,rt=93,Ke=133,Je=8232,St=e=>e===ni||e===si,ai=[ni,si],Rn=[...ai,ri,_],kn=[...ai,W,rt],On=[st,y,...ii],Mn=[...ii,_,Ct,W];function ne(e,t,i){switch(t){case"xml":i!==Nt&&e.fail(`xml prefix must be bound to ${Nt}.`);break;case"xmlns":i!==at&&e.fail(`xmlns prefix must be bound to ${at}.`);break;default:}switch(i){case at:e.fail(t===""?`the default namespace may not be set to ${i}.`:`may not assign a prefix (even "xmlns") to the URI ${at}.`);break;case Nt:switch(t){case"xml":break;case"":e.fail(`the default namespace may not be set to ${i}.`);break;default:e.fail("may not assign the xml namespace to another prefix.")}break;default:}}function In(e,t){for(let i of Object.keys(t))ne(e,i,t[i])}var Pn=e=>nn.test(e),Bn=e=>Ki.test(e),j=0,ti=1,ie=2;ot.EVENTS=["xmldecl","text","processinginstruction","doctype","comment","opentagstart","attribute","opentag","closetag","cdata","error","end","ready"];var ei={xmldecl:"xmldeclHandler",text:"textHandler",processinginstruction:"piHandler",doctype:"doctypeHandler",comment:"commentHandler",opentagstart:"openTagStartHandler",attribute:"attributeHandler",opentag:"openTagHandler",closetag:"closeTagHandler",cdata:"cdataHandler",error:"errorHandler",end:"endHandler",ready:"readyHandler"},se=class{constructor(t){this.opt=t??{},this.fragmentOpt=!!this.opt.fragment;let i=this.xmlnsOpt=!!this.opt.xmlns;if(this.trackPosition=this.opt.position!==!1,this.fileName=this.opt.fileName,i){this.nameStartCheck=tn,this.nameCheck=en,this.isName=Pn,this.processAttribs=this.processAttribsNS,this.pushAttrib=this.pushAttribNS,this.ns=Object.assign({__proto__:null},sn);let n=this.opt.additionalNamespaces;n!=null&&(In(this,n),Object.assign(this.ns,n))}else this.nameStartCheck=vt,this.nameCheck=Ue,this.isName=Bn,this.processAttribs=this.processAttribsPlain,this.pushAttrib=this.pushAttribPlain;this.stateTable=[this.sBegin,this.sBeginWhitespace,this.sDoctype,this.sDoctypeQuote,this.sDTD,this.sDTDQuoted,this.sDTDOpenWaka,this.sDTDOpenWakaBang,this.sDTDComment,this.sDTDCommentEnding,this.sDTDCommentEnded,this.sDTDPI,this.sDTDPIEnding,this.sText,this.sEntity,this.sOpenWaka,this.sOpenWakaBang,this.sComment,this.sCommentEnding,this.sCommentEnded,this.sCData,this.sCDataEnding,this.sCDataEnding2,this.sPIFirstChar,this.sPIRest,this.sPIBody,this.sPIEnding,this.sXMLDeclNameStart,this.sXMLDeclName,this.sXMLDeclEq,this.sXMLDeclValueStart,this.sXMLDeclValue,this.sXMLDeclSeparator,this.sXMLDeclEnding,this.sOpenTag,this.sOpenTagSlash,this.sAttrib,this.sAttribName,this.sAttribNameSawWhite,this.sAttribValue,this.sAttribValueQuoted,this.sAttribValueClosed,this.sAttribValueUnquoted,this.sCloseTag,this.sCloseTagSawWhite],this._init()}get closed(){return this._closed}_init(){var t;this.openWakaBang="",this.text="",this.name="",this.piTarget="",this.entity="",this.q=null,this.tags=[],this.tag=null,this.topNS=null,this.chunk="",this.chunkPosition=0,this.i=0,this.prevI=0,this.carriedFromPrevious=void 0,this.forbiddenState=j,this.attribList=[];let{fragmentOpt:i}=this;this.state=i?R:He,this.reportedTextBeforeRoot=this.reportedTextAfterRoot=this.closedRoot=this.sawRoot=i,this.xmlDeclPossible=!i,this.xmlDeclExpects=["version"],this.entityReturnState=void 0;let{defaultXMLVersion:n}=this.opt;if(n===void 0){if(this.opt.forceXMLVersion===!0)throw new Error("forceXMLVersion set but defaultXMLVersion is not set");n="1.0"}this.setXMLVersion(n),this.positionAtNewLine=0,this.doctype=!1,this._closed=!1,this.xmlDecl={version:void 0,encoding:void 0,standalone:void 0},this.line=1,this.column=0,this.ENTITIES=Object.create(rn),(t=this.readyHandler)===null||t===void 0||t.call(this)}get position(){return this.chunkPosition+this.i}get columnIndex(){return this.position-this.positionAtNewLine}on(t,i){this[ei[t]]=i}off(t){this[ei[t]]=void 0}makeError(t){var i;let n=(i=this.fileName)!==null&&i!==void 0?i:"";return this.trackPosition&&(n.length>0&&(n+=":"),n+=`${this.line}:${this.column}`),n.length>0&&(n+=": "),new Error(n+t)}fail(t){let i=this.makeError(t),n=this.errorHandler;if(n===void 0)throw i;return n(i),this}write(t){if(this.closed)return this.fail("cannot write after close; assign an onready handler.");let i=!1;t===null?(i=!0,t=""):typeof t=="object"&&(t=t.toString()),this.carriedFromPrevious!==void 0&&(t=`${this.carriedFromPrevious}${t}`,this.carriedFromPrevious=void 0);let n=t.length,s=t.charCodeAt(n-1);!i&&(s===ee||s>=55296&&s<=56319)&&(this.carriedFromPrevious=t[n-1],n--,t=t.slice(0,n));let{stateTable:a}=this;for(this.chunk=t,this.i=0;this.i<n;)a[this.state].call(this);return this.chunkPosition+=n,i?this.end():this}close(){return this.write(null)}getCode10(){let{chunk:t,i}=this;if(this.prevI=i,this.i=i+1,i>=t.length)return A;let n=t.charCodeAt(i);if(this.column++,n<55296){if(n>=Ye||n===te)return n;switch(n){case L:return this.line++,this.column=0,this.positionAtNewLine=this.position,L;case ee:return t.charCodeAt(i+1)===L&&(this.i=i+2),this.line++,this.column=0,this.positionAtNewLine=this.position,X;default:return this.fail("disallowed character."),n}}if(n>56319)return n>=57344&&n<=65533||this.fail("disallowed character."),n;let s=65536+(n-55296)*1024+(t.charCodeAt(i+1)-56320);return this.i=i+2,s>1114111&&this.fail("disallowed character."),s}getCode11(){let{chunk:t,i}=this;if(this.prevI=i,this.i=i+1,i>=t.length)return A;let n=t.charCodeAt(i);if(this.column++,n<55296){if(n>31&&n<127||n>159&&n!==Je||n===te)return n;switch(n){case L:return this.line++,this.column=0,this.positionAtNewLine=this.position,L;case ee:{let a=t.charCodeAt(i+1);(a===L||a===Ke)&&(this.i=i+2)}case Ke:case Je:return this.line++,this.column=0,this.positionAtNewLine=this.position,X;default:return this.fail("disallowed character."),n}}if(n>56319)return n>=57344&&n<=65533||this.fail("disallowed character."),n;let s=65536+(n-55296)*1024+(t.charCodeAt(i+1)-56320);return this.i=i+2,s>1114111&&this.fail("disallowed character."),s}getCodeNorm(){let t=this.getCode();return t===X?L:t}unget(){this.i=this.prevI,this.column--}captureTo(t){let{i}=this,{chunk:n}=this;for(;;){let s=this.getCode(),a=s===X,o=a?L:s;if(o===A||t.includes(o))return this.text+=n.slice(i,this.prevI),o;a&&(this.text+=`${n.slice(i,this.prevI)}
|
|
6
|
-
`,i=this.i)}}captureToChar(t){let{i}=this,{chunk:n}=this;for(;;){let s=this.getCode();switch(s){case X:this.text+=`${n.slice(i,this.prevI)}
|
|
7
|
-
`,i=this.i,s=L;break;case A:return this.text+=n.slice(i),!1;default:}if(s===t)return this.text+=n.slice(i,this.prevI),!0}}captureNameChars(){let{chunk:t,i}=this;for(;;){let n=this.getCode();if(n===A)return this.name+=t.slice(i),A;if(!Ue(n))return this.name+=t.slice(i,this.prevI),n===X?L:n}}skipSpaces(){for(;;){let t=this.getCodeNorm();if(t===A||!O(t))return t}}setXMLVersion(t){this.currentXMLVersion=t,t==="1.0"?(this.isChar=Qi,this.getCode=this.getCode10):(this.isChar=Ji,this.getCode=this.getCode11)}sBegin(){this.chunk.charCodeAt(0)===65279&&(this.i++,this.column++),this.state=an}sBeginWhitespace(){let t=this.i,i=this.skipSpaces();switch(this.prevI!==t&&(this.xmlDeclPossible=!1),i){case W:if(this.state=jt,this.text.length!==0)throw new Error("no-empty text at start");break;case A:break;default:this.unget(),this.state=R,this.xmlDeclPossible=!1}}sDoctype(){var t;let i=this.captureTo(Rn);switch(i){case _:{(t=this.doctypeHandler)===null||t===void 0||t.call(this,this.text),this.text="",this.state=R,this.doctype=!0;break}case A:break;default:this.text+=String.fromCodePoint(i),i===ri?this.state=nt:St(i)&&(this.state=on,this.q=i)}}sDoctypeQuote(){let t=this.q;this.captureToChar(t)&&(this.text+=String.fromCodePoint(t),this.q=null,this.state=Gt)}sDTD(){let t=this.captureTo(kn);t!==A&&(this.text+=String.fromCodePoint(t),t===rt?this.state=Gt:t===W?this.state=ln:St(t)&&(this.state=hn,this.q=t))}sDTDQuoted(){let t=this.q;this.captureToChar(t)&&(this.text+=String.fromCodePoint(t),this.state=nt,this.q=null)}sDTDOpenWaka(){let t=this.getCodeNorm();switch(this.text+=String.fromCodePoint(t),t){case Qe:this.state=un,this.openWakaBang="";break;case y:this.state=pn;break;default:this.state=nt}}sDTDOpenWakaBang(){let t=String.fromCodePoint(this.getCodeNorm()),i=this.openWakaBang+=t;this.text+=t,i!=="-"&&(this.state=i==="--"?qt:nt,this.openWakaBang="")}sDTDComment(){this.captureToChar(yt)&&(this.text+="-",this.state=fn)}sDTDCommentEnding(){let t=this.getCodeNorm();this.text+=String.fromCodePoint(t),this.state=t===yt?cn:qt}sDTDCommentEnded(){let t=this.getCodeNorm();this.text+=String.fromCodePoint(t),t===_?this.state=nt:(this.fail("malformed comment."),this.state=qt)}sDTDPI(){this.captureToChar(y)&&(this.text+="?",this.state=dn)}sDTDPIEnding(){let t=this.getCodeNorm();this.text+=String.fromCodePoint(t),t===_&&(this.state=nt)}sText(){this.tags.length!==0?this.handleTextInRoot():this.handleTextOutsideRoot()}sEntity(){let{i:t}=this,{chunk:i}=this;t:for(;;)switch(this.getCode()){case X:this.entity+=`${i.slice(t,this.prevI)}
|
|
8
|
-
`,t=this.i;break;case Nn:{let{entityReturnState:n}=this,s=this.entity+i.slice(t,this.prevI);this.state=n;let a;s===""?(this.fail("empty entity name."),a="&;"):(a=this.parseEntity(s),this.entity=""),(n!==R||this.textHandler!==void 0)&&(this.text+=a);break t}case A:this.entity+=i.slice(t);break t;default:}}sOpenWaka(){let t=this.getCode();if(vt(t))this.state=Tn,this.unget(),this.xmlDeclPossible=!1;else switch(t){case Ft:this.state=Fn,this.xmlDeclPossible=!1;break;case Qe:this.state=gn,this.openWakaBang="",this.xmlDeclPossible=!1;break;case y:this.state=En;break;default:this.fail("disallowed character in tag name"),this.state=R,this.xmlDeclPossible=!1}}sOpenWakaBang(){switch(this.openWakaBang+=String.fromCodePoint(this.getCodeNorm()),this.openWakaBang){case"[CDATA[":!this.sawRoot&&!this.reportedTextBeforeRoot&&(this.fail("text data outside of root node."),this.reportedTextBeforeRoot=!0),this.closedRoot&&!this.reportedTextAfterRoot&&(this.fail("text data outside of root node."),this.reportedTextAfterRoot=!0),this.state=Yt,this.openWakaBang="";break;case"--":this.state=Zt,this.openWakaBang="";break;case"DOCTYPE":this.state=Gt,(this.doctype||this.sawRoot)&&this.fail("inappropriately located doctype declaration."),this.openWakaBang="";break;default:this.openWakaBang.length>=7&&this.fail("incorrect syntax.")}}sComment(){this.captureToChar(yt)&&(this.state=mn)}sCommentEnding(){var t;let i=this.getCodeNorm();i===yt?(this.state=vn,(t=this.commentHandler)===null||t===void 0||t.call(this,this.text),this.text=""):(this.text+=`-${String.fromCodePoint(i)}`,this.state=Zt)}sCommentEnded(){let t=this.getCodeNorm();t!==_?(this.fail("malformed comment."),this.text+=`--${String.fromCodePoint(t)}`,this.state=Zt):this.state=R}sCData(){this.captureToChar(rt)&&(this.state=xn)}sCDataEnding(){let t=this.getCodeNorm();t===rt?this.state=Cn:(this.text+=`]${String.fromCodePoint(t)}`,this.state=Yt)}sCDataEnding2(){var t;let i=this.getCodeNorm();switch(i){case _:{(t=this.cdataHandler)===null||t===void 0||t.call(this,this.text),this.text="",this.state=R;break}case rt:this.text+="]";break;default:this.text+=`]]${String.fromCodePoint(i)}`,this.state=Yt}}sPIFirstChar(){let t=this.getCodeNorm();this.nameStartCheck(t)?(this.piTarget+=String.fromCodePoint(t),this.state=We):t===y||O(t)?(this.fail("processing instruction without a target."),this.state=t===y?bt:Qt):(this.fail("disallowed character in processing instruction name."),this.piTarget+=String.fromCodePoint(t),this.state=We)}sPIRest(){let{chunk:t,i}=this;for(;;){let n=this.getCodeNorm();if(n===A){this.piTarget+=t.slice(i);return}if(!this.nameCheck(n)){this.piTarget+=t.slice(i,this.prevI);let s=n===y;s||O(n)?this.piTarget==="xml"?(this.xmlDeclPossible||this.fail("an XML declaration must be at the start of the document."),this.state=s?q:Ve):this.state=s?bt:Qt:(this.fail("disallowed character in processing instruction name."),this.piTarget+=String.fromCodePoint(n));break}}}sPIBody(){if(this.text.length===0){let t=this.getCodeNorm();t===y?this.state=bt:O(t)||(this.text=String.fromCodePoint(t))}else this.captureToChar(y)&&(this.state=bt)}sPIEnding(){var t;let i=this.getCodeNorm();if(i===_){let{piTarget:n}=this;n.toLowerCase()==="xml"&&this.fail("the XML declaration must appear at the start of the document."),(t=this.piHandler)===null||t===void 0||t.call(this,{target:n,body:this.text}),this.piTarget=this.text="",this.state=R}else i===y?this.text+="?":(this.text+=`?${String.fromCodePoint(i)}`,this.state=Qt);this.xmlDeclPossible=!1}sXMLDeclNameStart(){let t=this.skipSpaces();if(t===y){this.state=q;return}t!==A&&(this.state=Dn,this.name=String.fromCodePoint(t))}sXMLDeclName(){let t=this.captureTo(On);if(t===y){this.state=q,this.name+=this.text,this.text="",this.fail("XML declaration is incomplete.");return}if(O(t)||t===st){if(this.name+=this.text,this.text="",!this.xmlDeclExpects.includes(this.name))switch(this.name.length){case 0:this.fail("did not expect any more name/value pairs.");break;case 1:this.fail(`expected the name ${this.xmlDeclExpects[0]}.`);break;default:this.fail(`expected one of ${this.xmlDeclExpects.join(", ")}`)}this.state=t===st?Ge:wn}}sXMLDeclEq(){let t=this.getCodeNorm();if(t===y){this.state=q,this.fail("XML declaration is incomplete.");return}O(t)||(t!==st&&this.fail("value required."),this.state=Ge)}sXMLDeclValueStart(){let t=this.getCodeNorm();if(t===y){this.state=q,this.fail("XML declaration is incomplete.");return}O(t)||(St(t)?this.q=t:(this.fail("value must be quoted."),this.q=Ye),this.state=An)}sXMLDeclValue(){let t=this.captureTo([this.q,y]);if(t===y){this.state=q,this.text="",this.fail("XML declaration is incomplete.");return}if(t===A)return;let i=this.text;switch(this.text="",this.name){case"version":{this.xmlDeclExpects=["encoding","standalone"];let n=i;this.xmlDecl.version=n,/^1\.[0-9]+$/.test(n)?this.opt.forceXMLVersion||this.setXMLVersion(n):this.fail("version number must match /^1\\.[0-9]+$/.");break}case"encoding":/^[A-Za-z][A-Za-z0-9._-]*$/.test(i)||this.fail("encoding value must match /^[A-Za-z0-9][A-Za-z0-9._-]*$/."),this.xmlDeclExpects=["standalone"],this.xmlDecl.encoding=i;break;case"standalone":i!=="yes"&&i!=="no"&&this.fail('standalone value must match "yes" or "no".'),this.xmlDeclExpects=[],this.xmlDecl.standalone=i;break;default:}this.name="",this.state=_n}sXMLDeclSeparator(){let t=this.getCodeNorm();if(t===y){this.state=q;return}O(t)||(this.fail("whitespace required."),this.unget()),this.state=Ve}sXMLDeclEnding(){var t;this.getCodeNorm()===_?(this.piTarget!=="xml"?this.fail("processing instructions are not allowed before root."):this.name!=="version"&&this.xmlDeclExpects.includes("version")&&this.fail("XML declaration must contain a version."),(t=this.xmldeclHandler)===null||t===void 0||t.call(this,this.xmlDecl),this.name="",this.piTarget=this.text="",this.state=R):this.fail("The character ? is disallowed anywhere in XML declarations."),this.xmlDeclPossible=!1}sOpenTag(){var t;let i=this.captureNameChars();if(i===A)return;let n=this.tag={name:this.name,attributes:Object.create(null)};switch(this.name="",this.xmlnsOpt&&(this.topNS=n.ns=Object.create(null)),(t=this.openTagStartHandler)===null||t===void 0||t.call(this,n),this.sawRoot=!0,!this.fragmentOpt&&this.closedRoot&&this.fail("documents may contain only one root."),i){case _:this.openTag();break;case Ft:this.state=Kt;break;default:O(i)||this.fail("disallowed character in tag name."),this.state=xt}}sOpenTagSlash(){this.getCode()===_?this.openSelfClosingTag():(this.fail("forward-slash in opening tag not followed by >."),this.state=xt)}sAttrib(){let t=this.skipSpaces();t!==A&&(vt(t)?(this.unget(),this.state=Jt):t===_?this.openTag():t===Ft?this.state=Kt:this.fail("disallowed character in attribute name."))}sAttribName(){let t=this.captureNameChars();t===st?this.state=qe:O(t)?this.state=bn:t===_?(this.fail("attribute without value."),this.pushAttrib(this.name,this.name),this.name=this.text="",this.openTag()):t!==A&&this.fail("disallowed character in attribute name.")}sAttribNameSawWhite(){let t=this.skipSpaces();switch(t){case A:return;case st:this.state=qe;break;default:this.fail("attribute without value."),this.text="",this.name="",t===_?this.openTag():vt(t)?(this.unget(),this.state=Jt):(this.fail("disallowed character in attribute name."),this.state=xt)}}sAttribValue(){let t=this.getCodeNorm();St(t)?(this.q=t,this.state=je):O(t)||(this.fail("unquoted attribute value."),this.state=Ze,this.unget())}sAttribValueQuoted(){let{q:t,chunk:i}=this,{i:n}=this;for(;;)switch(this.getCode()){case t:this.pushAttrib(this.name,this.text+i.slice(n,this.prevI)),this.name=this.text="",this.q=null,this.state=yn;return;case Ct:this.text+=i.slice(n,this.prevI),this.state=Tt,this.entityReturnState=je;return;case L:case X:case te:this.text+=`${i.slice(n,this.prevI)} `,n=this.i;break;case W:this.text+=i.slice(n,this.prevI),this.fail("disallowed character.");return;case A:this.text+=i.slice(n);return;default:}}sAttribValueClosed(){let t=this.getCodeNorm();O(t)?this.state=xt:t===_?this.openTag():t===Ft?this.state=Kt:vt(t)?(this.fail("no whitespace between attributes."),this.unget(),this.state=Jt):this.fail("disallowed character in attribute name.")}sAttribValueUnquoted(){let t=this.captureTo(Mn);switch(t){case Ct:this.state=Tt,this.entityReturnState=Ze;break;case W:this.fail("disallowed character.");break;case A:break;default:this.text.includes("]]>")&&this.fail('the string "]]>" is disallowed in char data.'),this.pushAttrib(this.name,this.text),this.name=this.text="",t===_?this.openTag():this.state=xt}}sCloseTag(){let t=this.captureNameChars();t===_?this.closeTag():O(t)?this.state=Sn:t!==A&&this.fail("disallowed character in closing tag.")}sCloseTagSawWhite(){switch(this.skipSpaces()){case _:this.closeTag();break;case A:break;default:this.fail("disallowed character in closing tag.")}}handleTextInRoot(){let{i:t,forbiddenState:i}=this,{chunk:n,textHandler:s}=this;t:for(;;)switch(this.getCode()){case W:{if(this.state=jt,s!==void 0){let{text:a}=this,o=n.slice(t,this.prevI);a.length!==0?(s(a+o),this.text=""):o.length!==0&&s(o)}i=j;break t}case Ct:this.state=Tt,this.entityReturnState=R,s!==void 0&&(this.text+=n.slice(t,this.prevI)),i=j;break t;case rt:switch(i){case j:i=ti;break;case ti:i=ie;break;case ie:break;default:throw new Error("impossible state")}break;case _:i===ie&&this.fail('the string "]]>" is disallowed in char data.'),i=j;break;case X:s!==void 0&&(this.text+=`${n.slice(t,this.prevI)}
|
|
9
|
-
`),t=this.i,i=j;break;case A:s!==void 0&&(this.text+=n.slice(t));break t;default:i=j}this.forbiddenState=i}handleTextOutsideRoot(){let{i:t}=this,{chunk:i,textHandler:n}=this,s=!1;t:for(;;){let a=this.getCode();switch(a){case W:{if(this.state=jt,n!==void 0){let{text:o}=this,r=i.slice(t,this.prevI);o.length!==0?(n(o+r),this.text=""):r.length!==0&&n(r)}break t}case Ct:this.state=Tt,this.entityReturnState=R,n!==void 0&&(this.text+=i.slice(t,this.prevI)),s=!0;break t;case X:n!==void 0&&(this.text+=`${i.slice(t,this.prevI)}
|
|
10
|
-
`),t=this.i;break;case A:n!==void 0&&(this.text+=i.slice(t));break t;default:O(a)||(s=!0)}}s&&(!this.sawRoot&&!this.reportedTextBeforeRoot&&(this.fail("text data outside of root node."),this.reportedTextBeforeRoot=!0),this.closedRoot&&!this.reportedTextAfterRoot&&(this.fail("text data outside of root node."),this.reportedTextAfterRoot=!0))}pushAttribNS(t,i){var n;let{prefix:s,local:a}=this.qname(t),o={name:t,prefix:s,local:a,value:i};if(this.attribList.push(o),(n=this.attributeHandler)===null||n===void 0||n.call(this,o),s==="xmlns"){let r=i.trim();this.currentXMLVersion==="1.0"&&r===""&&this.fail("invalid attempt to undefine prefix in XML 1.0"),this.topNS[a]=r,ne(this,a,r)}else if(t==="xmlns"){let r=i.trim();this.topNS[""]=r,ne(this,"",r)}}pushAttribPlain(t,i){var n;let s={name:t,value:i};this.attribList.push(s),(n=this.attributeHandler)===null||n===void 0||n.call(this,s)}end(){var t,i;this.sawRoot||this.fail("document must contain a root element.");let{tags:n}=this;for(;n.length>0;){let a=n.pop();this.fail(`unclosed tag: ${a.name}`)}this.state!==He&&this.state!==R&&this.fail("unexpected end.");let{text:s}=this;return s.length!==0&&((t=this.textHandler)===null||t===void 0||t.call(this,s),this.text=""),this._closed=!0,(i=this.endHandler)===null||i===void 0||i.call(this),this._init(),this}resolve(t){var i,n;let s=this.topNS[t];if(s!==void 0)return s;let{tags:a}=this;for(let o=a.length-1;o>=0;o--)if(s=a[o].ns[t],s!==void 0)return s;return s=this.ns[t],s!==void 0?s:(n=(i=this.opt).resolvePrefix)===null||n===void 0?void 0:n.call(i,t)}qname(t){let i=t.indexOf(":");if(i===-1)return{prefix:"",local:t};let n=t.slice(i+1),s=t.slice(0,i);return(s===""||n===""||n.includes(":"))&&this.fail(`malformed name: ${t}.`),{prefix:s,local:n}}processAttribsNS(){var t;let{attribList:i}=this,n=this.tag;{let{prefix:o,local:r}=this.qname(n.name);n.prefix=o,n.local=r;let u=n.uri=(t=this.resolve(o))!==null&&t!==void 0?t:"";o!==""&&(o==="xmlns"&&this.fail('tags may not have "xmlns" as prefix.'),u===""&&(this.fail(`unbound namespace prefix: ${JSON.stringify(o)}.`),n.uri=o))}if(i.length===0)return;let{attributes:s}=n,a=new Set;for(let o of i){let{name:r,prefix:u,local:f}=o,p,h;u===""?(p=r==="xmlns"?at:"",h=r):(p=this.resolve(u),p===void 0&&(this.fail(`unbound namespace prefix: ${JSON.stringify(u)}.`),p=u),h=`{${p}}${f}`),a.has(h)&&this.fail(`duplicate attribute: ${h}.`),a.add(h),o.uri=p,s[r]=o}this.attribList=[]}processAttribsPlain(){let{attribList:t}=this,i=this.tag.attributes;for(let{name:n,value:s}of t)i[n]!==void 0&&this.fail(`duplicate attribute: ${n}.`),i[n]=s;this.attribList=[]}openTag(){var t;this.processAttribs();let{tags:i}=this,n=this.tag;n.isSelfClosing=!1,(t=this.openTagHandler)===null||t===void 0||t.call(this,n),i.push(n),this.state=R,this.name=""}openSelfClosingTag(){var t,i,n;this.processAttribs();let{tags:s}=this,a=this.tag;a.isSelfClosing=!0,(t=this.openTagHandler)===null||t===void 0||t.call(this,a),(i=this.closeTagHandler)===null||i===void 0||i.call(this,a),(this.tag=(n=s[s.length-1])!==null&&n!==void 0?n:null)===null&&(this.closedRoot=!0),this.state=R,this.name=""}closeTag(){let{tags:t,name:i}=this;if(this.state=R,this.name="",i===""){this.fail("weird empty close tag."),this.text+="</>";return}let n=this.closeTagHandler,s=t.length;for(;s-- >0;){let a=this.tag=t.pop();if(this.topNS=a.ns,n?.(a),a.name===i)break;this.fail("unexpected close tag.")}s===0?this.closedRoot=!0:s<0&&(this.fail(`unmatched closing tag: ${i}.`),this.text+=`</${i}>`)}parseEntity(t){if(t[0]!=="#"){let n=this.ENTITIES[t];return n!==void 0?n:(this.fail(this.isName(t)?"undefined entity.":"disallowed character in entity name."),`&${t};`)}let i=NaN;return t[1]==="x"&&/^#x[0-9a-f]+$/i.test(t)?i=parseInt(t.slice(2),16):/^#[0-9]+$/.test(t)&&(i=parseInt(t.slice(1),10)),this.isChar(i)?String.fromCodePoint(i):(this.fail("malformed character entity."),`&${t};`)}};ot.SaxesParser=se});import{createRequire as Ai}from"module";var _i=Ai("/"),it,Ti,bi;try{it=_i("worker_threads"),Ti=it.Worker,bi=it.isMarkedAsUntransferable}catch{}var S=Uint8Array,J=Uint16Array,yi=Int32Array,_e=new S([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]),Te=new S([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]),Fi=new S([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),be=function(e,t){for(var i=new J(31),n=0;n<31;++n)i[n]=t+=1<<e[n-1];for(var s=new yi(i[30]),n=1;n<30;++n)for(var a=i[n];a<i[n+1];++a)s[a]=a-i[n]<<5|n;return{b:i,r:s}},it=be(_e,2),ye=it.b,Si=it.r;ye[28]=258,Si[258]=28;var Fe=be(Te,0),Ni=Fe.b,cs=Fe.r,Xt=new J(32768);for(v=0;v<32768;++v)z=(v&43690)>>1|(v&21845)<<1,z=(z&52428)>>2|(z&13107)<<2,z=(z&61680)>>4|(z&3855)<<4,Xt[v]=((z&65280)>>8|(z&255)<<8)>>1;var z,v,dt=(function(e,t,i){for(var n=e.length,s=0,a=new J(t);s<n;++s)e[s]&&++a[e[s]-1];var o=new J(t);for(s=1;s<t;++s)o[s]=o[s-1]+a[s-1]<<1;var r;if(i){r=new J(1<<t);var u=15-t;for(s=0;s<n;++s)if(e[s])for(var f=s<<4|e[s],p=t-e[s],h=o[e[s]-1]++<<p,l=h|(1<<p)-1;h<=l;++h)r[Xt[h]>>u]=f}else for(r=new J(n),s=0;s<n;++s)e[s]&&(r[s]=Xt[o[e[s]-1]++]>>15-e[s]);return r}),mt=new S(288);for(v=0;v<144;++v)mt[v]=8;var v;for(v=144;v<256;++v)mt[v]=9;var v;for(v=256;v<280;++v)mt[v]=7;var v;for(v=280;v<288;++v)mt[v]=8;var v,Se=new S(32);for(v=0;v<32;++v)Se[v]=5;var v;var Ri=dt(mt,9,1);var ki=dt(Se,5,1),Pt=function(e){for(var t=e[0],i=1;i<e.length;++i)e[i]>t&&(t=e[i]);return t},B=function(e,t,i){var n=t/8|0;return(e[n]|e[n+1]<<8)>>(t&7)&i},Bt=function(e,t){var i=t/8|0;return(e[i]|e[i+1]<<8|e[i+2]<<16)>>(t&7)},Oi=function(e){return(e+7)/8|0},gt=function(e,t,i){return(t==null||t<0)&&(t=0),(i==null||i>e.length)&&(i=e.length),new S(e.subarray(t,i))};var Mi=["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"],b=function(e,t,i){var n=new Error(t||Mi[e]);if(n.code=e,Error.captureStackTrace&&Error.captureStackTrace(n,b),!i)throw n;return n},Ii=function(e,t,i,n){var s=e.length,a=n?n.length:0;if(!s||t.f&&!t.l)return i||new S(0);var o=!i,r=o||t.i!=2,u=t.i;o&&(i=new S(s*3));var f=function(ge){var me=i.length;if(ge>me){var ve=new S(Math.max(me*2,ge));ve.set(i),i=ve}},p=t.f||0,h=t.p||0,l=t.b||0,d=t.l,c=t.d,w=t.m,m=t.n,C=s*8;do{if(!d){p=B(e,h,1);var T=B(e,h+1,3);if(h+=3,T)if(T==1)d=Ri,c=ki,w=9,m=5;else if(T==2){var U=B(e,h,31)+257,Z=B(e,h+10,15)+4,Y=U+B(e,h+5,31)+1;h+=14;for(var G=new S(Y),ut=new S(19),F=0;F<Z;++F)ut[Fi[F]]=B(e,h+F*3,7);h+=Z*3;for(var Q=Pt(ut),$=(1<<Q)-1,Et=dt(ut,Q,1),F=0;F<Y;){var Dt=Et[B(e,h,$)];h+=Dt&15;var E=Dt>>4;if(E<16)G[F++]=E;else{var N=0,M=0;for(E==16?(M=3+B(e,h,3),h+=2,N=G[F-1]):E==17?(M=3+B(e,h,7),h+=3):E==18&&(M=11+B(e,h,127),h+=7);M--;)G[F++]=N}}var K=G.subarray(0,U),I=G.subarray(U);w=Pt(K),m=Pt(I),d=dt(K,w,1),c=dt(I,m,1)}else b(1);else{var E=Oi(h)+4,P=e[E-4]|e[E-3]<<8,V=E+P;if(V>s){u&&b(0);break}r&&f(l+P),i.set(e.subarray(E,V),l),t.b=l+=P,t.p=h=V*8,t.f=p;continue}if(h>C){u&&b(0);break}}r&&f(l+131072);for(var wt=(1<<w)-1,Ot=(1<<m)-1,ft=h;;ft=h){var N=d[Bt(e,h)&wt],H=N>>4;if(h+=N&15,h>C){u&&b(0);break}if(N||b(2),H<256)i[l++]=H;else if(H==256){ft=h,d=null;break}else{var At=H-254;if(H>264){var F=H-257,ct=_e[F];At=B(e,h,(1<<ct)-1)+ye[F],h+=ct}var Mt=c[Bt(e,h)&Ot],It=Mt>>4;Mt||b(3),h+=Mt&15;var I=Ni[It];if(It>3){var ct=Te[It];I+=Bt(e,h)&(1<<ct)-1,h+=ct}if(h>C){u&&b(0);break}r&&f(l+131072);var pe=l+At;if(l<I){var de=a-I,wi=Math.min(I,pe);for(de+l<0&&b(3);l<wi;++l)i[l]=n[de+l]}for(;l<pe;++l)i[l]=i[l-I]}}t.l=d,t.p=ft,t.b=l,t.f=p,d&&(p=1,t.m=w,t.d=c,t.n=m)}while(!p);return l!=i.length&&o?gt(i,0,l):i.subarray(0,l)};var pt=new S(0);var tt=function(e,t){return e[t]|e[t+1]<<8},et=function(e,t){return(e[t]|e[t+1]<<8|e[t+2]<<16|e[t+3]<<24)>>>0},Lt=function(e,t){return et(e,t)+et(e,t+4)*4294967296};var Pi=(function(){function e(t,i){typeof t=="function"&&(i=t,t={}),this.ondata=i;var n=t&&t.dictionary&&t.dictionary.subarray(-32768);this.s={i:0,b:n?n.length:0},this.o=new S(32768),this.p=new S(0),n&&this.o.set(n)}return e.prototype.e=function(t){if(this.ondata||b(5),this.d&&b(4),!this.p.length)this.p=t;else if(t.length){var i=new S(this.p.length+t.length);i.set(this.p),i.set(t,this.p.length),this.p=i}},e.prototype.c=function(t){this.s.i=+(this.d=t||!1);var i=this.s.b,n=Ii(this.p,this.s,this.o);this.ondata(gt(n,i,this.s.b),this.d),this.o=gt(n,this.s.b-32768),this.s.b=this.o.length,this.p=gt(this.p,this.s.p/8|0),this.s.p&=7},e.prototype.push=function(t,i){this.e(t),this.c(i)},e})();var $t=typeof TextDecoder<"u"&&new TextDecoder,Bi=0;try{$t.decode(pt,{stream:!0}),Bi=1}catch{}var Li=function(e){for(var t="",i=0;;){var n=e[i++],s=(n>127)+(n>223)+(n>239);if(i+s>e.length)return{s:t,r:gt(e,i-1)};s?s==3?(n=((n&15)<<18|(e[i++]&63)<<12|(e[i++]&63)<<6|e[i++]&63)-65536,t+=String.fromCharCode(55296|n>>10,56320|n&1023)):s&1?t+=String.fromCharCode((n&31)<<6|e[i++]&63):t+=String.fromCharCode((n&15)<<12|(e[i++]&63)<<6|e[i++]&63):t+=String.fromCharCode(n)}};function Xi(e,t){if(t){for(var i="",n=0;n<e.length;n+=16384)i+=String.fromCharCode.apply(null,e.subarray(n,n+16384));return i}else{if($t)return $t.decode(e);var s=Li(e),a=s.s,i=s.r;return i.length&&b(8),a}}var $i=function(e,t,i,n,s,a,o){var r=s==4294967295,u=a==4294967295,f=o==4294967295,p=t+i,h=r+u+f;if(n&&h){for(;t+4<p;t+=4+tt(e,t+2))if(tt(e,t)==1)return[r?Lt(e,t+4+8*u):s,u?Lt(e,t+4):a,f?Lt(e,t+4+8*(u+r)):o,1];n<2&&b(13)}return[s,a,o,0]};var zt=(function(){function e(){}return e.prototype.push=function(t,i){this.ondata(null,t,i)},e.compression=0,e})();var Ne=(function(){function e(){var t=this;this.i=new Pi(function(i,n){t.ondata(null,i,n)})}return e.prototype.push=function(t,i){try{this.i.push(t,i)}catch(n){this.ondata(n,null,i)}},e.compression=8,e})();var Re=(function(){function e(t){this.onfile=t,this.k=[],this.o={0:zt},this.p=pt}return e.prototype.push=function(t,i){var n=this;if(this.onfile||b(5),this.p||b(4),this.c>0){var s=Math.min(this.c,t.length),a=t.subarray(0,s);if(this.c-=s,this.d?this.d.push(a,!this.c):this.k[0].push(a),t=t.subarray(s),t.length)return this.push(t,i)}else{var o=0,r=0,u=void 0,f=void 0;this.p.length?t.length?(f=new S(this.p.length+t.length),f.set(this.p),f.set(t,this.p.length)):f=this.p:f=t;for(var p=f.length,h=this.c,l=h&&this.d,d=function(){var C=et(f,r);if(C==67324752){o=1,u=r,c.d=null,c.c=0;var T=tt(f,r+6),E=tt(f,r+8),P=T&2048,V=T&8,U=tt(f,r+26),Z=tt(f,r+28);if(p>r+30+U+Z){var Y=[];c.k.unshift(Y),o=2;var G=et(f,r+18),ut=et(f,r+22),F=Xi(f.subarray(r+30,r+=30+U),!P),Q=$i(f,r,Z,2,G,ut,0),$=Q[0],Et=Q[1],Dt=Q[3];V&&($=-1-Dt),r+=Z,c.c=$;var N,M={name:F,compression:E,start:function(){if(M.ondata||b(5),!$)M.ondata(null,pt,!0);else{var K=n.o[E];K||M.ondata(b(14,"unknown compression type "+E,1),null,!1),N=$<0?new K(F):new K(F,$,Et),N.ondata=function(ft,H,At){M.ondata(ft,H,At)};for(var I=0,wt=Y;I<wt.length;I++){var Ot=wt[I];N.push(Ot,!1)}n.k[0]==Y&&n.c?n.d=N:N.push(pt,!0)}},terminate:function(){N&&N.terminate&&N.terminate()}};$>=0&&(M.size=$,M.originalSize=Et),c.onfile(M)}return"break"}else if(h){if(C==134695760)return u=r+=12+(h==-2&&8),o=3,c.c=0,"break";if(C==33639248)return u=r-=4,o=3,c.c=0,"break"}},c=this;r<p-4;++r){var w=d();if(w==="break")break}if(this.p=pt,h<0){var m=o?f.subarray(0,u-12-(h==-2&&8)-(et(f,u-16)==134695760&&4)):f.subarray(0,r);l?l.push(m,!!o):this.k[+(o==2)].push(m)}if(o&2)return this.push(f.subarray(r),i);this.p=f.subarray(r)}i&&(this.c&&b(13),this.p=null)},e.prototype.register=function(t){this.o[t.compression]=t},e})();var li=xe(ae(),1);var Ln=1e4,Xn=5e7,$n=25e7,ui=5e6,fi=256,ci=65536,oe=256,pi=3e4,g=class extends Error{constructor(i,n){super(`${i}: ${n}`);this.code=i}},zn="http://schemas.openxmlformats.org/package/2006/relationships",Un="http://schemas.openxmlformats.org/package/2006/content-types",Hn=new Set(["http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument","http://purl.oclc.org/ooxml/officeDocument/relationships/officeDocument"]),Wn=["application/vnd.openxmlformats-officedocument.wordprocessingml.document.main","application/vnd.ms-word.document.main"];function di(e){return e.length===0?"empty name":e.includes("\\")?"backslash":e.includes("\0")?"NUL byte":e.startsWith("/")?"absolute path":/^[a-zA-Z]:/.test(e)?"drive letter":e.split("/").some(t=>t==="..")?"dot-dot segment":null}function Vn(e,t){let i=Math.max(0,e.length-65557),n=-1;for(let f=e.length-22;f>=i;f--)if(e.readUInt32LE(f)===101010256){n=f;break}if(n<0)throw new g("DOCX_UNREADABLE","not a zip archive (no end-of-central-directory)");let s=e.readUInt16LE(n+10);if(s>t)throw new g("DOCX_TOO_MANY_PARTS",`${s} entries > ${t} cap`);let a=e.readUInt32LE(n+16),o=[],r=new Set,u=a;for(let f=0;f<s;f++){if(u+46>e.length||e.readUInt32LE(u)!==33639248)throw new g("DOCX_UNREADABLE","malformed central directory");let p=e.readUInt32LE(u+16),h=e.readUInt16LE(u+28),l=e.readUInt16LE(u+30),d=e.readUInt16LE(u+32),c=e.subarray(u+46,u+46+h).toString("utf8"),w=di(c);if(w!==null)throw new g("DOCX_UNREADABLE",`unsafe entry name (${w}): ${JSON.stringify(c)}`);if(r.has(c))throw new g("DOCX_UNREADABLE",`duplicate entry: ${c}`);r.add(c),o.push({name:c,crc:p}),u+=46+h+l+d}return o}function Gn(e,t){let i=new Map,n=0,s=null,a=r=>{s||(s=r)},o=new Re(r=>{let u=di(r.name);if(u!==null){a(new g("DOCX_UNREADABLE",`unsafe entry name (${u}): ${JSON.stringify(r.name)}`));return}let f=[],p=0;r.ondata=(h,l,d)=>{if(h){a(new g("DOCX_UNREADABLE",`entry ${r.name}: ${h.message??String(h)}`));return}if(l&&l.length>0){if(p+=l.length,n+=l.length,p>t.maxPartBytes){a(new g("DOCX_PART_TOO_LARGE",`${r.name}: ${p} actual bytes > ${t.maxPartBytes} cap`));return}if(n>t.maxTotalBytes){a(new g("DOCX_BOMB",`total actual inflated bytes exceed ${t.maxTotalBytes} cap`));return}f.push(l)}d&&!s&&i.set(r.name,Buffer.concat(f))},r.start()});o.register(zt),o.register(Ne);try{for(let r=0;r<e.length;r+=65536)if(o.push(e.subarray(r,Math.min(r+65536,e.length)),r+65536>=e.length),s)throw s}catch(r){throw r instanceof g?r:new g("DOCX_UNREADABLE",`zip stream: ${r instanceof Error?r.message:String(r)}`)}if(s)throw s;return i}function gi(e,t,i){let n=new li.SaxesParser({xmlns:!0}),s=null;if(n.on("doctype",()=>{s=new g("DOCX_UNREADABLE",`DOCTYPE not allowed (${t})`)}),n.on("error",a=>{s=s??new g("DOCX_UNREADABLE",`${t}: ${a.message}`)}),n.on("opentag",a=>{if(s)return;let o={};for(let[r,u]of Object.entries(a.attributes))o[u.local||r]=u.value;i(a.uri??"",a.local,o)}),n.write(e).close(),s)throw s}function oi(e,t){let i=new Map;return gi(e,t,(n,s,a)=>{n===zn&&s==="Relationship"&&a.Id&&a.Type&&a.Target!==void 0&&i.set(a.Id,{type:a.Type,target:a.Target,targetMode:a.TargetMode==="External"?"External":"Internal"})}),i}function qn(e){let t=new Map,i=new Map;return gi(e,"[Content_Types].xml",(n,s,a)=>{n===Un&&(s==="Default"&&a.Extension&&a.ContentType?t.set(a.Extension.toLowerCase(),a.ContentType):s==="Override"&&a.PartName&&a.ContentType&&i.set(a.PartName.replace(/^\//,""),a.ContentType))}),{defaults:t,overrides:i}}function jn(e,t){let i=e.overrides.get(t);if(i)return i;let n=t.lastIndexOf(".");if(!(n<0))return e.defaults.get(t.slice(n+1).toLowerCase())}function hi(e,t){if(/^[a-zA-Z][a-zA-Z0-9+.-]*:/.test(t)||t.includes("\\")||t.includes("\0"))return null;let i;try{i=decodeURIComponent(t)}catch{return null}let n=i.startsWith("/")?[]:e.split("/").slice(0,-1).filter(s=>s.length>0);for(let s of i.split("/"))if(!(s===""||s===".")){if(s===".."){if(n.length===0)return null;n.pop();continue}n.push(s)}return n.length>0?n.join("/"):null}var Zn=Buffer.from([208,207,17,224,161,177,26,225]);function lt(e){try{return e.length>=3&&e[0]===239&&e[1]===187&&e[2]===191?new TextDecoder("utf-8",{fatal:!0}).decode(e.subarray(3)):e.length>=2&&e[0]===255&&e[1]===254?new TextDecoder("utf-16le",{fatal:!0}).decode(e.subarray(2)):e.length>=2&&e[0]===254&&e[1]===255?new TextDecoder("utf-16be",{fatal:!0}).decode(e.subarray(2)):new TextDecoder("utf-8",{fatal:!0}).decode(e)}catch{throw new g("DOCX_UNREADABLE","XML part is not valid UTF-8/UTF-16 text")}}function mi(e,t){if(e.length>=8&&e.subarray(0,8).equals(Zn))throw new g("DOCX_ENCRYPTED_OR_LEGACY","password-protected Office file (or a legacy .doc renamed .docx) \u2014 remove the password / save as .docx and re-ingest");let i={maxEntries:t?.maxEntries??Ln,maxPartBytes:t?.maxPartBytes??Xn,maxTotalBytes:t?.maxTotalBytes??$n},n=Vn(e,i.maxEntries),s=Gn(e,i),a=new Map(n.map(l=>[l.name,l]));if(s.size!==n.length)throw new g("DOCX_UNREADABLE",`central directory lists ${n.length} entries, stream produced ${s.size}`);for(let[l,d]of s){let c=a.get(l);if(!c)throw new g("DOCX_UNREADABLE",`entry ${l} missing from central directory`);if(De(d)!==c.crc)throw new g("DOCX_UNREADABLE",`CRC mismatch: ${l}`)}let o=s.get("_rels/.rels");if(!o)throw new g("DOCX_NOT_WORDPROCESSING","no package relationships (_rels/.rels missing)");let r=oi(lt(o),"_rels/.rels"),u=null;for(let l of r.values()){if(!Hn.has(l.type)||l.targetMode!=="Internal")continue;let d=hi("",l.target);if(d!==null&&s.has(d)){u=d;break}}if(u===null)throw new g("DOCX_NOT_WORDPROCESSING","this zip is not a Word document (no officeDocument relationship)");let f=s.get("[Content_Types].xml");if(!f)throw new g("DOCX_NOT_WORDPROCESSING","package has no [Content_Types].xml");let p=jn(qn(lt(f)),u);if(!p||!Wn.some(l=>p.startsWith(l)))throw new g("DOCX_NOT_WORDPROCESSING",`this zip is not a Word document (main part content type: ${p??"unknown"} \u2014 pptx/xlsx or unknown package)`);let h=new Map;return{parts:s,mainPart:u,relsFor(l){let d=h.get(l);if(d)return d;let c=l.lastIndexOf("/"),w=`${c>=0?l.slice(0,c+1):""}_rels/${c>=0?l.slice(c+1):l}.rels`,m=s.get(w),C=m?oi(lt(m),w):new Map;return h.set(l,C),C},resolveTarget:hi}}var xi=xe(ae(),1);var Rt=new Set(["http://schemas.openxmlformats.org/wordprocessingml/2006/main","http://purl.oclc.org/ooxml/wordprocessingml/main"]),Yn=new Set(["http://schemas.openxmlformats.org/drawingml/2006/main","http://purl.oclc.org/ooxml/drawingml/main"]),Qn=new Set(["http://schemas.openxmlformats.org/officeDocument/2006/math","http://purl.oclc.org/ooxml/officeDocument/math"]),vi="urn:schemas-microsoft-com:vml",he="http://schemas.openxmlformats.org/markup-compatibility/2006",kt=class{constructor(t,i,n=s=>this.tokens.push(s)){this.partName=t;this.budget=i;this.sink=n}tokens=[];storyRefs=[];stack=[];skipUntilDepth=[];fields=[];runVanish=[];acStack=[];txbxDepths=[];drawing=null;failed=null;setSink(t){this.sink=t}fail(t){this.failed||(this.failed=t)}abort(t){throw!this.failed&&t instanceof g&&(this.failed=t),t}emit(t){this.failed||(this.drawing&&t.t==="text"&&this.txbxDepths.length>0&&(this.drawing.emittedContent=!0),this.sink(t))}suppressed(){return this.skipUntilDepth.length>0}inInstruction(){return this.fields.some(t=>!t.hasSeparate)}parent(){return this.stack.length>=2?this.stack[this.stack.length-2]:void 0}depth(){return this.stack.length}onOpen(t,i,n){if(this.failed)return;this.budget.nodesRemaining-=1,this.budget.nodesRemaining<0&&this.abort(new g("DOCX_UNREADABLE",`XML node budget exhausted (${this.partName})`)),(this.budget.nodesRemaining&4095)===0&&this.budget.deadline!==void 0&&Date.now()>this.budget.deadline&&this.abort(new g("DOCX_UNREADABLE",`conversion budget exhausted (${this.partName})`)),this.stack.push({uri:t,local:i});let s=this.depth();if(s>oe&&this.abort(new g("DOCX_UNREADABLE",`XML nesting exceeds ${oe} (${this.partName})`)),this.suppressed())return;if(t===he&&i==="AlternateContent"){this.acStack.push({branchTaken:!1});return}if(t===he&&(i==="Choice"||i==="Fallback")){let o=this.acStack[this.acStack.length-1];if(!o)return;o.branchTaken?this.skipUntilDepth.push(s):o.branchTaken=!0;return}let a=Rt.has(t);if((a&&i==="txbxContent"||t===vi&&i==="textbox")&&this.txbxDepths.push(s),a&&(i==="del"||i==="moveFrom"||i==="sdtPr"||i==="delText"||i==="pPrChange"||i==="rPrChange"||i==="sectPrChange"||i==="tblPrChange"||i==="trPrChange"||i==="tcPrChange")){this.skipUntilDepth.push(s);return}if(Qn.has(t)&&(i==="oMath"||i==="oMathPara")){this.emit({t:"marker",value:"[equation omitted]"}),this.skipUntilDepth.push(s);return}if(a&&i==="altChunk"){this.emit({t:"marker",value:"[embedded content omitted]"}),this.skipUntilDepth.push(s);return}if(a&&i==="tabs"){this.skipUntilDepth.push(s);return}if(a){switch(i){case"r":this.runVanish.push(!1);break;case"vanish":{let o=n.val;this.parent()?.local==="rPr"&&o!=="false"&&o!=="0"&&this.runVanish.length>0&&(this.runVanish[this.runVanish.length-1]=!0);break}case"fldChar":{let o=n.fldCharType;if(o==="begin")this.fields.push({hasSeparate:!1});else if(o==="separate"){let r=this.fields[this.fields.length-1];r&&(r.hasSeparate=!0)}else if(o==="end"){let r=this.fields.pop();r&&!r.hasSeparate&&this.emit({t:"marker",value:"[field: no stored result]"})}break}case"tab":this.parent()?.local==="r"&&!this.textSuppressed()&&this.emit({t:"tab"});break;case"br":case"cr":this.textSuppressed()||this.emit({t:"break"});break;case"noBreakHyphen":this.textSuppressed()||this.emit({t:"text",value:"\u2011"});break;case"softHyphen":break;case"sym":this.textSuppressed()||this.emit({t:"marker",value:"[symbol]"});break;case"numPr":this.parent()?.local==="pPr"&&this.emit({t:"marker",value:"- "});break;case"footnoteReference":n.id!==void 0&&!this.textSuppressed()&&this.emit({t:"note-ref",noteKind:"footnote",id:n.id});break;case"endnoteReference":n.id!==void 0&&!this.textSuppressed()&&this.emit({t:"note-ref",noteKind:"endnote",id:n.id});break;case"headerReference":case"footerReference":{let o=n.id;if(o){let r=n.type==="first"?"first":n.type==="even"?"even":"default";this.storyRefs.push({kind:i==="headerReference"?"header":"footer",type:r,relId:o})}break}case"drawing":this.drawing||(this.drawing={relId:null,kind:"drawing",external:!1,found:!1,emittedContent:!1});break;case"pict":case"object":this.drawing||(this.drawing={relId:null,kind:"vml",external:!1,found:!1,emittedContent:!1});break}return}if(Yn.has(t)&&i==="blip"&&this.drawing&&!this.drawing.found){let o=this.relAttr(n,"embed"),r=this.relAttr(n,"link");o?(this.drawing.relId=o,this.drawing.external=!1,this.drawing.found=!0):r&&(this.drawing.relId=r,this.drawing.external=!0,this.drawing.found=!0);return}if(t===vi&&i==="imagedata"&&this.drawing&&!this.drawing.found){let o=this.relAttr(n,"id")??n.relid;o&&(this.drawing.relId=o,this.drawing.kind="vml",this.drawing.found=!0);return}}onClose(){let t=this.depth();this.skipUntilDepth[this.skipUntilDepth.length-1]===t&&this.skipUntilDepth.pop(),this.txbxDepths[this.txbxDepths.length-1]===t&&this.txbxDepths.pop();let n=this.stack.pop();if(!(!n||this.failed)&&!this.suppressed()){if(n.uri===he&&n.local==="AlternateContent"){this.acStack.pop();return}if(Rt.has(n.uri))switch(n.local){case"r":this.runVanish.pop();break;case"p":this.emit({t:"para-end"});break;case"tc":this.emit({t:"table-cell-end"});break;case"tr":this.emit({t:"table-row-end"});break;case"drawing":case"pict":case"object":{let s=this.drawing;if(this.drawing=null,!s)break;s.found?this.emit({t:"image",relId:s.relId,kind:s.kind,external:s.external}):s.emittedContent||this.emit({t:"marker",value:"[object omitted: drawing]"});break}}}}onText(t){if(this.failed||this.suppressed()||t.length===0)return;let i=this.stack[this.stack.length-1];!i||!Rt.has(i.uri)||i.local==="t"&&(this.textSuppressed()||(this.budget.textCharsRemaining!==void 0&&(this.budget.textCharsRemaining-=t.length,this.budget.textCharsRemaining<0&&this.abort(new Error(`PROJECTION_TOO_LARGE: projection text exceeds the conversion cap during the walk (${this.partName}) \u2014 split the document and re-ingest`))),this.emit({t:"text",value:t})))}textSuppressed(){return this.inInstruction()?!0:this.runVanish.length>0&&this.runVanish[this.runVanish.length-1]}relAttr(t,i){return t[i]}run(t){let i=new xi.SaxesParser({xmlns:!0});if(i.on("doctype",()=>{this.fail(new g("DOCX_UNREADABLE",`DOCTYPE not allowed (${this.partName})`))}),i.on("error",n=>{this.fail(new g("DOCX_UNREADABLE",`${this.partName}: ${n.message}`))}),i.on("opentag",n=>{let s={},a=Object.entries(n.attributes);a.length>fi&&this.abort(new g("DOCX_UNREADABLE",`too many attributes (${this.partName})`));for(let[o,r]of a)r.value.length>ci&&this.abort(new g("DOCX_UNREADABLE",`oversized attribute (${this.partName})`)),s[r.local||o]=r.value;this.onOpen(n.uri??"",n.local,s)}),i.on("closetag",()=>this.onClose()),i.on("text",n=>this.onText(n)),i.write(t).close(),this.failed)throw this.failed}};function Ci(e,t){let i=t.budget??{nodesRemaining:Number.MAX_SAFE_INTEGER},n=new kt(t.partName,i);return n.run(e),{tokens:n.tokens,storyRefs:n.storyRefs}}var le=class extends kt{notes=new Map;current=null;noteDepth=0;constructor(t,i){super(t,i),this.setSink(n=>this.current?.push(n))}onOpen(t,i,n){super.onOpen(t,i,n),!(!Rt.has(t)||i!=="footnote"&&i!=="endnote")&&(n.type!==void 0&&n.type!=="normal"||(this.current=[],n.id!==void 0&&this.notes.set(n.id,this.current),this.noteDepth=this.depth()))}onClose(){let t=this.depth();super.onClose(),this.noteDepth===t&&(this.current=null,this.noteDepth=0)}};function Ei(e,t){let i=new le(t.partName,t.budget??{nodesRemaining:Number.MAX_SAFE_INTEGER});return i.run(e),i.notes}var Jn="v1",ts="1.0.0+saxes6.0.0+fflate0.8.3+pngjs7.0.0+jpeg-js0.4.4",es=64,is=16,ns=12e6,ss=6e6,rs=5e7,as=new Set(["http://schemas.openxmlformats.org/officeDocument/2006/relationships/footnotes","http://purl.oclc.org/ooxml/officeDocument/relationships/footnotes"]),os=new Set(["http://schemas.openxmlformats.org/officeDocument/2006/relationships/endnotes","http://purl.oclc.org/ooxml/officeDocument/relationships/endnotes"]),hs={png:"image/png",jpeg:"image/jpeg",webp:"image/webp",gif:"image/gif",bmp:"image/bmp",tiff:"image/tiff",emf:"image/emf",wmf:"image/wmf",unknown:"application/octet-stream"},ls=new Set(["png","jpeg","webp"]);function us(e){if(e==="body")return"in body";if(e.startsWith("header:"))return"in header";if(e.startsWith("footer:"))return"in footer";let t=/^(footnote|endnote):(.+)$/.exec(e);return t?`in ${t[1]} ${t[2]}`:`in ${e}`}var ce=class{constructor(t,i){this.pkg=t;this.caps=i}inventory=[];blobs=new Map;delivered=[];n=0;deliveredBytes=0;firstRefByFp=new Map;count(){return this.n}occurrence(t,i,n){this.n+=1;let s=`i${this.n}`,a=us(n),o=(m,C,T)=>{this.inventory.push({ref:s,loc:n,media_type:m,...T?.blob?{blob:T.blob}:{},...T?.appearance?{appearance:T.appearance}:{},delivery:C,...T?.duplicate_of?{duplicate_of:T.duplicate_of}:{}})},r=m=>`[img#${s} omitted: ${m}]`,u=t.relId!==null?this.pkg.relsFor(i).get(t.relId):void 0;if(t.external||u?.targetMode==="External")return o("application/octet-stream","external-image-not-fetched"),r("external-image-not-fetched");let f=u?this.pkg.resolveTarget(i,u.target):null,p=f!==null?this.pkg.parts.get(f):void 0;if(!p)return o("application/octet-stream","undecodable"),r("undecodable");let h=we(p),l=hs[h.format],d=Ce(p);if(this.blobs.set(d,p),!ls.has(h.format)){let m=h.format==="gif"||h.format==="bmp"||h.format==="tiff"?"unsupported-vision-media-type":"unsupported-image-kind";return o(l,m,{blob:d}),r(m)}if(h.width===void 0||h.height===void 0||h.width*h.height>this.caps.maxPixels)return o(l,"undecodable",{blob:d}),r("undecodable");let c;if(h.format==="png"||h.format==="jpeg"){let m=Ae(p,h.format);if(m===null)return o(l,"undecodable",{blob:d}),r("undecodable");c=Ee(m.data,{width:m.width,height:m.height,channels:m.channels})}if(h.width<this.caps.dimensionFloor||h.height<this.caps.dimensionFloor)return o(l,"below-dimension-floor",{blob:d,appearance:c}),r("below-dimension-floor");let w=this.firstRefByFp.get(d);return w!==void 0?(o(l,"duplicate",{blob:d,appearance:c,duplicate_of:w}),`[img#${s}: image ${a} \u2014 same as img#${w}; cite img#${w}]`):p.byteLength>this.caps.imageMaxBytes?(o(l,"image-too-large",{blob:d,appearance:c}),r("image-too-large")):this.deliveredBytes+p.byteLength>this.caps.visionByteBudget?(o(l,"vision-byte-budget-reached",{blob:d,appearance:c}),r("vision-byte-budget-reached")):this.delivered.length>=this.caps.imageCap?(o(l,"image-cap-reached",{blob:d,appearance:c}),r("image-cap-reached")):(this.firstRefByFp.set(d,s),this.deliveredBytes+=p.byteLength,this.delivered.push(s),o(l,"selected",{blob:d,appearance:c}),`[img#${s}: image ${a}]`)}};function ue(e,t){let i=[];for(let n of e)switch(n.t){case"text":i.push(n.value);break;case"tab":i.push(" ");break;case"break":i.push(`
|
|
11
|
-
`);break;case"para-end":i.push(`
|
|
12
|
-
`);break;case"table-cell-end":i[i.length-1]===`
|
|
13
|
-
`&&i.pop(),i.push(" ");break;case"table-row-end":i[i.length-1]===" "&&i.pop(),i.push(`
|
|
14
|
-
`);break;case"marker":i.push(n.value);break;case"note-ref":i.push(`[${n.noteKind} ${n.id}]`);break;case"image":{let s=t(n);s!==null&&i.push(s);break}}return i.join("")}function fe(e){let t=0;for(let i of e)i.t==="text"&&(t+=i.value.length);return t}function Di(e,t,i){let n=e.parts.get(t);if(!n)throw new g("DOCX_UNREADABLE",`referenced part missing: ${t}`);return Ci(lt(n),{partName:t,budget:i})}async function Ss(e,t){let i=Date.now()+(t?.budgetMs??pi),n=c=>{if(Date.now()>i)throw new g("DOCX_UNREADABLE",`conversion budget exhausted (${c})`)},s=mi(e),a={nodesRemaining:ui,textCharsRemaining:2*4e5,deadline:i},o={dimensionFloor:t?.caps?.dimensionFloor??es,imageCap:t?.caps?.imageCap??is,visionByteBudget:t?.caps?.visionByteBudget??ns,imageMaxBytes:t?.caps?.imageMaxBytes??ss,maxPixels:t?.caps?.maxPixels??rs},r=new ce(s,o),u=Di(s,s.mainPart,a);n(s.mainPart);let f=fe(u.tokens),p=[ue(u.tokens,c=>r.occurrence(c,s.mainPart,"body"))],h=s.relsFor(s.mainPart),l=new Set;for(let c of["header","footer"])for(let w of u.storyRefs.filter(m=>m.kind===c)){let m=h.get(w.relId);if(!m||m.targetMode!=="Internal")continue;let C=s.resolveTarget(s.mainPart,m.target);if(C===null||!s.parts.has(C)||l.has(C))continue;l.add(C);let T=Di(s,C,a);n(C),f+=fe(T.tokens);let E=w.type==="default"?`[${c}]`:`[${c} ${w.type}]`;p.push(`${E}
|
|
15
|
-
${ue(T.tokens,P=>r.occurrence(P,C,`${c}:${C}`))}`)}for(let[c,w]of[["footnote",as],["endnote",os]]){let m=[];for(let E of u.tokens)E.t==="note-ref"&&E.noteKind===c&&!m.includes(E.id)&&m.push(E.id);if(m.length===0)continue;let C=null;for(let E of h.values())if(w.has(E.type)&&E.targetMode==="Internal"){C=s.resolveTarget(s.mainPart,E.target);break}if(C===null||!s.parts.has(C))continue;let T=Ei(lt(s.parts.get(C)),{partName:C,budget:a});n(C);for(let E of m){let P=T.get(E);if(!P)continue;f+=fe(P);let V=C;p.push(`[${c} ${E}]
|
|
16
|
-
${ue(P,U=>r.occurrence(U,V,`${c}:${E}`))}`)}}if(f===0&&r.count()===0)throw new g("DOCX_NO_TEXT","no extractable text or images \u2014 nothing citable in this document");let d=p.join("");return d.endsWith(`
|
|
17
|
-
`)||(d+=`
|
|
18
|
-
`),{projection:d,inventory:r.inventory,blobs:r.blobs,delivered:r.delivered,converter:{name:"ooxml-walk",version:ts,policy:Jn}}}export{Jn as a,ts as b,es as c,is as d,ns as e,ss as f,rs as g,ue as h,Ss as i};
|
|
19
|
-
/*! Bundled license information:
|
|
20
|
-
|
|
21
|
-
xmlchars/xml/1.0/ed5.js:
|
|
22
|
-
(**
|
|
23
|
-
* Character classes and associated utilities for the 5th edition of XML 1.0.
|
|
24
|
-
*
|
|
25
|
-
* @author Louis-Dominique Dubeau
|
|
26
|
-
* @license MIT
|
|
27
|
-
* @copyright Louis-Dominique Dubeau
|
|
28
|
-
*)
|
|
29
|
-
|
|
30
|
-
xmlchars/xml/1.1/ed2.js:
|
|
31
|
-
(**
|
|
32
|
-
* Character classes and associated utilities for the 2nd edition of XML 1.1.
|
|
33
|
-
*
|
|
34
|
-
* @author Louis-Dominique Dubeau
|
|
35
|
-
* @license MIT
|
|
36
|
-
* @copyright Louis-Dominique Dubeau
|
|
37
|
-
*)
|
|
38
|
-
|
|
39
|
-
xmlchars/xmlns/1.0/ed3.js:
|
|
40
|
-
(**
|
|
41
|
-
* Character class utilities for XML NS 1.0 edition 3.
|
|
42
|
-
*
|
|
43
|
-
* @author Louis-Dominique Dubeau
|
|
44
|
-
* @license MIT
|
|
45
|
-
* @copyright Louis-Dominique Dubeau
|
|
46
|
-
*)
|
|
47
|
-
*/
|
package/dist/chunk-RKWJG3WW.js
DELETED
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { createRequire } from 'module'; const require = createRequire(import.meta.url);
|
|
2
|
-
import{a as $}from"./chunk-L5LI2JF4.js";import{dirname as H,basename as U,join as w}from"path";function z(e){let t=U(e);return t.endsWith("_test.md")?t.slice(0,-8):t.endsWith(".md")?t.slice(0,-3):t}function k(e){return w(H(e),`output-${z(e)}`)}function ve(e){return w(k(e),"Result.md")}function O(e){return w(k(e),".internal")}function M(e){return w(O(e),"meta.json")}function _e(e,t,n){return w(k(e),`${t}-${n}-code`)}function ke(e){return w(k(e),"generated-code")}function xe(e){return k(e)+".staging"}function q(e){return w(O(e),"steps")}function Se(e,t,n){return w(q(e),`${t}-${n}`)}import{existsSync as g,renameSync as x,rmSync as v}from"fs";function $e(e){let t=`${e}.staging`,n=`${e}.bak`;if(!g(t))throw new Error(`atomicReplaceDir: staging missing: ${t}`);if(process.platform==="win32"){g(e)&&v(e,{recursive:!0,force:!0}),x(t,e);return}g(e)&&(g(n)&&v(n,{recursive:!0,force:!0}),x(e,n)),x(t,e),g(n)&&v(n,{recursive:!0,force:!0})}function Me(e){let t=`${e}.staging`,n=`${e}.bak`;if(process.platform==="win32"){g(t)&&(g(e)?v(t,{recursive:!0,force:!0}):x(t,e));return}if(g(n)&&!g(e)){x(n,e),g(t)&&v(t,{recursive:!0,force:!0});return}g(n)&&g(e)&&v(n,{recursive:!0,force:!0}),g(t)&&g(e)&&v(t,{recursive:!0,force:!0})}import{readFileSync as ge,existsSync as pe}from"fs";import{basename as G,dirname as ue,isAbsolute as me,resolve as Y}from"path";var c=class extends Error{constructor(n,r,i){super(`[${r}${i!=null?`:${i}`:""}] ${n}`);this.file=r;this.line=i;this.name="TestMdParseError"}},Q=new Set(["username","access_key","oauth","profile","project_id","folder_id"]),I=new Set(["mode","max_steps","timeout","global_context","local_context","variables","session_context","code_export","code_language","url","target","chrome_profile","cdp_endpoint","ws_endpoint","headless","on_lock_conflict","tags","assurance"]),L=new Set(["optional"]),X=new Set(["optional","variables"]),Z=new Set(["target","chrome_profile","cdp_endpoint","ws_endpoint","headless"]),ee=new Set(["mode","on_lock_conflict","tags","assurance"]);function T(e,t){let n=t.split(`
|
|
3
|
-
`),{global:r,bodyStartLine:i}=te(e,n),{title:o,steps:s}=oe(e,n,i);return{path:e,title:o,global:r,steps:s}}function te(e,t){if(t[0]?.trim()!=="---")return{global:{},bodyStartLine:0};let n=-1;for(let o=1;o<t.length;o++)if(t[o].trim()==="---"){n=o;break}if(n===-1)throw new c("frontmatter is missing closing '---'",e,1);let r=t.slice(1,n).join(`
|
|
4
|
-
`),i;try{i=$(r)??{}}catch(o){throw new c(`invalid YAML in frontmatter: ${o.message}`,e,1)}if(F(e,i,"frontmatter",1),i.on_lock_conflict!==void 0){let o=i.on_lock_conflict;if(o!=="readonly"&&o!=="fail"&&o!=="wait")throw new c(`on_lock_conflict must be 'readonly' | 'fail' | 'wait', got: ${JSON.stringify(o)}`,e,1)}if(A(e,i,1),i.assurance!==void 0){let o=i.assurance;if(o===null||typeof o!="object"||Array.isArray(o))throw new c("assurance must be a mapping with sub-keys {id, base}",e,1);let s=o;for(let l of Object.keys(s))if(l!=="id"&&l!=="base")throw new c(`unknown assurance sub-key '${l}' \u2014 the engine block allows only {id, base}`,e,1);if(typeof s.id!="string"||s.id.length===0)throw new c("assurance.id must be a non-empty string (logical id)",e,1);if(s.base!==void 0&&!(typeof s.base=="string"&&/^sha256:[0-9a-f]+$/.test(s.base)))throw new c("assurance.base must be a 'sha256:<hex>' string",e,1)}if(i.tags!==void 0){let o=i.tags,s=Array.isArray(o)?o.map(l=>String(l)).join(","):String(o);i.tags=ne(s,e,1)}return{global:i,bodyStartLine:n+1}}function ne(e,t,n){let i=e.trim().replace(/^\[/,"").replace(/\]$/,"").split(",").map(o=>o.trim().toLowerCase());if(i.length===0||i.some(o=>o.length===0))throw new c("tags must be a non-empty list of non-empty strings",t,n);return[...new Set(i)]}var ie=/\s@verifies\s+(ac-[\w.:\/-]+(?:\s*,\s*ac-[\w.:\/-]+)*)\s*$/;function re(e,t,n){let r=ie.exec(t);if(r)return{label:t.slice(0,r.index).trim(),verifies:r[1].split(",").map(o=>o.trim())};let i=t.lastIndexOf("@verifies");if(i>0&&/\s/.test(t[i-1])){let o=t.slice(i+9).split(/[\s,]+/).filter(s=>s.length>0);if(o.length===0||o.every(s=>s.startsWith("ac-")))throw new c("malformed @verifies directive \u2014 expected '@verifies ac-<id>[, ac-<id>\u2026]' at the end of the heading",e,n)}return{label:t,verifies:[]}}function oe(e,t,n){let r,i=n;for(;i<t.length&&t[i].trim()==="";)i++;let o=i<t.length?/^#\s+(.+?)\s*$/.exec(t[i]):null;o&&(r=o[1],i++);let s=[];for(let f=i;f<t.length;f++)/^##\s/.test(t[f])&&s.push(f);let l=[];for(let f=0;f<s.length;f++){let p=s[f],u=s[f+1]??t.length,h=t[p].replace(/^##\s+/,"").trim(),{label:a,verifies:d}=re(e,h,p+1),m=t.slice(p+1,u),{config:b,body:y,optional:R}=se(e,p+1,m);l.push({index:f+1,heading:a,verifies:d,config:b,body:y,headingLine:p+1,optional:R})}return{title:r,steps:l}}function se(e,t,n){let r=0;for(;r<n.length&&n[r].trim()==="";)r++;let i,o=t;if(r<n.length&&/^```yaml\s*$/.test(n[r])){let d=r;o=t+d,r++;let m=-1;for(;r<n.length;){if(/^```\s*$/.test(n[r])){m=r;break}r++}if(m===-1)throw new c("step-config fenced ```yaml block is not closed",e,o);let b=n.slice(d+1,m).join(`
|
|
5
|
-
`);try{i=$(b)??{}}catch(y){throw new c(`invalid YAML in step config: ${y.message}`,e,o)}r=m+1}let s=ae(n.slice(r)),l=s.filter(d=>d.trim()!=="");if(l.length>0&&/^@session\s+/.test(l[0].trim()))throw new c("@session is no longer supported (iteration 3); use @import instead",e,t);let f=/^@import\s+(\S.*)$/,u=s.filter(d=>f.test(d.trim())).length>0;if(u&&l.length!==1)throw new c("step body must be exactly one of prose / @import",e,t);let h=!1,a;if(i){if(F(e,i,u?"step config (ref)":"step config (objective)",o),A(e,i,o),typeof i.optional=="boolean")h=i.optional;else if(i.optional!==void 0)throw new c(`step config 'optional' must be boolean: got ${typeof i.optional}`,e,o);let d={...i};delete d.optional,u&&delete d.variables,!u&&Object.keys(d).length>0&&(a=d)}if(u){let m=f.exec(l[0].trim())[1].trim(),b=i?.variables;return{body:{kind:"import_ref",path:m,...b&&Object.keys(b).length>0?{bindings:b}:{}},optional:h}}return{body:{kind:"objective",text:s.join(`
|
|
6
|
-
`).trim()},config:a,optional:h}}function ae(e){let t=0,n=e.length;for(;t<n&&e[t].trim()==="";)t++;for(;n>t&&e[n-1].trim()==="";)n--;return e.slice(t,n)}function A(e,t,n){let r=t.variables;if(r==null)return;if(typeof r!="object"||Array.isArray(r))throw new c("variables must be an object map",e,n);let i={};for(let[o,s]of Object.entries(r))if(typeof s=="string")i[o]={value:s};else if(s&&typeof s=="object"&&!Array.isArray(s)&&typeof s.value=="string")i[o]=s;else throw new c(`variable '${o}' must be a string or { value: ... } object`,e,n);t.variables=i}function F(e,t,n,r){for(let i of Object.keys(t)){if(Q.has(i))throw new c(`auth/identity keys are CLI-only: ${i}`,e,r);if(n==="frontmatter"){if(L.has(i))throw new c(`step-only key in frontmatter: ${i}`,e,r);if(!I.has(i))throw new c(`unknown config key: ${i}`,e,r)}else if(n==="step config (objective)"){if(!I.has(i)&&!L.has(i))throw new c(`unknown config key: ${i}`,e,r);if(Z.has(i))throw new c(`chrome config is global-only: ${i}`,e,r);if(ee.has(i))throw new c(`'${i}' is run-level and cannot be set per-step`,e,r)}else if(!X.has(i))throw new c(`step config on @import may only contain 'optional' / 'variables': got ${i}`,e,r)}}import{createHash as P}from"crypto";function S(e){if(e==null)return null;if(Array.isArray(e))return e.map(S);if(typeof e=="object"){let t={};for(let n of Object.keys(e).sort()){let r=e[n];r!==void 0&&(t[n]=S(r))}return t}return e}function ce(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(S(t));return P("md5").update(e.body.text).update(`
|
|
7
|
-
`).update(n).digest("hex")}function V(e){let t={};for(let[r,i]of Object.entries(e.bindings??{}))t[r]={value:i.value,...i.secret===!0?{secret:!0}:{},...i.syntax?{syntax:i.syntax}:{}};let n=JSON.stringify(S({bindings:t,optional:e.optional}));return P("md5").update(e.path).update(`
|
|
8
|
-
`).update(n).digest("hex")}function Le(e){return ce({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})}import{writeFileSync as de,mkdirSync as le,readFileSync as fe}from"fs";import{dirname as K}from"path";function D(e){try{return JSON.parse(fe(M(e),"utf8"))}catch{return null}}function Ve(e){let t=M(e.sourcePath);try{le(K(t),{recursive:!0})}catch(r){return process.stderr.write(`
|
|
9
|
-
\u26A0 Failed to create output directory.
|
|
10
|
-
${r.message}
|
|
11
|
-
Path: ${K(t)}
|
|
12
|
-
|
|
13
|
-
`),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);try{de(t,JSON.stringify(n,null,2)+`
|
|
14
|
-
`,"utf8")}catch(r){process.stderr.write(`
|
|
15
|
-
\u26A0 Failed to write meta.json.
|
|
16
|
-
${r.message}
|
|
17
|
-
Path: ${t}
|
|
18
|
-
|
|
19
|
-
`)}return t}var N=["target","chrome_profile","cdp_endpoint","ws_endpoint","headless"],be=["mode","on_lock_conflict","tags","target","chrome_profile","cdp_endpoint","ws_endpoint","headless"],_=class extends Error{constructor(t){super(t),this.name="TestMdResolveError"}};function E(e){return G(e).endsWith("_test.md")?"test":"helper"}function Je(e){let t=Y(e),n=W(t),r=he(n.global),i=[],o=[],s=[{file:t,kind:E(t)}],l=[];return J(n,o,i,[],t,{},s,l,{}),i.forEach((p,u)=>p.flatIndex=u+1),{rootPath:t,rootTitle:n.title,rootGlobal:n.global,rootSteps:n.steps,chrome:r,steps:i,unitFiles:s,warnings:l}}function Be(e){let t=[];for(let n of e.unitFiles){if(n.kind!=="test")continue;let r=D(n.file);r&&t.push({file:n.file,...r.project_id?{project_id:String(r.project_id)}:{},...r.org_id?{org_id:String(r.org_id)}:{}})}return t}function W(e){if(!pe(e))throw new _(`@import path not found: ${e}`);let t=ge(e,"utf8");return T(e,t)}function J(e,t,n,r,i,o,s,l,f){if(t.includes(e.path)){let a=[...t,e.path].map(d=>G(d)).join(" \u2192 ");throw new _(`cyclic reference: ${a}`)}t.push(e.path);let p=r.length===0,u=e.global.variables??{};for(let a of Object.keys(o))if(Object.hasOwn(u,a))throw new _(`callsite binding '${a}' collides with a declared variable in ${e.path} (frontmatter variables are pinned; parameters are its undeclared names)`);let h=e.global;if(!p){let a={...e.global};for(let d of be)a[d]!==void 0&&(l.push(`${e.path}: '${d}' is root-governed on imported units \u2014 ignored`),delete a[d]);a.url!==void 0&&(f.pending=String(a.url),delete a.url),h=a}for(let a of e.steps){let d=a.body.kind!=="objective";if(a.optional&&d&&!p)throw new _(`intermediate-ref 'optional' is not supported in v1: ${e.path}:${a.headingLine}`);if(a.body.kind==="objective"){let j={file:e.path,stepIndex:a.index,heading:a.heading,optional:a.optional??!1},B=ye(h,a.config,o),C={flatIndex:0,objective:a.body.text,sourceFile:e.path,trace:[...r,j],config:B,parsedConfig:a.config,optional:a.optional??!1,verifies:a.verifies,owningFile:e.path,unitKind:E(e.path)};f.pending&&(C.unitEntryUrl=f.pending,f.pending=void 0),n.push(C);continue}let m={file:e.path,stepIndex:a.index,heading:a.heading,optional:a.optional??!1,rowMd5:V({path:a.body.path,bindings:a.body.bindings,optional:a.optional??!1})},b=ue(e.path),y=me(a.body.path)?a.body.path:Y(b,a.body.path),R=W(y);s.some(j=>j.file===y)||s.push({file:y,kind:E(y)}),J(R,t,n,[...r,m],i,a.body.bindings??{},s,l,f)}p||(f.pending=void 0),t.pop()}function he(e){let t={};for(let n of N)e[n]!==void 0&&(t[n]=e[n]);return t}function ye(e,t,n){let r={};for(let[s,l]of Object.entries(e))N.includes(s)||(r[s]=l);let i={...r,...t??{}},o={...n,...e.variables??{},...t?.variables??{}};return Object.keys(o).length>0?i.variables=o:delete i.variables,i}export{z as a,k as b,ve as c,O as d,M as e,_e as f,ke as g,xe as h,q as i,Se as j,$e as k,Me as l,T as m,V as n,Le as o,D as p,Ve as q,_ as r,Je as s,Be as t};
|
package/dist/chunk-STVP2XHO.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import { createRequire } from 'module'; const require = createRequire(import.meta.url);
|
|
2
|
-
import{a as f}from"./chunk-VHZ4S57N.js";import{y as t}from"./chunk-ZUGCHQFC.js";import{a as x}from"./chunk-HCBYKLMW.js";import{a as r,b as n}from"./chunk-C44QQJR4.js";import{a as B}from"./chunk-6YGTRKDT.js";import{e as p}from"./chunk-UR6MHSHU.js";var c=p(B(),1);var e=p(x(),1);function v(){return[{name:"convert",label:"Converting session data",status:"pending"},{name:"zip",label:"Compressing artifacts",status:"pending"},{name:"presign",label:"Requesting upload URLs",status:"pending"},{name:"upload",label:"Uploading to KaneAI",status:"pending"},{name:"atomic_replace",label:"Replacing local output",status:"pending"},{name:"commit_lock",label:"Committing to TMS",status:"pending"},{name:"finalize",label:"Finalizing test case",status:"pending"},{name:"code_export",label:"Downloading test code",status:"pending"}]}function U(s,o,d,a){return s.map(l=>l.name===o?{...l,status:d,detail:a}:l)}function R(s){let o=s/1e3;if(o<60)return`${o.toFixed(1)}s`;let d=Math.floor(o/60),a=Math.round(o%60);return`${d}m ${a}s`}function D(s){let[o,d]=(0,c.useState)(0),a=c.default.useRef(Date.now());return(0,c.useEffect)(()=>{if(!s)return;a.current=Date.now();let l=setInterval(()=>{d(Date.now()-a.current)},100);return()=>clearInterval(l)},[s]),o}function h({steps:s,status:o,testUrl:d,error:a}){let l=D(o==="uploading");return o==="uploading"?(0,e.jsxs)(r,{flexDirection:"column",paddingX:1,paddingY:1,children:[(0,e.jsxs)(r,{children:[(0,e.jsx)(n,{color:t.orange,children:"\u2601 "}),(0,e.jsx)(n,{color:t.orange,bold:!0,children:"Saving to KaneAI"}),(0,e.jsxs)(n,{color:t.dim,children:[" ",R(l)]})]}),(0,e.jsx)(r,{flexDirection:"column",marginTop:1,children:s.filter(i=>i.status!=="skipped").map((i,S,T)=>{let b=S===T.length-1?"\u2514\u2500":"\u251C\u2500",u=i.status==="done",m=i.status==="running",g=i.status==="failed";return(0,e.jsxs)(r,{children:[(0,e.jsxs)(n,{color:t.dim,children:[" ",b," "]}),(0,e.jsx)(r,{width:3,children:m?(0,e.jsx)(f,{}):u?(0,e.jsx)(n,{color:t.green,children:"\u2713"}):g?(0,e.jsx)(n,{color:t.red,children:"\u2717"}):(0,e.jsx)(n,{color:t.muted,children:"\u25CB"})}),(0,e.jsx)(n,{color:u?t.dim:m?void 0:g?t.red:t.muted,children:i.label}),i.detail&&(0,e.jsxs)(n,{color:t.dim,children:[" ",i.detail]})]},i.name)})}),(0,e.jsx)(r,{marginTop:1,children:(0,e.jsx)(n,{color:t.muted,children:" press Ctrl+C twice to force exit"})})]}):o==="success"?(0,e.jsx)(e.Fragment,{}):(0,e.jsxs)(r,{flexDirection:"column",paddingX:1,paddingY:1,children:[(0,e.jsxs)(r,{children:[(0,e.jsx)(n,{color:t.red,children:"\u2601 "}),(0,e.jsx)(n,{color:t.red,bold:!0,children:"Save failed"})]}),a&&(0,e.jsxs)(r,{marginTop:0,children:[(0,e.jsx)(n,{color:t.dim,children:" "}),(0,e.jsx)(n,{color:t.dim,children:a})]})]})}export{v as a,U as b,h as c};
|
package/dist/chunk-VFII6C46.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import { createRequire } from 'module'; const require = createRequire(import.meta.url);
|
|
2
|
-
import{a as D}from"./chunk-CLGC7VEO.js";import{a as y}from"./chunk-YCCUBQY4.js";import{y as r}from"./chunk-ZUGCHQFC.js";import{a as B}from"./chunk-HCBYKLMW.js";import{a as p,b as t,i as _,k as C}from"./chunk-C44QQJR4.js";import{a as W}from"./chunk-6YGTRKDT.js";import{e as $}from"./chunk-UR6MHSHU.js";var a=$(B(),1);function G(e){let c=e.findIndex(d=>d.free);return c>=0?c:null}var F=60,N=100;function J({headline:e,ask:c=!1,rows:d,sel:i,focused:v,legend:s,freeText:f=null,freeTextNote:g,sublines:u=[]}){let{stdout:o}=C(),h=o?.columns??80,A=h<F,m=Math.min(h-1,N),b=l=>v&&i===l?(0,a.jsx)(t,{color:r.assuranceAccent,children:"\u276F"}):" ",x=c?`? ${e}`:e,R=Math.max(4,m-3),w=u.map((l,T)=>(0,a.jsx)(t,{color:r.dim,children:` ${l.length>R?`${l.slice(0,R-1)}\u2026`:l}`},`sub-${T}`)),k=0,E=d.map((l,T)=>l.free?f?(0,a.jsxs)(p,{flexDirection:"column",children:[(0,a.jsxs)(p,{children:[(0,a.jsxs)(t,{children:[(0,a.jsx)(t,{color:r.assuranceAccent,children:"\u276F"})," ",(0,a.jsx)(t,{color:r.dim,children:"\u270E "})]}),(0,a.jsx)(y,{value:f.value,onChange:f.onChange,onSubmit:f.onSubmit,onCancel:f.onCancel,placeholder:l.label})]}),g?(0,a.jsx)(t,{color:r.muted,children:` ${g}`}):null]},l.key):(0,a.jsxs)(t,{children:[b(T)," ",(0,a.jsx)(t,{color:r.dim,children:`\u270E ${l.label}`})]},l.key):(k+=1,(0,a.jsxs)(t,{bold:v&&i===T,children:[b(T),` ${k}. ${l.label}`,l.detail?(0,a.jsx)(t,{color:r.dim,bold:!1,children:` \u2014 ${l.detail}`}):null]},l.key)));if(A)return(0,a.jsxs)(p,{marginTop:1,marginBottom:1,flexDirection:"column",children:[(0,a.jsx)(t,{bold:!0,color:r.assuranceAccent,children:x}),w,E,(0,a.jsx)(t,{color:r.muted,children:s})]});let M=Math.max(2,m-(3+x.length+1)),L=Math.max(2,m-(3+s.length+1));return(0,a.jsxs)(p,{marginTop:1,marginBottom:1,flexDirection:"column",children:[(0,a.jsxs)(t,{color:r.assuranceAccent,children:["\u2500\u2500 ",(0,a.jsx)(t,{bold:!0,children:x}),` ${"\u2500".repeat(M)}`]}),w,(0,a.jsx)(t,{children:" "}),E,(0,a.jsx)(t,{children:" "}),(0,a.jsxs)(t,{color:r.assuranceAccent,children:["\u2500\u2500 ",(0,a.jsx)(t,{color:r.muted,children:s}),` ${"\u2500".repeat(L)}`]})]})}var S=$(B(),1),H="ctrl+t thinking \xB7 ctrl+c exit";function I(e,c){if(e.length<=c)return e;if(c<=1)return"\u2026";let d=Math.ceil((c-1)/2),i=Math.floor((c-1)/2);return`${e.slice(0,d)}\u2026${i>0?e.slice(-i):""}`}function te({verb:e,subject:c,pendingCount:d,creditsTotal:i,state:v,hints:s=H}){let{stdout:f}=C(),g=f?.columns??80,u=[];u.push(e),v&&u.push(v),i!==void 0&&u.push(`${i.toFixed(1)} credits`);let o=d?`[${d} pending]`:null,h=" \xB7 ",m=[...u,...o?[o]:[]].join(h).length,b,x=[...u,...c?[c]:[],...o?[o]:[],s].join(h);if(x.length<=g)b=x;else{let R=g-m-(c?h.length:0)-h.length-s.length;if(c&&R>=8)b=[...u,I(c,R),...o?[o]:[],s].join(h);else{let w=g-m-(c?h.length:0);b=[...u,...c&&w>=4?[I(c,w)]:[],...o?[o]:[]].join(h)}}if(v){let R=` \xB7 ${v}`,w=b.indexOf(R);if(w>=0)return(0,S.jsxs)(t,{color:r.dim,children:[b.slice(0,w+3),(0,S.jsx)(t,{color:r.assuranceAccent,children:v}),b.slice(w+R.length)]})}return(0,S.jsx)(t,{color:r.dim,children:b})}var O=$(W(),1);function re({onToggleThinking:e,onCtrlC:c,explorer:d,panel:i}){let s=(0,O.useRef)(null),f=(0,O.useRef)(""),g=()=>{s.current&&clearTimeout(s.current),s.current=null,f.current=""};return(0,O.useEffect)(()=>g,[]),_((u,o)=>{if(o.ctrl&&u==="t"){e();return}if(o.ctrl&&u==="c"){c();return}if(!o.ctrl&&u.includes("")){c();return}if(!o.ctrl&&u.includes("")){e();return}if(d&&d.isOpen()){let h=()=>{s.current&&clearTimeout(s.current),s.current=setTimeout(()=>{g(),d.onBack()},150)};if(s.current){if(o.upArrow||o.downArrow||o.return){g(),o.return?d.onEnter():d.onMove(o.upArrow?-1:1);return}if(f.current+=u,f.current==="["){h();return}let A=f.current;g();let m=/^\[([ABCD])/.exec(A);if(m){(m[1]==="A"||m[1]==="B")&&d.onMove(m[1]==="A"?-1:1);return}d.onBack();return}if(o.upArrow){d.onMove(-1);return}if(o.downArrow){d.onMove(1);return}if(o.return){d.onEnter();return}if(o.escape){f.current="",h();return}return}if(i&&i.isFocused()){let h=()=>{s.current&&clearTimeout(s.current),s.current=setTimeout(()=>{g(),i.onBack()},150)};if(s.current){if(o.upArrow||o.downArrow||o.return||o.leftArrow||o.rightArrow){g(),o.return?i.onSelect():o.leftArrow?i.onLeft?.():o.rightArrow?i.onRight?.():i.onMove(o.upArrow?-1:1);return}if(f.current+=u,f.current==="["){h();return}let A=f.current;g();let m=/^\[([ABCD])/.exec(A);if(m){m[1]==="A"||m[1]==="B"?i.onMove(m[1]==="A"?-1:1):m[1]==="C"?i.onRight?.():i.onLeft?.();return}i.onBack();return}if(o.upArrow){i.onMove(-1);return}if(o.downArrow){i.onMove(1);return}if(o.leftArrow){i.onLeft?.();return}if(o.rightArrow){i.onRight?.();return}if(o.return){i.onSelect();return}if(o.escape){f.current="",h();return}if(/^[1-9]$/.test(u)){i.onDigit(Number(u));return}if(o.tab){i.onTab?.();return}if(u===" "&&i.isMulti()){i.onSpace();return}if(u&&!o.ctrl&&!o.meta){i.onType(u);return}return}}),null}var n=$(B(),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 P(e){let c=V(e);return e.viewDiff&&c.push({v:"view_diff",label:"view diff",detail:"full old \u2192 new"}),c}function K(e){return e.kind==="ARCHIVE"?null:P(e).length}var j={ADD:{color:r.green??"green"},MODIFY:{color:"yellow"},ARCHIVE:{color:r.red},REVIEW:{color:"cyan"},PAIR:{color:"magenta"}},q=60,Q=100;function ue({card:e,position:c,sel:d=0,focused:i=!1,freeText:v=null,editorIntent:s="steer"}){let{stdout:f}=C(),g=f?.columns??80,u=g<q,o=Math.min(g-1,Q),h=P(e),A=K(e),m=j[e.kind],b=l=>i&&d===l?(0,n.jsx)(t,{color:r.assuranceAccent,children:"\u276F"}):" ",x=e.impact,R=x&&"stale_refs"in x&&x.stale_refs.length>0?`${e.kind==="ARCHIVE"?"retiring leaves":"approving marks"} ${x.stale_refs.length} item(s) stale`+((x.direct_refs?.length??0)>0?` \u2014 ${x.direct_refs.length} directly touched: ${x.direct_refs.join(", ")}`:""):x&&"design_children"in x?`${e.kind==="REVIEW"?"archiving drops":"merging folds"} ${x.design_children} design child(ren)`:null,w=`? reconcile \u2014 item ${c.n} of ${c.of}`,k=A!==null?"\u2191\u2193 \xB7 \u23CE select \xB7 1-9 \xB7 type = adjust \xB7 esc \xB7 nothing to undo":"\u2191\u2193 \xB7 \u23CE select \xB7 1-9 \xB7 esc \xB7 nothing to undo",E=(0,n.jsxs)(p,{flexDirection:"column",children:[(0,n.jsx)(p,{paddingLeft:2,children:(0,n.jsxs)(t,{bold:!0,children:[(0,n.jsx)(t,{color:m.color,children:`[${e.kind}]`}),` ${D(e.title)}`]})}),(0,n.jsx)(p,{paddingLeft:2,children:(0,n.jsx)(t,{color:r.muted,children:e.why})}),e.diffSummary?(0,n.jsx)(p,{paddingLeft:2,children:(0,n.jsx)(t,{color:r.dim,children:e.diffSummary})}):(e.diff??[]).map((l,T)=>(0,n.jsx)(p,{paddingLeft:4,children:(0,n.jsx)(t,{color:l.op==="-"?"red":"green",children:`${l.op==="-"?"\u2212":"+"} ${l.field==="criteria"?"criterion":l.field}: ${l.text}`})},`d-${T}`)),e.tier?(0,n.jsx)(p,{paddingLeft:2,children:(0,n.jsx)(t,{color:r.dim,children:`match: ${e.tier}`})}):null,(e.citeLines??[]).map((l,T)=>(0,n.jsx)(p,{paddingLeft:2,children:(0,n.jsx)(t,{color:r.dim,children:l})},`c-${T}`)),R?(0,n.jsx)(p,{paddingLeft:2,children:(0,n.jsx)(t,{color:r.muted,children:`impact: ${R}`})}):null,e.kind==="ARCHIVE"&&e.provenance&&e.provenance!==e.why?(0,n.jsx)(p,{paddingLeft:2,children:(0,n.jsx)(t,{color:r.muted,children:e.provenance})}):null,(0,n.jsx)(t,{children:" "}),h.map((l,T)=>(0,n.jsxs)(t,{children:[b(T),` ${T+1}. ${l.label}`,(0,n.jsx)(t,{color:r.dim,children:` \u2014 ${l.detail}`})]},`o-${T}`)),A!==null||v&&s==="because"?v?(0,n.jsxs)(p,{flexDirection:"column",children:[(0,n.jsxs)(p,{children:[(0,n.jsxs)(t,{children:[(0,n.jsx)(t,{color:r.assuranceAccent,children:"\u276F"})," ",(0,n.jsx)(t,{color:r.dim,children:"\u270E "})]}),(0,n.jsx)(y,{value:v.value,onChange:v.onChange,onSubmit:v.onSubmit,onCancel:v.onCancel,placeholder:s==="because"?"why archive it?":"say what to adjust"})]}),(0,n.jsx)(t,{color:r.muted,children:s==="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"})]}):A!==null?(0,n.jsxs)(t,{children:[b(A)," ",(0,n.jsx)(t,{color:r.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(u)return(0,n.jsxs)(p,{marginTop:1,marginBottom:1,flexDirection:"column",children:[(0,n.jsx)(t,{bold:!0,color:r.assuranceAccent,children:w}),E,(0,n.jsx)(t,{color:r.muted,children:k})]});let M=Math.max(2,o-(3+w.length+1)),L=Math.max(2,o-(3+k.length+1));return(0,n.jsxs)(p,{marginTop:1,marginBottom:1,flexDirection:"column",children:[(0,n.jsxs)(t,{color:r.assuranceAccent,children:["\u2500\u2500 ",(0,n.jsx)(t,{bold:!0,children:w}),` ${"\u2500".repeat(M)}`]}),(0,n.jsx)(t,{children:" "}),E,(0,n.jsx)(t,{children:" "}),(0,n.jsxs)(t,{color:r.assuranceAccent,children:["\u2500\u2500 ",(0,n.jsx)(t,{color:r.muted,children:k}),` ${"\u2500".repeat(L)}`]})]})}export{G as a,J as b,te as c,re as d,V as e,P as f,K as g,ue as h};
|
package/dist/chunk-VGFTNLQQ.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import { createRequire } from 'module'; const require = createRequire(import.meta.url);
|
|
2
|
-
var a={graph_search_similar:"search graph",graph_get_node:"read node",graph_get_edges:"read edges",graph_match_by_type:"match by type",graph_find_by_provenance:"trace provenance",graph_stale_nodes:"check stale",ask_user:"ask",finalize_proposal:"propose use-cases",chat_turn:"apply changes",read_image:"read image",source_read:"read source",source_grep:"search source",finalize_design:"propose design",expand_bva:"expand boundaries",covering_array:"combine classes",dedupe_candidates:"dedupe",budget_cut:"trim to budget",source_list:"list sources",graph_search_similar_batch:"search graph",graph_history:"read history"};function o(t){let e=a[t.name],n=t.status==="error"||t.status==="aborted"?" \u2717":"",i=t.detail?` \u2014 ${t.detail}`:"";return e?`\u2692 ${e}${i}${n}`:`\u2692 working\u2026${i}${n}`}function r(t){return o(t).replace(/^\S+ /,"")}function d(){return{currentAttempt:null,liveThinking:"",thinkingLog:[],activity:[]}}var s={dedup_candidate:"checking a possible duplicate",ambiguity:"asking to resolve an ambiguity",validation_repair:"repairing a validation failure",finalize:"finalizing the proposal",terminal_call:"putting the result together",validation_failed:"fixing a validation issue",no_tool_calls:"nudging a stalled turn",evidence_readback:"reading the evidence back",evidence_search:"searching the evidence",provenance_check:"checking provenance"};function c(t){return s[t.reason_code]??t.reason_code.replace(/_/g," ")}function u(t){let e=r({name:t.name});return t.status==="started"?`\u2192 ${e}\u2026`:t.status==="error"||t.status==="aborted"?`\u2717 ${e}`:`\u2713 ${e}`}function g(t,e){return e.turn_id!==t.turn_id?e.turn_id<t.turn_id:e.attempt<t.attempt}function h(t,e){let n=t.currentAttempt;if(n===null||n.turn_id!==e.turn_id||n.attempt!==e.attempt){if(n!==null&&g(n,e))return t;t={...t,currentAttempt:{turn_id:e.turn_id,attempt:e.attempt},liveThinking:""}}switch(e.type){case"reasoning_delta":return{...t,liveThinking:t.liveThinking+e.text};case"reasoning_done":return e.present?{...t,thinkingLog:[...t.thinkingLog,{text:t.liveThinking,tookMs:e.took_ms}],liveThinking:""}:{...t,liveThinking:""};case"tool_activity":return{...t,activity:[...t.activity,{name:e.name,status:e.status,label:u(e)}]};case"decision_activity":return{...t,activity:[...t.activity,{name:e.action,status:"decision",label:c(e)}]}}}export{o as a,r as b,d as c,c as d,h as e};
|
package/dist/chunk-WAOCHXJ5.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import { createRequire } from 'module'; const require = createRequire(import.meta.url);
|
|
2
|
-
import{b as i}from"./chunk-NLCCBXXV.js";import{a as s}from"./chunk-RZ4F3BHX.js";var a={attempts:3,backoffMs:[250,750]},n=class extends i{constructor(e,r){super(e,r)}headers(){return{Authorization:this.authHeader,"Content-Type":"application/json"}}async getTmsCredentials(){let e=await s(`${this.baseUrl}/auth/tms-credentials`,{method:"GET",headers:this.headers(),retry:a});if(!e.ok)throw new Error(`Credential exchange failed: ${e.status} ${await e.text()}`);return await e.json()}async getPresignedUrls(e,r,o){let t=await s(`${this.baseUrl}/upload/presign`,{method:"POST",headers:this.headers(),body:JSON.stringify({test_id:e,session_id:r,files:o})});if(!t.ok)throw new Error(`Presign request failed: ${t.status} ${await t.text()}`);return await t.json()}async getScreenshotSas(){let e=await s(`${this.baseUrl}/upload/screenshot-sas`,{method:"GET",headers:this.headers(),retry:a});if(!e.ok)throw new Error(`Screenshot SAS request failed: ${e.status} ${await e.text()}`);return await e.json()}async getCreditBalance(){let e=await s(`${this.baseUrl}/credits/balance`,{method:"GET",headers:this.headers(),retry:a});if(!e.ok)throw new Error(`Credit balance request failed: ${e.status} ${await e.text()}`);return await e.json()}};export{n as a};
|
package/dist/chunk-ZUGCHQFC.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import { createRequire } from 'module'; const require = createRequire(import.meta.url);
|
|
2
|
-
import{homedir as a}from"os";import{join as t}from"path";var m="0.7.2",d="kane-cli",e=t(a(),".testmuai","kaneai"),g=t(e,"profiles"),h=t(e,"tui-config.json"),_=t(e,"media"),A="https://registry.npmjs.org/@testmuai/kane-cli",L="https://api.github.com/repos/LambdaTest/kane-cli/releases",n="@testmuai/kane-cli-skill",b=`https://registry.npmjs.org/${n}`,r="kane-cli",x=[{dir:t(a(),".claude","skills",r),agent:"Claude Code"},{dir:t(a(),".agents","skills",r),agent:"Codex CLI"},{dir:t(a(),".gemini","skills",r),agent:"Gemini CLI"}],u="https://dd-proxy.lambdatest.com/intake/kane-cli",U="https://kaneai-playground.lambdatest.io",R=9222,I=9230,E=t(e,"chrome-profiles"),o=t(e,"hints"),C=t(o,"state.json");function T(s){return t(o,`catalog-${s}.json`)}var c="127.0.0.1",S=18392,f=18400,i="/callback";function N(s){return`http://${c}:${s}${i}`}var P="KANE CLI",B="*",O={prod:{authBaseUrl:"https://auth.lambdatest.com",consentUrl:"https://accounts.lambdatest.com",controllerBaseUrl:"https://kaneai-api.lambdatest.com/v16-controller/v1",tmsBaseUrl:"https://test-manager-api.lambdatest.com/api",testGeneratorBaseUrl:"https://test-manager-api.lambdatest.com",secretsBaseUrl:"https://api-hyperexecute.lambdatest.com",testManagerUiUrl:"https://test-manager.lambdatest.com",shareApiBaseUrl:"https://api.lambdatest.com",v16ServerHost:"https://kaneai-api.lambdatest.com/v16-server",evidenceViewerUrl:"https://evidence.lambdatest.com",mediaArtefactsHost:"prod-mobile-artefacts.lambdatest.com"},stage:{authBaseUrl:"https://stage-auth.lambdatestinternal.com",consentUrl:"https://stage-accounts.lambdatestinternal.com",controllerBaseUrl:"https://auteur-stage-automind.lambdatestinternal.com/v16-controller/v1",tmsBaseUrl:"https://stage-test-manager-api.lambdatestinternal.com/api",testGeneratorBaseUrl:"https://stage-test-manager-api.lambdatestinternal.com",secretsBaseUrl:"https://api-stage-hyperexecute.lambdatestinternal.com",testManagerUiUrl:"https://stage-test-manager.lambdatestinternal.com",shareApiBaseUrl:"https://stage-api.lambdatestinternal.com",v16ServerHost:"https://auteur-stage-automind.lambdatestinternal.com/v16-server",evidenceViewerUrl:"https://stage-evidence.lambdatestinternal.com",mediaArtefactsHost:"stage-mobile-artefacts.lambdatestinternal.com"}},k={orange:"#ff9500",generateAccent:"#0d9488",assuranceAccent:"#b388ff",purple:"#b388ff",secondary:"#888888",dim:"#666666",muted:"#444444",green:"#4ade80",red:"#ef4444"};export{m as a,d as b,e as c,h as d,_ as e,A as f,L as g,n as h,x as i,u as j,U as k,R as l,I as m,E as n,C as o,T as p,c as q,S as r,f as s,i as t,N as u,P as v,B as w,O as x,k as y};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import { createRequire } from 'module'; const require = createRequire(import.meta.url);
|
|
2
|
-
import{a,b,c,d,e,f,g,h,i}from"./chunk-QOFZSHSC.js";import"./chunk-BKHXPBWN.js";import"./chunk-2UIHS2FH.js";import"./chunk-Q2F5QB2W.js";import"./chunk-N2P4MI32.js";import"./chunk-NVGBE2DR.js";import"./chunk-IAHKTEET.js";import"./chunk-UR6MHSHU.js";export{a as DOCX_CONVERTER_POLICY,b as DOCX_CONVERTER_VERSION,d as DOCX_IMAGE_CAP,c as DOCX_IMAGE_DIMENSION_FLOOR,f as DOCX_IMAGE_MAX_BYTES,g as DOCX_IMAGE_MAX_PIXELS,e as DOCX_VISION_BYTE_BUDGET,i as convertDocx,h as renderTokens};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import { createRequire } from 'module'; const require = createRequire(import.meta.url);
|
|
2
|
-
import{$ as fa,A as J,B as K,C as L,D as M,E as N,F as O,G as P,H as Q,L as R,M as S,N as T,O as U,P as V,Q as W,R as X,S as Y,T as Z,U as _,V as $,W as aa,X as ba,Y as ca,Z as da,_ as ea,a,aa as ga,b,ba as ha,c,ca as ia,d,e,f,g,h,i,j,k as t,l as u,m as v,n as w,o as x,p as y,q as z,r as A,s as B,t as C,u as D,v as E,w as F,x as G,y as H,z as I}from"./chunk-2WRBTLFN.js";import"./chunk-5DBK6QNS.js";import{a as n,b as o,c as p,e as q,f as r,g as s}from"./chunk-CJJXT5DO.js";import"./chunk-XWKUZJCP.js";import"./chunk-ZPDM6FO7.js";import"./chunk-NVGBE2DR.js";import{a as k,b as l,c as m}from"./chunk-EHN5HTUD.js";import"./chunk-L5LI2JF4.js";import"./chunk-TH47OOBV.js";import"./chunk-VAYBKR76.js";import"./chunk-CUM23TLF.js";import"./chunk-DUAXZYAD.js";import"./chunk-DBIBROYW.js";import"./chunk-WXHQYYD5.js";import"./chunk-IAHKTEET.js";import"./chunk-UD7KKHPW.js";import"./chunk-CH273NAE.js";import"./chunk-O75ZHGJG.js";import"./chunk-ZUGCHQFC.js";import"./chunk-UR6MHSHU.js";export{P as EvidenceSession,C as appendExecutionPointer,M as assembleExecutionEnv,i as buildEnvironment,j as buildEvidenceRunConfig,g as buildExternalId,z as buildLogsMetaYaml,y as buildResultYaml,t as buildRunYaml,O as createCdpBrowserCapture,u as createRunningPack,v as createRunningPackRoot,H as declareLogsFromDir,J as diagnostics,x as discardPack,ba as ensureAuteurExecution,N as fetchCdpBrowserString,L as finalizeEvidencePack,U as finalizeInlineEvidence,K as finalizeMemberTestLogs,da as flattenAuteurLeafIds,ca as flattenAuteurLeaves,T as inlineEvidenceBlock,q as listPacks,p as newExecutionId,h as normalizeOs,S as noteInlineSpawn,$ as offerEvidenceView,o as packPath,I as packTestLogsDir,V as parseRange,D as readExecutionPointers,ia as readPackLeafIds,ha as readPackLeaves,s as recoverStore,fa as remapReplayActionIds,r as resolvePack,ga as resolveReplayResultSteps,F as rollupTestStatus,aa as runEvidenceMerge,_ as runEvidenceServe,E as runEvidenceValidate,Q as runStartupRecovery,l as sealPack,w as sealPackById,Z as serveHint,d as shortHash,c as slugify,W as startEvidenceLocalServer,R as startInlineEvidence,n as storeDir,m as sweepStore,ea as synthesizeSkippedTail,f as testIdForInline,e as testIdForTestmd,k as validatePack,a as verdictFromResultCode,X as viewerBaseFor,Y as viewerUrlFor,b as worstOf,G as worstResultCode,B as writeLogsMeta,A as writeResult};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import { createRequire } from 'module'; const require = createRequire(import.meta.url);
|
|
2
|
-
import{a,b,c,d,e,f,g}from"./chunk-AFBKGZFG.js";import"./chunk-OS4VSIHT.js";import"./chunk-TRJUD3XJ.js";import"./chunk-JFAFKHDX.js";import"./chunk-JZ26R6UL.js";import"./chunk-5DT7PIGB.js";import"./chunk-DNNZ353O.js";import"./chunk-NVGBE2DR.js";import"./chunk-TH47OOBV.js";import"./chunk-VAYBKR76.js";import"./chunk-CUM23TLF.js";import"./chunk-DUAXZYAD.js";import"./chunk-DBIBROYW.js";import"./chunk-WXHQYYD5.js";import"./chunk-IAHKTEET.js";import"./chunk-UD7KKHPW.js";import"./chunk-CH273NAE.js";import"./chunk-UR6MHSHU.js";export{b as designStateOf,g as evolveCommand,c as evolveOneUc,f as liveRunDesignForUc,a as resolveParentUc,e as runEvolveCommand,d as staleTargets};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import { createRequire } from 'module'; const require = createRequire(import.meta.url);
|
|
2
|
-
import{g as a,h as b,i as c,j as d,k as e,l as f,m as g,n as h,o as i,p as j,q as k,r as l,s as m,t as n}from"./chunk-QIGPXYMF.js";import"./chunk-5EOX4MEY.js";import"./chunk-UR6MHSHU.js";export{n as _reset,i as cleanup,h as deregister,e as getRemoteLogger,b as getSupportContext,m as installHandlers,f as isShuttingDown,d as logOrBufferRemote,g as register,k as setInkExit,c as setRemoteLogger,a as setSupportContext,l as setTerminalRestore,j as shutdown};
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { createRequire } from 'module'; const require = createRequire(import.meta.url);
|
|
2
|
-
import{f as Y,g as F}from"./chunk-53IBTIL3.js";import"./chunk-ZMNJBUAO.js";import"./chunk-W5TTF7GB.js";import"./chunk-I7TIGB7K.js";import"./chunk-AJ56AMT6.js";import"./chunk-DZPGG4S6.js";import"./chunk-F7ISS545.js";import"./chunk-7OYZR6JA.js";import"./chunk-JFAFKHDX.js";import"./chunk-BB2W35TW.js";import{c as Q}from"./chunk-YKTYVJBN.js";import"./chunk-IMR64OCZ.js";import"./chunk-427OQS2N.js";import{a as P}from"./chunk-VLWMMOMF.js";import{a as q}from"./chunk-JZ26R6UL.js";import"./chunk-VGFTNLQQ.js";import"./chunk-L2TV4G56.js";import"./chunk-6KPPGMO2.js";import{c as U}from"./chunk-5DT7PIGB.js";import"./chunk-R7QAS6LZ.js";import"./chunk-QOFZSHSC.js";import"./chunk-BKHXPBWN.js";import{d as $}from"./chunk-DBKNJRJG.js";import"./chunk-5FJJJNJK.js";import"./chunk-VMM4LC4V.js";import"./chunk-W4B5LOEX.js";import"./chunk-DNNZ353O.js";import"./chunk-2UIHS2FH.js";import"./chunk-Q2F5QB2W.js";import"./chunk-N2P4MI32.js";import"./chunk-GFKCTYCA.js";import"./chunk-NVGBE2DR.js";import"./chunk-TH47OOBV.js";import"./chunk-VAYBKR76.js";import"./chunk-CUM23TLF.js";import"./chunk-DUAXZYAD.js";import"./chunk-DBIBROYW.js";import"./chunk-WXHQYYD5.js";import"./chunk-IAHKTEET.js";import"./chunk-UD7KKHPW.js";import{a as C}from"./chunk-CH273NAE.js";import{a as M,b as N}from"./chunk-YTHQNN2L.js";import"./chunk-R5T4RLF5.js";import"./chunk-KBM3XHAM.js";import"./chunk-2YEHV2CX.js";import"./chunk-IDX3TOPY.js";import"./chunk-BKM2LWU2.js";import"./chunk-QIGPXYMF.js";import"./chunk-5EOX4MEY.js";import"./chunk-RZ4F3BHX.js";import"./chunk-ZUGCHQFC.js";import"./chunk-UR6MHSHU.js";async function X(r){let[{render:n},s,{QuestionBatchPrompt:p}]=await Promise.all([import("./build-JIKYOZUH.js"),import("./react-QWOAB3TB.js"),import("./ui-JEJGTURD.js")]),m=s.default??s;return new Promise(w=>{let y=n(m.createElement(p,{questions:r,onSubmit:t=>{y.unmount(),w(t)}}))})}async function Z(r,n){let[{render:s},p,{ReviewChecklist:m}]=await Promise.all([import("./build-JIKYOZUH.js"),import("./react-QWOAB3TB.js"),import("./ui-JEJGTURD.js")]),w=p.default??p;return new Promise(y=>{let t=s(w.createElement(m,{items:r.map(x=>{let g=n.get(x.temp_ref);return{uc:x,dedupWith:g&&!g.archived?g.cid:void 0,archivedMatch:g?.archived?{cid:g.cid,reason:g.reason}:void 0}}),onSubmit:x=>{t.unmount(),y(x)}}))})}async function ee(r){let{createInterface:n}=await import("readline/promises"),s=n({input:process.stdin,output:process.stdout});try{let p=await s.question(`${r} [y/N] `);return/^y(es)?$/i.test(p.trim())}finally{s.close()}}async function de(r){let n=C(process.cwd()),s=N({verb:"extract",mode:r.plan?"cli":"interactive",contextRoot:n,env:M(),resumeSid:r.resume,write:!0,longSession:!0}),m={...await $(),...s.spawnEnv()},w=await Q(m);if(!w.ok)return process.stderr.write((w.message??"error: turn-endpoint preflight failed")+`
|
|
3
|
-
`),process.stderr.write(s.supportFooter()+`
|
|
4
|
-
`),s.error("preflight_auth"),await s.end({exit_code:2}),2;let y=async()=>w;if(r.plan){let i=await F(r,{contextDir:n,agent:P,preflightTurn:y,ask:X,review:Z,confirmStale:ee,out:u=>process.stdout.write(u+`
|
|
5
|
-
`),progress:u=>process.stderr.write(u+`
|
|
6
|
-
`),isTTY:U(),auth:m,telemetry:s});return i===1&&process.stderr.write(s.supportFooter()+`
|
|
7
|
-
`),await s.end({exit_code:i}),i}let[{render:t},x,{ScrollbackProvider:g},{ChatSurface:c},{ScrollbackTap:E},{makeChatController:V},{setInkExit:T},G]=await Promise.all([import("./build-JIKYOZUH.js"),import("./react-QWOAB3TB.js"),import("./scrollback-JLPJR25X.js"),import("./ChatSurface-E7QKI4LA.js"),import("./ScrollbackTap-Q3IOKNMS.js"),import("./chat-controller-T2FAI55V.js"),import("./exit-manager-XZL4KIJU.js"),Promise.all([import("./chat-committer-UUC6JTRJ.js"),import("./descriptor-OEUZZCOK.js"),import("./explain-UAAQWHYR.js"),import("./readmodel-XOYGGQ3S.js")])]),[{commitChatTurn:S},{topologyDescriptor:e},{explain:a},{openGraph:v}]=G,_=x.default??x,d=V({commitChatTurn:S,descriptor:e(),contextDir:n,refreshGraph:()=>v(n),graph:v(n),explain:a,by:{kind:"human",id:"owner"},dedupFlags:i=>Y(i,v(n))}),j={current:null},H=0,I=null,D=!1,z=()=>{if(H+=1,H>=2){try{A.unmount()}catch{}process.exit(130)}d.requestPause(),I=setTimeout(()=>{D||(D=!0,(async()=>{d.ledger({kind:"interrupted",detail:"the agent did not confirm the pause within 5s"}),await j.current?.flush();try{A.unmount()}catch{}process.exit(130)})())},5e3)},O=await import("./dossier-KTLTGT2X.js"),B=i=>{try{return O.buildDossier(v(n),i)}catch{return null}},L={listUcs:()=>{let i=v(n),u=new Set(d.state.turns.flatMap(o=>(o.items??[]).map(l=>l.title.toLowerCase()))),f={high:0,med:1,low:2};return i.byLabel("usecase").filter(o=>!i.superseded.has(o.cid)).map((o,l)=>{let h=o.content,b=String(h.title??o.cid.slice(0,12)),k=q(i,o.cid),R=k?k.designed_at_cid===o.cid?"current":"stale":void 0;return{key:o.cid,title:b,badge:R==="current"?"designed":R==="stale"?"designed \xB7 stale":u.has(b.toLowerCase())?"drafted this session":"existing",designed:R,risk:h.risk,i:l}}).sort((o,l)=>(f[o.risk??"zz"]??3)-(f[l.risk??"zz"]??3)||o.i-l.i).map(({key:o,title:l,badge:h,designed:b})=>({key:o,title:l,badge:h,designed:b}))},runDesignChild:async(i,u=!1)=>{try{let{designEntryCheck:h,confirmUnreviewedViaAsk:b}=await import("./trust-gate-EX7R2P4Y.js"),k=h(v(n),i);if(!k.ok&&(k.code==="UC_UNREVIEWED"||k.code==="UC_ARCHIVED")&&!await b(K=>d.ask(K),k))return d.note(`design child refused \u2014 approve it first: ${k.reviewCmd}`),2}catch{}let[{runDesign:f}]=await Promise.all([import("./run-GMZCDRDD.js")]),o="",l=await f({useCase:i,force:u,mode:"interactive"},{contextDir:n,agent:P,preflightTurn:y,ask:h=>d.ask(h),chat:d,nested:!0,out:h=>{o=h},progress:()=>{},isTTY:!0,auth:m});return l!==0&&o&&d.note(o),l}},{makeReconcileDeps:W}=await import("./reconcile-deps-HTT6IPHT.js"),J=W({contextDir:n,...r.changeContext?{changeContext:r.changeContext}:{},note:i=>d.note(i)}),A=t(_.createElement(g,null,_.createElement(E,{into:j}),_.createElement(c,{controller:d,verb:"extract",onCtrlC:z,chain:L,inspect:B,reconcile:J})),{exitOnCtrlC:!1});T(()=>A.unmount()),d.ledger({kind:"banner",text:"kane-cli context \xB7 extract \xB7 interactive"});try{let i=F(r,{contextDir:n,agent:P,preflightTurn:y,ask:f=>d.ask(f),review:async f=>new Map(f.map(o=>[o.temp_ref,{resolution:"skipped"}])),confirmStale:async()=>!0,out:f=>d.note(f),progress:()=>{},isTTY:U(),auth:m,chat:d,telemetry:s});i.finally(()=>{D=!0});let u=await i;return u===1&&process.stderr.write(s.supportFooter()+`
|
|
8
|
-
`),await s.end({exit_code:u}),u}finally{D=!0,I&&clearTimeout(I),await j.current?.flush();try{A.unmount()}catch{}}}async function ue(r){let n=N({verb:"extract",mode:r.mode,contextRoot:C(process.cwd()),env:M(),resumeSid:r.resume,write:!0,longSession:!0}),{makeHeadlessIO:s,resolveEncoding:p,guardedChannels:m}=await import("./headless-io-66RG5NN5.js"),{withStructuredNext:w,prepareStructuredResume:y}=await import("./structured-answers-A43Q25CZ.js"),t=w(s(p(r.mode),"extract")),{runWithChannel:x}=await import("./run-channel-RGH4WIQX.js"),g=p(r.mode)==="ndjson"?e=>x({event:a=>t.event(a)},e):e=>e();for(let e of r.landed??[]){let a=e;t.event({type:"ingested",source_id:e.source_id,status:e.status,cid:e.source_cid,...a.warnings?.length?{warnings:a.warnings}:{},...a.media?{media:a.media}:{},...a.duplicate_of?{duplicate_of:a.duplicate_of}:{},...a.lineage_candidate?{lineage_candidate:a.lineage_candidate}:{}})}let c;try{c=y({opts:r,contextDir:C(process.cwd()),verb:"extract"})}catch(e){let a=e instanceof Error?e.message:String(e);return t.out(`error: ${a}`),r.mode==="agent"&&t.event({type:"error",message:a}),await n.end({exit_code:1}),r.mode==="agent"?t.done(1,"error"):1}if(c.kind==="refuse")return t.out(c.error),r.mode==="agent"&&t.event({type:"error",message:c.error,code:c.code}),await n.end({exit_code:2}),r.mode==="agent"?t.done(2,"refused"):2;let E=r;if(c.kind==="apply"){for(let e of c.notes)t.out(e);if(c.matchedQids.length>0){t.out(`applying ${c.matchedQids.length} structured answer(s) from --answer to the paused session's pending questions`);for(let e of c.matchedQids)t.event({type:"panel_resolved",id:e,by:"user",via:"flag"})}c.statement&&(E={...r,message:[r.message,c.statement].filter(Boolean).join(`
|
|
9
|
-
|
|
10
|
-
`)})}let{makeInterruptGuard:V}=await import("./interrupt-guard-UREUWNRL.js"),T=V(P,e=>t.out(e)),S=m(t,()=>T.interrupted(),/^error: (agent failed|repair run failed|agent ended)/);try{let e=await g(async()=>{let a={...await $(),...n.spawnEnv()};return F(E,{contextDir:C(process.cwd()),agent:T.agent,preflightTurn:()=>Q(a),ask:async()=>[],review:async v=>new Map(v.map(_=>[_.temp_ref,{resolution:"skipped"}])),confirmStale:async()=>!1,out:S.out,emit:S.emit,progress:t.progress,isTTY:!1,auth:a,telemetry:n})});return T.interrupted()&&e!==3?(t.out("interrupted \u2014 no session saved"),await n.end({exit_code:130}),t.done(130)):(e===1&&t.out(n.supportFooter()),await n.end({exit_code:e}),t.done(e))}catch(e){return t.event({type:"error",message:`error: extract failed: ${e instanceof Error?e.message:String(e)}`}),t.out(`error: extract failed: ${e instanceof Error?e.message:String(e)}`),t.out('hint: the full trace is in the file named on the "trace:" line at the start of this run'),t.done(1)}finally{T.dispose()}}export{ue as bindExtractHeadless,de as bindExtractInteractive};
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import { createRequire } from 'module'; const require = createRequire(import.meta.url);
|
|
2
|
-
import{a as R,b as H,d as ae}from"./chunk-OS4VSIHT.js";import{a as ie,b as ce}from"./chunk-IOD3HQVW.js";import"./chunk-5DT7PIGB.js";import{a as ee,b as te,c as ne,d as se,e as re,f as oe}from"./chunk-5DBK6QNS.js";import{e as X,f as J}from"./chunk-CJJXT5DO.js";import{a as C,b as Z,c as F,d as q}from"./chunk-XWKUZJCP.js";import"./chunk-ZPDM6FO7.js";import{e as Q}from"./chunk-EHN5HTUD.js";import{a as W}from"./chunk-L5LI2JF4.js";import{A as K}from"./chunk-TH47OOBV.js";import"./chunk-VAYBKR76.js";import"./chunk-CUM23TLF.js";import"./chunk-DUAXZYAD.js";import"./chunk-DBIBROYW.js";import{d as G,e as M}from"./chunk-WXHQYYD5.js";import"./chunk-IAHKTEET.js";import"./chunk-UD7KKHPW.js";import"./chunk-CH273NAE.js";import"./chunk-UR6MHSHU.js";import{basename as B}from"path";import{statSync as Se}from"fs";function ye(e,t){return e.length===0?"not_run":ne(e,t).verified?"proven":te(e,t).some(n=>n.verdict==="failed")?"failing":"blocked"}function le(e,t){let s=null;for(let{cid:f}of e.byLabel(G.TEST))for(let o of e.execHistory(f))(!s||String(o.started_at)>s.started_at)&&(s={execution_id:String(o.execution_id),started_at:String(o.started_at)});if(!s)return null;let n=ee[t],r=oe(e),c=se(r).aspects[t],i={},d={},l=0,g=0,a=0;for(let f of r.usecases){let o=[];for(let b of f.acceptance_criteria){let u=b.executions??[],_=ye(u,n);o.push(_),_==="failing"?l++:_==="blocked"?g++:_==="not_run"&&a++;let S=[],k;if(_==="failing"){let w=null;for(let O of b.covered_by){let T=e.execHistory(O).map($=>({verdict:String($.per_ac?.find(y=>y.ac_ref===b.id)?.verdict??$.verdict),oracle_mode:String($.oracle_mode),ts:String($.started_at),execution_id:String($.execution_id)})).filter($=>n.counted_verdicts.includes($.verdict)&&n.accepted_oracle_modes.includes($.oracle_mode)),I=T[T.length-1];I?.verdict==="failed"&&(S.push(O),(!w||I.ts>w.ts)&&(w={ts:I.ts,execution_id:I.execution_id}))}k=w?.execution_id}else _==="blocked"&&(k=u[u.length-1]?.execution_id);i[b.id]={state:_,viaTests:S,...k?{executionId:k}:{}}}let m=o.some(b=>b!=="not_run"),p=c.usecases[f.id],v=m?p.status==="covered"?"proven":p.status==="partial"?"partial":o.includes("failing")?"failing":o.includes("blocked")?"blocked":"not_run":"not_run";d[f.id]={pct:p.pct,status:v}}return{aspect:t,pct:c.summary.coverage_pct,acs_proven:c.summary.acs_verified,failing:l,blocked:g,not_run:a,latest_run:s,perUc:d,perAc:i,config:{...n,source:"graph_execution_facts",denominator:"current_live_acs"}}}var be=["failing","blocked","needs-refresh","needs-tests","needs-scenarios","happy-only","possible-duplicate","not-yet-run"],_e={failing:"failing",blocked:"blocked","needs-refresh":"needs refresh","needs-tests":"needs tests","needs-scenarios":"needs scenarios","happy-only":"happy path only","possible-duplicate":"possible duplicate","not-yet-run":"not yet run"},E={high:0,med:1,low:2};function Y(e,t){let s=/^(.*?)(\d+)$/.exec(e),n=/^(.*?)(\d+)$/.exec(t);return s&&n&&s[1]===n[1]?Number(s[2])-Number(n[2]):e<t?-1:e>t?1:0}function D(e){if(!e||/^sha256:/.test(e))return"(unnamed)";let t=/^(uc|ac|sc|t)-(\d+)$/.exec(e);return t?`${t[1].toUpperCase()}-${t[2]}`:e}function fe(e,t=5){let s=e.trim().split(/\s+/);return s.slice(0,t).join(" ")+(s.length>t?"\u2026":"")}function ke(e,t){let s=e.resolve(t),n=s?e.getNode(e.tipOf(s.cid))?.content:null;return String(n?.title??n?.text??"")}function ue(e,t){let s=e.resolve(t);return{id:s?e.displayNameOf(e.tipOf(s.cid))??e.displayNameOf(s.cid):null,title:fe(ke(e,t),8)}}function $e(e,t){let s=e.resolve(t);if(!s)return null;let n=e.tipOf(s.cid);if(!C(e,n))return null;let r=e.nodeLabel.get(n);if(r===G.USECASE)return n;if(r===G.AC)return F(e,n);if(r===G.TEST){let c=e.edgesFrom(n).find(d=>d.type===M.VERIFIES&&C(e,d.dst));if(c)return F(e,c.dst);let i=e.edgesFrom(n).find(d=>d.type===M.AUTOMATES&&C(e,d.dst));if(i){let d=e.edgesFrom(i.dst).find(l=>l.type===M.BELONGS_TO&&C(e,l.dst));return d?d.dst:null}}return null}function j(e){if(e.tag==="reuse-candidate"&&e.stage==="design")return"possible-duplicate";switch(e.kind){case"no-verifies":return"needs-tests";case"zero-scenario":return"needs-scenarios";case"happy-only":return"happy-only";case"stale-ac":case"stale-test":return"needs-refresh";case"execution-failed":return"failing";case"execution-blocked":return"blocked";case"covered-not-run":return"not-yet-run";default:return"other"}}function xe(e,t){let s=e.resolve(t),n=s?e.getNode(e.tipOf(s.cid))?.content.risk:null;return n==="high"||n==="med"||n==="low"?n:"med"}function ge(e,t,s,n,r){let c=r.servePaths??new Map,i=e.byLabel(G.USECASE).filter(({cid:o})=>C(e,o)),d=new Map(i.map(o=>[o.cid,o])),l=new Map(i.map(({cid:o})=>[o,[]])),g=[];for(let o of t){if(o.stage!=="design")continue;let m={...o,...ue(e,o.ref)},p=$e(e,o.ref),v=p?l.get(p):void 0;v&&j(o)!=="other"?v.push(m):g.push(m)}let a=new Map(i.map(({cid:o})=>[o,{total:0,designed:0}]));for(let{cid:o}of e.byLabel(G.AC)){if(!C(e,o))continue;let m=F(e,o),p=m?a.get(m):void 0;if(!p)continue;p.total++;let v=Z(e,o);if(v&&p.designed++,!n)continue;let b=e.nameOf.get(o)??o,u=n.perAc[b];if(!u)continue;let{id:_,title:S}=ue(e,b),k={ref:e.displayNameOf(o)??o,id:_,title:S,risk:xe(e,b),stage:"cover"},w=l.get(m);u.state==="failing"?w.push({...k,kind:"execution-failed",tag:"evolve",why:"covering test failed against this AC",ready_command:u.executionId&&c.has(u.executionId)?`kane-cli evidence serve ${c.get(u.executionId)}`:"kane-cli testrun run",via_tests:u.viaTests,...u.executionId?{execution_id:u.executionId}:{},...u.executionId&&c.has(u.executionId)?{servePath:c.get(u.executionId)}:{},...r.testFiles?{viaFiles:u.viaTests.map(O=>r.testFiles.get(O)??null)}:{}}):u.state==="blocked"?w.push({...k,kind:"execution-blocked",tag:"reuse-candidate",why:"the formula could count no run \u2014 broken/skipped or an unaccepted oracle",ready_command:u.executionId&&c.has(u.executionId)?`kane-cli evidence serve ${c.get(u.executionId)}`:"kane-cli testrun run",...u.executionId?{execution_id:u.executionId}:{},...u.executionId&&c.has(u.executionId)?{servePath:c.get(u.executionId)}:{}}):u.state==="not_run"&&v&&w.push({...k,kind:"covered-not-run",tag:"reuse-candidate",why:"a covering test exists but has not run yet",ready_command:"kane-cli testrun run"})}let f=[];for(let{cid:o,content:m}of i){let p=e.displayNameOf(o)??o,v=e.nameOf.get(o)??o,b=s.perUc[p]??{pct:0,status:"undesigned",staleAcs:0},u=n?n.perUc[v]??{pct:0,status:"not_run"}:null,_=n!==null&&(u===null||u.status==="not_run"),S=a.get(o),k=l.get(o)??[],w=new Set(k.filter(h=>j(h)==="needs-refresh").map(h=>h.ref)),O=k.some(h=>j(h)==="needs-tests"&&w.has(h.ref)),T=[];for(let h of be){let A=k.filter(P=>j(P)===h);if(h==="needs-tests"&&(A=A.filter(P=>!w.has(P.ref))),A.length===0)continue;A.sort((P,V)=>(E[P.risk]??3)-(E[V.risk]??3)||Y(P.ref,V.ref));let ve=h==="failing"||h==="blocked"||A.length<=2||new Set(A.map(P=>P.ready_command)).size>1;T.push({key:h,label:_e[h],...h==="needs-refresh"?{suffix:"source moved since these were designed"}:{},alsoNeedsTests:h==="needs-refresh"&&O,rows:A,...ve?{}:{rosterCommand:A[0].ready_command}})}let I=T.some(h=>h.key==="failing"),$=T.some(h=>h.key==="blocked"),y=b.pct===100&&(n===null||u?.pct===100)&&T.length===0,U=u!==null&&u.pct>0,x=I?"\u2717":$?"\u23F8":y?"\u2714":b.pct===0&&!U?"\u2716":"\u25D0";f.push({slug:p,title:String(m.title??""),risk:String(m.risk??""),des:b,prov:u,provAbsent:_,acTotal:S.total,acDesigned:S.designed,mark:x,collapse:y,groups:T})}return f.sort((o,m)=>(E[o.risk]??3)-(E[m.risk]??3)||Y(o.slug,m.slug)),g.sort((o,m)=>(E[o.risk]??3)-(E[m.risk]??3)||Y(o.ref,m.ref)),{stage:r.stage,aspect:r.aspect,top:r.top,dc:s,pa:n,ucs:f,other:g}}function N(e,t){let s=Math.round(e/100*t);return"\u2588".repeat(s)+"\u2591".repeat(t-s)}function z(e){return e===100?"\u2714":e>0?"\u25D0":"\u2716"}function L(e,t){return e==="all"||t.stage===e}function me(e,t){let{dc:s,pa:n}=e,r=Math.max(80,Math.min(t.width,120)),c=l=>t.color?`\x1B[2m${l}\x1B[22m`:l,i=[];if(n){i.push(`coverage \u2014 designed \xD7 proven \xB7 live graph \xB7 aspect ${n.aspect}`),i.push("");let l=s.ucs_needing_scenarios;i.push(` designed ${z(s.pct)} ${N(s.pct,10)} ${String(s.pct).padStart(3)}% \u2014 ${s.acs_designed} ACs have verifying tests`+(l>0?` \xB7 scenario debt: ${l} UC${l>1?"s":""}`:""));let g=[n.failing>0?`${n.failing} failing`:null,n.blocked>0?`${n.blocked} blocked`:null,n.not_run>0?`${n.not_run} not yet run`:null].filter(Boolean);i.push(` proven ${z(n.pct)} ${N(n.pct,10)} ${String(n.pct).padStart(3)}% \u2014 ${n.acs_proven} proven by execution`+(g.length?` \xB7 ${g.join(" \xB7 ")}`:""))}else i.push("AC design completeness \u2014 live graph (what design owes; execution proof not shown)"),i.push(""),i.push(` designed ${z(s.pct)} ${N(s.pct,10)} ${String(s.pct).padStart(3)}% \u2014 ${s.acs_designed} ACs have verifying tests \xB7 ${s.usecases_complete} UCs complete`),s.ucs_needing_scenarios>0&&i.push(` scenario debt: ${s.ucs_needing_scenarios} use-case${s.ucs_needing_scenarios>1?"s":""} need scenarios`),i.push(" proven \u2014 no runs recorded yet \xB7 run tests, then re-run");i.push("");let d=!1;for(let l of e.ucs){if(i.push(we(l,n!==null,r)),l.collapse)continue;let g=e.top??1/0;for(let a of l.groups){let f=a.rows.filter(v=>L(e.stage,v));if(f.length===0)continue;if(d=!0,g<=0){i.push(c(` \u2026 +${f.length} more ${a.label}`));continue}let o=f.slice(0,g),m=f.length-o.length;if(g-=o.length,(a.key==="needs-scenarios"||a.key==="happy-only")&&o.length===1&&o[0].ref===l.slug){i.push(` ${a.label}${a.key==="needs-scenarios"?" \u2014 design from scratch":""}`),i.push(c(` \u2192 ${o[0].ready_command}`));continue}let p=(a.suffix?` \u2014 ${a.suffix}`:"")+(a.alsoNeedsTests?" \u2014 also needs tests":"");if(i.push(` ${a.label} (${f.length})${p}`),a.rosterCommand&&a.key!=="failing"&&a.key!=="blocked")Re(i,o,r),i.push(c(` \u2192 ${a.rosterCommand}`));else for(let v of o)Te(i,v,a.key,c);m>0&&i.push(c(` \u2026 +${m} more ${a.label}`))}}return!d&&e.ucs.every(l=>l.groups.every(g=>g.rows.filter(a=>L(e.stage,a)).length===0))&&i.push(" nothing owed \u2014 design and execution are square"),i.push(""),i.push(c(" metric: live verifies edges \xB7 high \xD73 \xB7 staleness shown, not discounted")),n?i.push(c(` proven: graph execution facts \xB7 latest run ${n.latest_run?.started_at??"\u2014"} \xB7 ${n.aspect} formula verbatim`)):i.push(c(" proof: no runs recorded yet \u2014 run tests, then re-run")),i}function we(e,t,s){let n=D(e.slug);if(!t){let l=e.acTotal===0?"no scenarios yet":e.collapse||e.des.status==="complete"?`${e.acTotal} ACs \xB7 complete`:e.des.staleAcs>0?`${e.acTotal} ACs \xB7 ${e.des.staleAcs} stale`:`${e.acTotal} ACs \xB7 ${e.acTotal-e.acDesigned} unverified`,g=` ${e.mark} ${N(e.des.pct,10)} ${String(e.des.pct).padStart(3)}% ${n} `,a=Math.max(0,s-g.length-l.length-2);return`${g}${de(e.title,a).padEnd(a)} ${l}`}let r=e.provAbsent?"prov \xB7 not run":`prov ${N(e.prov?.pct??0,8)} ${String(e.prov?.pct??0).padStart(3)}%`,c=`des ${N(e.des.pct,8)} ${String(e.des.pct).padStart(3)}% \xB7 ${r}`,i=` ${e.mark} ${n} `,d=Math.max(0,s-i.length-c.length-2);return`${i}${de(e.title,d).padEnd(d)} ${c}`}function de(e,t){return e.length<=t?e:t<=1?e.slice(0,t):e.slice(0,t-1)+"\u2026"}function Te(e,t,s,n){let r=D(t.id??t.ref);if(s==="failing"){let c=(t.via_tests??[]).map((d,l)=>`${D(d)}${t.viaFiles?.[l]?` ${t.viaFiles[l]}`:""}`).join(", ");e.push(` \u2717 ${r} ${t.title} \u2014 failed${c?` \xB7 via ${c}`:""}`),t.servePath&&e.push(n(` \u2192 kane-cli evidence serve ${t.servePath} (see why it failed)`));let i=(t.viaFiles??[]).filter(d=>d!==null);i.length===1?e.push(n(` re-run after fixing: kane-cli testmd run ${i[0]} (heals on failure \u2014 fix the app first, or the test may re-author)`)):i.length>1&&e.push(n(" re-run after fixing: kane-cli testrun run (heals on failure \u2014 fix the app first, or the tests may re-author)"));return}if(s==="blocked"){e.push(` \u23F8 ${r} ${t.title} \u2014 (blocked \u2014 see why)`),t.servePath&&e.push(n(` \u2192 kane-cli evidence serve ${t.servePath} (see why)`));return}e.push(` ${r} ${t.title} \u2014 ${t.why}`),e.push(n(` \u2192 ${t.ready_command}`))}function Re(e,t,s){let n=t.map(c=>`${D(c.id??c.ref)} ${fe(c.title,4)}`),r=" ";for(let c of n){let i=r.trim().length?" \xB7 ":"";r.length+i.length+c.length>s&&r.trim().length?(e.push(r),r=" "+c):r+=i+c}r.trim().length&&e.push(r)}function he(e){let{dc:t,pa:s}=e,n=r=>e.top!==void 0?r.slice(0,e.top):r;return{stage:e.stage,rollup_version:1,design_completeness:{pct:t.pct,acs_designed:t.acs_designed,usecases_complete:t.usecases_complete,ucs_needing_scenarios:t.ucs_needing_scenarios,config:t.config},...s?{proven:{aspect:s.aspect,pct:s.pct,acs_proven:s.acs_proven,failing:s.failing,blocked:s.blocked,not_run:s.not_run,latest_run:s.latest_run,config:s.config}}:{},usecases:e.ucs.map(r=>({id:/^sha256:/.test(r.slug)?null:r.slug,title:r.title,risk:r.risk,design_completeness:{pct:r.des.pct,status:r.des.status},stale_acs:r.des.staleAcs,...s?{proven:r.prov??{pct:0,status:"not_run"}}:{},pending:n(r.groups.flatMap(c=>c.rows).filter(c=>L(e.stage,c))).map(pe)})),other:e.other.filter(r=>L(e.stage,r)).map(pe)}}function pe(e){let{servePath:t,viaFiles:s,meta:n,...r}=e;return{...r}}async function Ae(e){let t=await X(e);return t.length===0?null:t.map(s=>({p:s,m:Se(s).mtimeMs})).sort((s,n)=>n.m-s.m)[0].p}async function Oe(e,t=ae(),s=process.cwd()){if(e.mode!==void 0&&e.mode!=="agent"&&e.mode!=="ci"&&e.mode!=="interactive")return R(t,`--mode must be interactive | agent | ci, got '${e.mode}'`),2;if(e.mode==="agent"||e.mode==="ci"){let{makeHeadlessIO:p,agentRefusal:v}=await import("./headless-io-66RG5NN5.js"),{parsesAgainstGrammar:b}=await import("./next-TRSKMBO5.js"),u=p("ndjson","gaps",{stdout:y=>t.out(y.replace(/\n$/,"")),stderr:y=>(t.err??t.out)(y.replace(/\n$/,""))}),_=[],S=[],k={out:y=>_.push(y),err:y=>S.push(y),confirm:async()=>!1,isTTY:!1};if(await Oe({...e,json:!0,mode:void 0},k,s)!==0)return v(u,S.join("; ")||"cover gaps refused");let O=JSON.parse(_.join(`
|
|
3
|
-
`));u.event({type:"gaps",...O});let T=[],I=new Set,$=(y,U)=>{if(Array.isArray(y)){for(let x of y)$(x,U);return}if(y&&typeof y=="object"){let x=y,h=typeof x.why=="string"?x.why:U;typeof x.ready_command=="string"&&x.ready_command.startsWith("kane-cli ")&&b(x.ready_command)&&!I.has(x.ready_command)&&(I.add(x.ready_command),T.push({cmd:x.ready_command,why:h||"close the gap"}));for(let A of Object.values(x))$(A,h)}};return $(O,"close the gap"),u.done(0,void 0,T.slice(0,4))}if(e.flat)return Ie(e,t,s);let n=e.stage??"all";if(n!=="design"&&n!=="cover"&&n!=="all")return R(t,`--stage must be design | cover | all, got '${n}'`),2;if(e.top!==void 0&&(!Number.isInteger(e.top)||e.top<1))return R(t,"--top must be a positive integer"),2;let r=e.aspect??"lenient";if(r!=="lenient"&&r!=="strict")return R(t,`--aspect must be lenient | strict, got '${r}'`),2;if(e.from)return R(t,"the tree reads the live graph \u2014 for a specific run's view use: kane-cli cover --from <pack> (legacy worklist: add --flat)"),2;let c=H(s,t);if(!c)return 2;let i=K(c),d=re(i),l=le(i,r),g=await q(i,"design"),a=new Map;if(l)for(let p of Object.values(l.perAc)){if(!p.executionId||a.has(p.executionId))continue;let v=await J(p.executionId,s);v&&a.set(p.executionId,v)}let f=new Map;for(let[p,v]of ce(ie(s)))v.length===1&&f.set(p,B(v[0]));let o=ge(i,g,d,l,{stage:n,top:e.top,aspect:r,servePaths:a,testFiles:f});if(e.json)return t.out(JSON.stringify(he(o),null,2)),0;if(d.usecases_complete==="0/0")return t.out("nothing to measure yet \u2014 no live use-cases in the graph"),0;let m=t.isTTY&&process.stdout.columns?process.stdout.columns:100;for(let p of me(o,{width:m,color:t.isTTY}))t.out(p);return 0}async function Ie(e,t,s){let n=e.stage??"design";if(n!=="design"&&n!=="cover"&&n!=="all")return R(t,`--stage must be design | cover | all, got '${n}'`),2;if(e.top!==void 0&&(!Number.isInteger(e.top)||e.top<1))return R(t,"--top must be a positive integer"),2;let r=H(s,t);if(!r)return 2;let c,i;if(n!=="design"){let a=e.from?await J(e.from,s):await Ae(s);if(!a)return R(t,e.from?`no evidence pack at '${e.from}'`:`--stage ${n} needs an evidence pack \u2014 run a test first, or pass --from <pack> (live view: drop --flat)`),2;let f=await Q(a,"coverage/usecases.yaml");if(f==null)return R(t,`${B(a)} carries no coverage/usecases.yaml \u2014 re-run the tests to produce a coverage-bearing pack`),2;let o=W(f);if(!o||!Array.isArray(o.usecases))return R(t,`${B(a)}: coverage/usecases.yaml is not a usecases document`),2;c=o,i=B(a)}let d=K(r),l=await q(d,n,void 0,c),g=l.length;if(e.top!==void 0&&(l=l.slice(0,e.top)),e.json){let a=l.map(f=>Pe(d,f));return t.out(JSON.stringify({stage:n,...i?{pack:i}:{},total:g,rows:a},null,2)),0}return t.out(`gaps \u2014 stage ${n}${i?` \xB7 pack ${i}`:""} (${l.length}${l.length<g?` of ${g}`:""})`),l.length===0&&t.out(" nothing owed \u2014 design and execution are square"),l.forEach((a,f)=>{t.out(` ${String(f+1).padStart(2)}. [${a.risk}] ${a.tag} ${a.ref} \u2014 ${a.why}`),t.out(` \u2192 ${a.ready_command}`)}),0}function Pe(e,t){let s=e.resolve(t.ref),n=s?e.tipOf(s.cid):null,r=n?e.getNode(n)?.content:null;return{...t,id:n?e.displayNameOf(n)??e.displayNameOf(s.cid):null,title:String(r?.title??r?.text??"")}}export{Oe as gapsCommand};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import { createRequire } from 'module'; const require = createRequire(import.meta.url);
|
|
2
|
-
import{a,b,c}from"./chunk-DZPGG4S6.js";import"./chunk-5DT7PIGB.js";import"./chunk-R7QAS6LZ.js";import"./chunk-QOFZSHSC.js";import"./chunk-BKHXPBWN.js";import"./chunk-VMM4LC4V.js";import"./chunk-W4B5LOEX.js";import"./chunk-DNNZ353O.js";import"./chunk-2UIHS2FH.js";import"./chunk-Q2F5QB2W.js";import"./chunk-N2P4MI32.js";import"./chunk-NVGBE2DR.js";import"./chunk-TH47OOBV.js";import"./chunk-VAYBKR76.js";import"./chunk-CUM23TLF.js";import"./chunk-DUAXZYAD.js";import"./chunk-DBIBROYW.js";import"./chunk-WXHQYYD5.js";import"./chunk-IAHKTEET.js";import"./chunk-UD7KKHPW.js";import"./chunk-CH273NAE.js";import"./chunk-ZUGCHQFC.js";import"./chunk-UR6MHSHU.js";export{c as ingestCommand,b as runIngestCommand,a as runIngestWithResults};
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { createRequire } from 'module'; const require = createRequire(import.meta.url);
|
|
2
|
-
import{a as T}from"./chunk-C3T7TKAC.js";import"./chunk-IOD3HQVW.js";import"./chunk-KHU7C6EE.js";import"./chunk-3Q6WAK6P.js";import"./chunk-AFPHLUQ5.js";import"./chunk-AJ56AMT6.js";import"./chunk-DZPGG4S6.js";import"./chunk-F7ISS545.js";import"./chunk-7OYZR6JA.js";import"./chunk-JFAFKHDX.js";import"./chunk-BB2W35TW.js";import"./chunk-YKTYVJBN.js";import"./chunk-IMR64OCZ.js";import"./chunk-427OQS2N.js";import"./chunk-JZ26R6UL.js";import"./chunk-VGFTNLQQ.js";import"./chunk-L2TV4G56.js";import"./chunk-6KPPGMO2.js";import{c as P}from"./chunk-5DT7PIGB.js";import"./chunk-R7QAS6LZ.js";import"./chunk-QOFZSHSC.js";import"./chunk-BKHXPBWN.js";import"./chunk-5FJJJNJK.js";import"./chunk-VMM4LC4V.js";import"./chunk-W4B5LOEX.js";import"./chunk-DNNZ353O.js";import"./chunk-2UIHS2FH.js";import"./chunk-Q2F5QB2W.js";import"./chunk-N2P4MI32.js";import"./chunk-GFKCTYCA.js";import"./chunk-ZPDM6FO7.js";import"./chunk-NVGBE2DR.js";import"./chunk-L5LI2JF4.js";import"./chunk-TH47OOBV.js";import"./chunk-VAYBKR76.js";import"./chunk-CUM23TLF.js";import"./chunk-DUAXZYAD.js";import"./chunk-DBIBROYW.js";import"./chunk-WXHQYYD5.js";import"./chunk-IAHKTEET.js";import"./chunk-UD7KKHPW.js";import{a as $}from"./chunk-CH273NAE.js";import{a as R,b as A}from"./chunk-YTHQNN2L.js";import"./chunk-R5T4RLF5.js";import"./chunk-KBM3XHAM.js";import"./chunk-2YEHV2CX.js";import"./chunk-IDX3TOPY.js";import"./chunk-BKM2LWU2.js";import"./chunk-QIGPXYMF.js";import"./chunk-5EOX4MEY.js";import"./chunk-RZ4F3BHX.js";import"./chunk-ZUGCHQFC.js";import"./chunk-UR6MHSHU.js";async function J(e){let[{render:o},t,{QuestionBatchPrompt:r}]=await Promise.all([import("./build-JIKYOZUH.js"),import("./react-QWOAB3TB.js"),import("./ui-JEJGTURD.js")]),u=t.default??t;return new Promise(s=>{let g=o(u.createElement(r,{questions:e,onSubmit:m=>{g.unmount(),s(m)}}))})}async function S(e){let{createInterface:o}=await import("readline/promises"),t=o({input:process.stdin,output:process.stdout});try{return/^y(es)?$/i.test((await t.question(`${e} [y/N] `)).trim())}finally{t.close()}}async function K(e){let{createInterface:o}=await import("readline/promises"),t=o({input:process.stdin,output:process.stdout});try{process.stdout.write(`${e.message}
|
|
3
|
-
`),process.stdout.write(` 1. start at ${e.earliest} instead \u2014 the earliest uncommitted phase (recommended)
|
|
4
|
-
`),process.stdout.write(` 2. proceed anyway \u2014 noted on the record
|
|
5
|
-
`),process.stdout.write(` 3. cancel
|
|
6
|
-
`);let r=(await t.question("pick [1-3, \u23CE = 1] ")).trim();return r===""||r==="1"?"earliest":r==="2"?"proceed":"cancel"}finally{t.close()}}async function I(e){let{createInterface:o}=await import("readline/promises"),t=o({input:process.stdin,output:process.stdout});try{if(process.stdout.write(`${e.message}
|
|
7
|
-
`),e.wall==="already-designed"){process.stdout.write(` 1. view the existing design (recommended)
|
|
8
|
-
`),process.stdout.write(` 2. redesign \u2014 asks a reason; ${e.impactPairs} live pair(s) superseded
|
|
9
|
-
`),process.stdout.write(` 3. pick another use-case
|
|
10
|
-
`);let u=(await t.question("pick [1-3, \u23CE = 1] ")).trim();return u===""||u==="1"?{pick:"view"}:u==="2"?{pick:"redesign",because:(await t.question("because (reason for the redesign): ")).trim()}:{pick:"back"}}process.stdout.write(` 1. refresh first \u2014 evolve re-designs against the moved use-case (recommended)
|
|
11
|
-
`),process.stdout.write(` 2. proceed anyway \u2014 asks a reason, noted on the record
|
|
12
|
-
`),process.stdout.write(` 3. back
|
|
13
|
-
`);let r=(await t.question("pick [1-3, \u23CE = 1] ")).trim();return r===""||r==="1"?{pick:"refresh"}:r==="2"?{pick:"proceed",because:(await t.question("because (reason for proceeding): ")).trim()}:{pick:"back"}}finally{t.close()}}async function Z(e){let[{resolveAgentAuthEnv:o},{runAgent:t},{preflightTurn:r}]=await Promise.all([import("./spawner-GC5CFAJ7.js"),import("./bridge-JSKEO4N3.js"),import("./turn-preflight-JGYT7LXP.js")]),u=await o(),s=$(process.cwd()),{baseUrlAdvisory:g}=await import("./turn-preflight-JGYT7LXP.js"),m=g();m&&process.stderr.write(m+`
|
|
14
|
-
`);let i=A({verb:"design",mode:e.plan?"cli":"interactive",contextRoot:s,env:R(),resumeSid:e.resume,write:!0,longSession:!0}),h={...u,...i.spawnEnv()},k=await r(h);if(!k.ok)return process.stderr.write((k.message??"error: turn-endpoint preflight failed")+`
|
|
15
|
-
`),process.stderr.write(i.supportFooter()+`
|
|
16
|
-
`),i.error("preflight_auth"),await i.end({exit_code:2}),2;let C=async()=>k;if(e.plan){let n=await T({...e,confirmRetarget:S,askPhaseEntry:K,askDesignEntry:I},{contextDir:s,agent:t,preflightTurn:C,ask:J,out:a=>process.stdout.write(a+`
|
|
17
|
-
`),progress:a=>process.stderr.write(a+`
|
|
18
|
-
`),isTTY:P(),auth:h,telemetry:i});return n===1&&process.stderr.write(i.supportFooter()+`
|
|
19
|
-
`),await i.end({exit_code:n}),n}if(!e.resume&&e.useCase&&!e.phase){let[{openGraph:n},{designGate:a}]=await Promise.all([import("./readmodel-XOYGGQ3S.js"),import("./gate-54BRAE7N.js")]),p=n(s),c=a(p,e.useCase,!!e.force);if(!c.ok)if(c.wall){let{captureForceScope:H}=await import("./design-committer-VYT6NU3T.js"),d=await I({wall:c.wall.kind,message:c.message,display:c.wall.display,impactPairs:H(p,e.useCase).length});if(d.pick==="redesign"||d.pick==="proceed"){if(!d.because.trim())return process.stderr.write(`a redesign needs a reason (--because) \u2014 nothing executed
|
|
20
|
-
`),2;e={...e,force:!0,because:e.because??d.because.trim()}}else return d.pick==="view"?(process.stdout.write(`view the existing design: kane-cli context view ${c.wall.display}
|
|
21
|
-
`),0):d.pick==="refresh"?(process.stdout.write(`refresh it first: kane-cli maintain evolve ${c.wall.display}
|
|
22
|
-
`),0):(process.stdout.write(`nothing executed \u2014 list use-cases: kane-cli context list
|
|
23
|
-
`),0)}else return process.stderr.write(`design: ${c.message}
|
|
24
|
-
`),c.code}let[{render:F},D,{ScrollbackProvider:q},{ChatSurface:G},{ScrollbackTap:N},{makeChatController:V},{setInkExit:_},j]=await Promise.all([import("./build-JIKYOZUH.js"),import("./react-QWOAB3TB.js"),import("./scrollback-JLPJR25X.js"),import("./ChatSurface-E7QKI4LA.js"),import("./ScrollbackTap-Q3IOKNMS.js"),import("./chat-controller-T2FAI55V.js"),import("./exit-manager-XZL4KIJU.js"),Promise.all([import("./chat-committer-UUC6JTRJ.js"),import("./descriptor-OEUZZCOK.js"),import("./explain-UAAQWHYR.js"),import("./readmodel-XOYGGQ3S.js")])]),[{commitChatTurn:B},{topologyDescriptor:O},{explain:Q},{openGraph:y}]=j,b=D.default??D,l=V({commitChatTurn:B,descriptor:O("design"),contextDir:s,refreshGraph:()=>y(s),graph:y(s),explain:Q,by:{kind:"human",id:"owner"}}),{buildDossier:Y}=await import("./dossier-KTLTGT2X.js"),U=n=>{try{return Y(y(s),n)}catch{return null}},v={current:null},E=0,x=null,w=!1,z=()=>{if(E+=1,E>=2){try{f.unmount()}catch{}process.exit(130)}l.requestPause(),x=setTimeout(()=>{w||(w=!0,(async()=>{l.ledger({kind:"interrupted",detail:"the agent did not confirm the pause within 5s"}),await v.current?.flush();try{f.unmount()}catch{}process.exit(130)})())},5e3)},f=F(b.createElement(q,null,b.createElement(N,{into:v}),b.createElement(G,{controller:l,verb:"design",onCtrlC:z,inspect:U})),{exitOnCtrlC:!1});_(()=>f.unmount()),l.ledger({kind:"banner",text:`kane-cli design \xB7 ${e.useCase??e.resume??""}`});try{let n=T({...e,confirmRetarget:S},{contextDir:s,agent:t,preflightTurn:C,ask:p=>l.ask(p),out:p=>l.note(p),progress:()=>{},isTTY:P(),auth:h,chat:l,telemetry:i});n.finally(()=>{w=!0});let a=await n;return a===1&&process.stderr.write(i.supportFooter()+`
|
|
25
|
-
`),await i.end({exit_code:a}),a}finally{w=!0,x&&clearTimeout(x),await v.current?.flush();try{f.unmount()}catch{}}}export{Z as bindDesignInteractive};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import { createRequire } from 'module'; const require = createRequire(import.meta.url);
|
|
2
|
-
import{a,b,c,d,e,f,g,h,i}from"./chunk-ZBOWFJB2.js";import"./chunk-OR6MCL6Z.js";import"./chunk-WAOCHXJ5.js";import"./chunk-QIGPXYMF.js";import"./chunk-5EOX4MEY.js";import"./chunk-2WVKOZ6W.js";import"./chunk-NLCCBXXV.js";import"./chunk-RZ4F3BHX.js";import"./chunk-O75ZHGJG.js";import"./chunk-VT54ARGE.js";import"./chunk-ZUGCHQFC.js";import"./chunk-UR6MHSHU.js";export{d as emitNdjson,b as filterByName,g as formatAuthResolutionError,c as paginate,a as parsePagination,i as registerListCommands,e as renderTable,f as resolveTmsBasicAuth,h as validateCreateName};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import { createRequire } from 'module'; const require = createRequire(import.meta.url);
|
|
2
|
-
import{a}from"./chunk-UC7MNPIN.js";import"./chunk-4NFCAGRK.js";import"./chunk-RFHMDQXZ.js";import"./chunk-RZ4F3BHX.js";import"./chunk-O75ZHGJG.js";import"./chunk-VT54ARGE.js";import"./chunk-ZUGCHQFC.js";import"./chunk-UR6MHSHU.js";export{a as LoginFlow};
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import { createRequire } from 'module'; const require = createRequire(import.meta.url);
|
|
2
|
-
import{g as h}from"./chunk-OIYGGEUL.js";import{a as m,b as I,k as S,s as _}from"./chunk-RKWJG3WW.js";import{a as f}from"./chunk-AECMF3T2.js";import"./chunk-EHN5HTUD.js";import"./chunk-L5LI2JF4.js";import"./chunk-ZUGCHQFC.js";import"./chunk-UR6MHSHU.js";async function v(e,s={}){e.flushRecorder();let o=e.recorder?.lastWrittenPath??null;if(!o)return e.log("info","PERSIST_SKIPPED","No recorded path \u2014 recorder.flush no-op",{reason:e.sessionName?"recorder_flush_failed":"no_session_name",session_name:e.sessionName}),null;let p;try{p=_(o)}catch(t){throw e.log("error","PERSIST_RESOLVE_FAILED","resolveTestMd threw",{error:t.message,recorded_path:o}),t}let i=e.getRunsAsStepRecords(),u=e.getFlows(),a=[],c=0;for(let t=0;t<i.length;t++){let r=i[t],l=u.slice(c,c+r.totalRunDirs);c+=r.totalRunDirs;let g=l.find(n=>n.status==="failed"||n.status==="error"),T=g?"failed":l.length===0?"skipped":"passed";a.push({rootStepIndex:t+1,status:T,duration_s:l.reduce((n,E)=>n+(E.duration??0),0),reason:g?.reason})}let P=a.some(t=>t.status==="failed")?"failed":"passed",D=new f().load().code_export?.language==="javascript"?"javascript":"python",d=I(o);e.log("info","PERSIST_START","Building staging dir",{recorded_path:o,output_dir:d,session_dir:e.sessionDir,step_count:i.length,flow_count:u.length});try{await h({resolvedTest:p,sessionDir:e.sessionDir,stepRunRecords:i,outcomes:a,overallStatus:P,startedISO:e.startedAt,durationS:a.reduce((t,r)=>t+(r.duration_s??0),0),sessionId:e.sessionId,commitId:e.sessionId,tmsIds:{testId:e.testId??void 0,testcaseId:s.testcaseId,projectId:s.projectId,folderId:s.folderId,orgId:s.orgId??e.orgId??void 0,sessionName:e.sessionName??m(o)},codeExportDir:s.codeExportDir,codeExportLanguage:D,packTestDir:s.packTestDir}),e.log("info","PERSIST_STAGING_OK","Staging dir built",{output_dir:d}),S(d),e.log("info","PERSIST_OK","Persist complete",{output_dir:d})}catch(t){let r=t;e.log("error","PERSIST_FAILED","staging build / atomic replace failed",{error:r.message,stack:r.stack,output_dir:d}),process.stderr.write(`[persist] staging build / atomic replace failed: ${r.message}
|
|
3
|
-
`)}return{recordedTestPath:o,outputDir:d}}export{v as persistRecordedSession};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import { createRequire } from 'module'; const require = createRequire(import.meta.url);
|
|
2
|
-
import{a,b,c}from"./chunk-ORQNKZ2Z.js";import"./chunk-2YQ6TW77.js";import"./chunk-2WRBTLFN.js";import"./chunk-5DBK6QNS.js";import"./chunk-CJJXT5DO.js";import"./chunk-XWKUZJCP.js";import"./chunk-ZPDM6FO7.js";import"./chunk-NVGBE2DR.js";import"./chunk-EHN5HTUD.js";import"./chunk-L5LI2JF4.js";import"./chunk-TH47OOBV.js";import"./chunk-VAYBKR76.js";import"./chunk-CUM23TLF.js";import"./chunk-DUAXZYAD.js";import"./chunk-DBIBROYW.js";import"./chunk-WXHQYYD5.js";import"./chunk-IAHKTEET.js";import"./chunk-UD7KKHPW.js";import"./chunk-CH273NAE.js";import"./chunk-WAOCHXJ5.js";import"./chunk-2WVKOZ6W.js";import"./chunk-NLCCBXXV.js";import"./chunk-RZ4F3BHX.js";import"./chunk-O75ZHGJG.js";import"./chunk-ZUGCHQFC.js";import"./chunk-UR6MHSHU.js";export{c as UploadPipeline,b as packPresignEntry,a as readPackForUpload};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import { createRequire } from 'module'; const require = createRequire(import.meta.url);
|
|
2
|
-
import{a,b,c,d,e,f}from"./chunk-5ZQZOVWY.js";import"./chunk-7QJ75SYR.js";import"./chunk-AFBKGZFG.js";import"./chunk-OS4VSIHT.js";import"./chunk-TRJUD3XJ.js";import"./chunk-AFPHLUQ5.js";import"./chunk-W5TTF7GB.js";import"./chunk-JFAFKHDX.js";import"./chunk-JZ26R6UL.js";import"./chunk-CLGC7VEO.js";import"./chunk-5DT7PIGB.js";import"./chunk-VMM4LC4V.js";import"./chunk-W4B5LOEX.js";import"./chunk-DNNZ353O.js";import"./chunk-2UIHS2FH.js";import"./chunk-Q2F5QB2W.js";import"./chunk-N2P4MI32.js";import"./chunk-XWKUZJCP.js";import"./chunk-NVGBE2DR.js";import"./chunk-TH47OOBV.js";import"./chunk-VAYBKR76.js";import"./chunk-CUM23TLF.js";import"./chunk-DUAXZYAD.js";import"./chunk-DBIBROYW.js";import"./chunk-WXHQYYD5.js";import"./chunk-IAHKTEET.js";import"./chunk-UD7KKHPW.js";import"./chunk-CH273NAE.js";import"./chunk-ZUGCHQFC.js";import"./chunk-UR6MHSHU.js";export{c as childModeFor,d as emitWalkSignal,f as reconcileCommand,a as resolveReconcileMode,e as runReconcileCommand,b as validateReconcileInputs};
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import { createRequire } from 'module'; const require = createRequire(import.meta.url);
|
|
2
|
-
import{d as q}from"./chunk-5ZQZOVWY.js";import{a as J}from"./chunk-2WFZIQ62.js";import{j as K}from"./chunk-7QJ75SYR.js";import"./chunk-AFBKGZFG.js";import"./chunk-OS4VSIHT.js";import"./chunk-TRJUD3XJ.js";import"./chunk-AFPHLUQ5.js";import{a as b,b as Y}from"./chunk-ZMNJBUAO.js";import"./chunk-W5TTF7GB.js";import"./chunk-I7TIGB7K.js";import{a as W}from"./chunk-7OYZR6JA.js";import"./chunk-JFAFKHDX.js";import"./chunk-BB2W35TW.js";import"./chunk-YKTYVJBN.js";import"./chunk-JZ26R6UL.js";import"./chunk-CLGC7VEO.js";import"./chunk-5DT7PIGB.js";import"./chunk-VMM4LC4V.js";import"./chunk-W4B5LOEX.js";import"./chunk-DNNZ353O.js";import"./chunk-2UIHS2FH.js";import"./chunk-Q2F5QB2W.js";import"./chunk-N2P4MI32.js";import"./chunk-XWKUZJCP.js";import"./chunk-NVGBE2DR.js";import{A as D,d as V,h as G,o as M,p as H,t as U,u as F}from"./chunk-TH47OOBV.js";import"./chunk-VAYBKR76.js";import"./chunk-CUM23TLF.js";import{b as E}from"./chunk-DUAXZYAD.js";import"./chunk-DBIBROYW.js";import{e as A}from"./chunk-WXHQYYD5.js";import"./chunk-IAHKTEET.js";import"./chunk-UD7KKHPW.js";import"./chunk-CH273NAE.js";import{e as P}from"./chunk-IDX3TOPY.js";import"./chunk-ZUGCHQFC.js";import"./chunk-UR6MHSHU.js";import{existsSync as te,mkdirSync as re,readFileSync as N,readdirSync as ne,renameSync as ie,rmSync as le,writeFileSync as oe}from"fs";import{join as v}from"path";var ae=["title","description","summary","value"];function Q(e,t){let s=[],o=t.updated;if(!o)return s;for(let r of ae){let p=o[r];if(typeof p!="string"||p===e[r])continue;let g=e[r];typeof g=="string"&&g.length>0&&s.push({op:"-",field:r,text:g}),s.push({op:"+",field:r,text:p})}let i=(e.criteria??[]).map(String),u=o.criteria??[];if(u.length>0)if(u.some(r=>"op"in r))for(let r of u)r.op==="set"&&s.push({op:"+",field:"criteria",text:r.text}),r.op==="remove"&&s.push({op:"-",field:"criteria",text:r.text});else{let r=u.map(p=>p.text);for(let p of i)r.includes(p)||s.push({op:"-",field:"criteria",text:p});for(let p of r)i.includes(p)||s.push({op:"+",field:"criteria",text:p})}return s}function $(e){let t=e.filter(r=>r.field==="criteria"),s=t.filter(r=>r.op==="+").length,o=t.filter(r=>r.op==="-").length,i=[...new Set(e.filter(r=>r.field!=="criteria").map(r=>r.field))],u=[];return t.length>0&&u.push(`${t.length} criteria changed \xB7 +${s} \u2212${o}`),i.length>0&&u.push(`${i.join("/")} reworded`),u.join(" \xB7 ")||"no field changes"}var z={high:0,med:1,low:2};function B(e,t){return t?e.nameOf.get(t)??`${t.slice(0,19)}\u2026`:"(new)"}function O(e,t){if(!t)return;let s=e.edgesInto(t).filter(o=>o.type===A.BELONGS_TO||o.type===A.SCOPED_TO);if(s.length!==0)return{stale:s.length,direct:s.slice(0,3).map(o=>B(e,o.src))}}function X(e){return G(e).map(t=>({...t.source_id!==void 0?{source_id:t.source_id}:{},anchor:t.anchor,quote:t.quote??""}))}function S(e,t){let s=Y(e),o=[];for(let i of s.updates){let u=t.resolve(i.matches_existing.cid),r=u?t.tipOf(u.cid):null,p=(r?t.getNode(r)?.content:void 0)??{},g=Q(p,i);o.push({key:b("MODIFY",i.matches_existing.cid),kind:"MODIFY",...r?{ref:r}:{},display:B(t,r),title:typeof p.title=="string"?p.title:i.title,changeLine:i.change_note??$(g),diff:g,diffSummary:g.length>4?$(g):null,...i.risk!==void 0?{risk:i.risk}:{},cites:X(i),...i.matches_existing?.reason!==void 0?{tier:i.matches_existing.reason}:{},...O(t,r)!==void 0?{impact:O(t,r)}:{},payload:i})}for(let i of s.adds)o.push({key:b("ADD",i.temp_ref),kind:"ADD",display:"(new)",title:i.title,changeLine:i.summary??i.title,diff:[],diffSummary:null,...i.risk!==void 0?{risk:i.risk}:{},cites:X(i),payload:i});for(let i of s.archives){let u=t.resolve(i.target),r=u?t.tipOf(u.cid):null,p=(r?t.getNode(r)?.content:void 0)??{};o.push({key:b("ARCHIVE",i.target),kind:"ARCHIVE",...r?{ref:r}:{},display:B(t,r),title:typeof p.title=="string"?p.title:i.target,changeLine:i.reason,diff:[],diffSummary:null,...typeof p.risk=="string"?{risk:p.risk}:{},cites:[],reason:i.reason,basis:i.basis,...O(t,r)!==void 0?{impact:O(t,r)}:{}})}return o.sort((i,u)=>(z[i.risk??"low"]??2)-(z[u.risk??"low"]??2))}function j(e,t){return e.filter(s=>!(s.key in t))}async function Z(e){let{contextDir:t,graph:s,card:o,verdict:i,by:u}=e,r=null;if(o.kind!=="ADD"){let n=o.ref?s.resolve(o.ref):null;if(r=n?s.tipOf(n.cid):null,!r||(s.trust.get(r)??null)==="archived")return{ok:!1,refusal:`its target ${o.display} was retired while the review was open \u2014 nothing landed`}}if(i==="reject")return e.signals?.({ref:o.display,verdict:"reject",...e.note?{reason:e.note}:{}}),{ok:!0,landed:"none",note:"nothing saved \u2014 rejections aren't remembered yet; it may be re-proposed"};if(i==="defer"){let n=de({contextDir:t,card:o,note:e.note,changeBasis:e.changeBasis,tip:r,proposalId:e.proposalId});return n.ok?(e.signals?.({ref:o.display,verdict:"defer",...e.note?{reason:e.note}:{}}),{ok:!0,landed:"none",note:"gap recorded \u2014 visible in cover gaps until a later verdict resolves it"}):{ok:!1,refusal:n.refusal}}if(e.changeBasis?.to_cid){let n=s.resolve(e.changeBasis.source_id);if(!n)return{ok:!1,refusal:`the source ${e.changeBasis.source_id} no longer resolves \u2014 cannot verify this changeset is current; re-run maintain reconcile`};if(n.cid!==e.changeBasis.to_cid)return{ok:!1,refusal:`the source ${e.changeBasis.source_id} moved again while this review was open \u2014 re-run maintain reconcile to refresh the changeset`}}if(o.kind==="ARCHIVE"){let n=(e.proposal.archived??[]).filter(c=>{let y=s.resolve(c.target);return y!=null&&s.tipOf(y.cid)===r}),l=V({...e.proposal,archived:n},s);if(n.length===0||l.errors.length>0)return{ok:!1,refusal:l.errors.length>0?`${l.errors.map(c=>c.detail).join("; ")} \u2014 nothing landed; the card re-presents`:`its archive op no longer resolves to ${o.display} \u2014 re-run maintain reconcile`};let h;try{h=H({contextDir:t,graph:s,verdicts:new Map([[r,{resolution:"rejected",...o.reason??e.note?{reason:o.reason??e.note}:{}}]]),by:u})}catch(c){if(c instanceof E)return{ok:!1,refusal:"concurrent activity kept moving the store \u2014 try the card again"};throw c}return h.errors?{ok:!1,refusal:h.errors.map(c=>c.detail).join("; ")}:(e.signals?.({ref:o.display,verdict:"archive"}),F({contextDir:t,graph:s,targetTip:r,resolvedBy:r,...e.changeBasis?{sourceId:e.changeBasis.source_id}:{},by:u}),{ok:!0,landed:"archived"})}let p=o.payload,g=o.kind==="MODIFY"&&r&&p.matches_existing&&r!==p.matches_existing.cid?{...p,matches_existing:{...p.matches_existing,cid:r}}:p,R={version:1,read_basis:s.latestHash,source:e.proposal.source,...e.proposal.sources?{sources:e.proposal.sources}:{},use_cases:[g]},a=await W(J(t,e.sid??`card-${process.pid}`),{verb:"maintain",ucTargets:r?[{ref:r}]:[],newBuCandidates:o.kind==="ADD"?[{tempRef:g.temp_ref,title:g.title,probeText:`${g.title} ${g.summary??""}`.trim()}]:[],sourcePins:[],readBasis:s.latestHash},n=>{let l=M({contextDir:t,graph:n.graph,proposal:R,proposalId:`${e.proposalId}:${o.key}`,verdicts:new Map([[g.temp_ref,{resolution:"approved"}]]),by:u,autoName:!0,allowStaleBasis:!0,eventIds:n.eventIds("maintain",1),...e.sid?{sid:n.sid}:{},probeHits:n.probeHits});return l.errors!==null?{errors:l.errors}:{result:l,record:l.record}});if(!a.ok||!("result"in a))return{ok:!1,refusal:!a.ok&&a.kind==="validation"?a.errors.map(l=>l.detail).join("; "):"concurrent activity kept moving the store \u2014 try the card again"};e.signals?.({ref:o.display,verdict:"approve"});let d=a.result.record?.nodes.find(n=>n.label==="usecase")?.cid,f=o.kind==="MODIFY"?d??r??void 0:d;return o.kind==="MODIFY"&&r&&F({contextDir:t,graph:s,targetTip:r,resolvedBy:d??r,...e.changeBasis?{sourceId:e.changeBasis.source_id}:{},by:u}),{ok:!0,landed:o.kind==="MODIFY"?"successor":"minted",...f?{offer:{kind:o.kind==="MODIFY"?"evolve":"design",target:f}}:{}}}function de(e){let{card:t,changeBasis:s}=e,o={kind:"reconcile_deferred",derived:!0,text:t.changeLine||t.title,...t.risk?{risk:t.risk}:{},...e.note?{risk_rationale:e.note}:{},...e.tip?{ref:t.display,uc:e.tip}:{},...s?{basis:{source_id:s.source_id,from_cid:s.from_cid??"",to_cid:s.to_cid??""}}:{},...e.proposalId?{proposal_id:e.proposalId}:{},...t.payload?.temp_ref?{temp_ref:t.payload.temp_ref}:{}};return U({contextDir:e.contextDir,content:o,...e.tip?{annotates:e.tip}:{}})}function se(e,t){return v(e,"proposals",t,"verdicts.json")}function C(e,t){try{return JSON.parse(N(se(e,t),"utf8"))}catch{return{verdicts:{}}}}function ee(e,t,s){let o=v(e,"proposals",t);re(o,{recursive:!0});let i=v(o,`.verdicts.${process.pid}.tmp`);oe(i,JSON.stringify(s,null,2)+`
|
|
3
|
-
`),ie(i,se(e,t))}function T(e,t){try{return JSON.parse(N(v(e,"proposals",t,"proposal.json"),"utf8"))}catch{return null}}function L(e,t){let s=v(e,"sessions");if(!te(s))return null;for(let o of ne(s)){let i;try{i=P(e,o)}catch{continue}if(!i?.reconcile||new Date(i.expires_at).getTime()<=Date.now()||C(e,i.reconcile.proposal_id).resolved)continue;let r=i.change_basis?.source_id??Object.keys(i.read_basis)[0]??"";if(!(t!==void 0&&r!==t))return{sid:i.sid,proposalId:i.reconcile.proposal_id,source:r,...i.change_basis?{changeBasis:{source_id:i.change_basis.source_id,to_cid:i.change_basis.new_head}}:{}}}return null}var fe=80;function pe(e){return{kind:e.kind,ref:e.display,title:e.kind==="ADD"?e.title:`${e.display} \xB7 ${e.title}`,why:e.changeLine,origin:"content-change",...e.tier!==void 0?{tier:e.tier}:{},...e.diffSummary==null&&e.diff.length>0?{diff:e.diff}:{},...e.diffSummary!=null?{diffSummary:e.diffSummary,viewDiff:!0}:{},...e.cites.length>0?{citeLines:e.cites.map(t=>`cite ${t.source_id??"conversation"} ${t.anchor} \u2014 "${t.quote.slice(0,fe)}"`)}:{},...e.impact?{impact:{stale_refs:Array(e.impact.stale).fill("\xB7"),...e.impact.direct.length>0?{direct_refs:e.impact.direct}:{}}}:{}}}function Be(e){let t=e.contextDir,s=e.changeContext?.source_id,o=new Map;e.changeContext&&o.set(e.changeContext.source_id,e.changeContext.old_head);let i=a=>{let d=o.get(a);if(d)return d;try{let f=K(t,a);return f&&o.set(a,f.old_head),f?.old_head}catch{return}},u=v(t,"proposals",".reconcile-steer-carry.json"),r=()=>{try{return JSON.parse(N(u,"utf8"))}catch{return null}},p=(a,d,f)=>{let n=r();if(!n||n.source!==f)return d;let l=C(t,a),h=!1;for(let c of d)(n.keys.includes(c.key)||c.kind==="ADD"&&n.addTitles.includes(c.title.toLowerCase()))&&!(c.key in l.verdicts)&&(l.verdicts[c.key]={verdict:"steer",at:new Date().toISOString()},h=!0);h&&ee(t,a,l);try{le(u)}catch{}return d},g=(a,d)=>{let f=T(t,a);if(!f)return[];let n=p(a,S(f,D(t)),d),l=C(t,a);return j(n,l.verdicts)},R=()=>{let a=v(t,"sessions");if(!te(a))return null;for(let d of ne(a)){let f;try{f=P(t,d)}catch{continue}if(!f||new Date(f.expires_at).getTime()<=Date.now())continue;let n=(f.ingest_schedule??[]).filter(l=>l.status==="skipped"&&(l.note??"").includes("review"));if(n.length>0)return{source:n[0].source_id,count:n.length}}return null};return{pending(){let a=L(t,s);if(a){let f=g(a.proposalId,a.source).length;return f>0?{source:a.source,count:f,kind:"cards"}:null}let d=R();return d?{source:d.source,count:d.count,kind:"needs-run"}:null},loadCards(){let a=L(t,s);if(!a)return[];let d=g(a.proposalId,a.source),f=d.filter(n=>n.kind==="ADD"||n.ref!=null);for(let n of d.filter(l=>l.kind!=="ADD"&&l.ref==null))e.note?.(`dropped: [${n.kind}] ${n.title} \u2014 its target was retired while the review was open; nothing lands`);return f.map(n=>({key:n.key,card:pe(n),viewLines:n.diff}))},noteSteer(){let a=L(t,s);if(!a)return;let d=T(t,a.proposalId);if(!d)return;let f=C(t,a.proposalId),n=S(d,D(t)).filter(c=>c.key in f.verdicts),l={source:a.source,keys:n.map(c=>c.key),addTitles:n.filter(c=>c.kind==="ADD").map(c=>c.title.toLowerCase())},h=`${u}.${process.pid}.tmp`;re(v(t,"proposals"),{recursive:!0}),oe(h,JSON.stringify(l,null,2)+`
|
|
4
|
-
`),ie(h,u)},async applyVerdict(a,d,f){let n=L(t,s);if(!n)return{ok:!1,refusal:"the held changeset is gone \u2014 nothing to verdict"};let l=T(t,n.proposalId);if(!l)return{ok:!1,refusal:`proposal ${n.proposalId} is unreadable \u2014 re-run maintain reconcile`};if(a in C(t,n.proposalId).verdicts)return{ok:!1,refusal:"that change was already verdicted (another surface?) \u2014 refresh the review"};let h=D(t),c=S(l,h).find(x=>x.key===a);if(!c)return{ok:!1,refusal:"that change no longer builds a card \u2014 the set may have moved; re-open the review"};let y=i(n.source),I=n.changeBasis?{source_id:n.changeBasis.source_id,...y?{from_cid:y}:{},...n.changeBasis.to_cid?{to_cid:n.changeBasis.to_cid}:{}}:void 0,m=await Z({contextDir:t,graph:h,proposal:l,proposalId:n.proposalId,card:c,verdict:d,...f?{note:f}:{},by:{kind:"human",id:"owner"},sid:n.sid,...I?{changeBasis:I}:{},signals:x=>q(t,x.ref,x.verdict,x.reason)});if(!m.ok)return{ok:!1,refusal:m.refusal};let k=C(t,n.proposalId);return k.verdicts[a]={verdict:d,...f?{note:f}:{},at:new Date().toISOString()},j(S(l,D(t)),k.verdicts).length===0&&(k.resolved=!0),ee(t,n.proposalId,k),{ok:!0,line:`${d==="approve"?c.kind==="ARCHIVE"?"retired":"approved":d==="reject"?"rejected":"deferred"} change \xB7 [${c.kind}] ${c.display}${c.kind==="ADD"?"":` ${c.title}`} (you)`,...m.note?{note:m.note}:{},...m.offer&&m.offer.target?{offer:{kind:m.offer.kind,key:m.offer.target,title:c.kind==="ADD"?c.title:c.display}}:{}}},async startReview(a){let d=e.runPostureChild??(async(l,h)=>{let[{runExtract:c},{runAgent:y},{resolveAgentAuthEnv:I},{preflightTurn:m}]=await Promise.all([import("./run-TFRWPGXP.js"),import("./bridge-JSKEO4N3.js"),import("./spawner-GC5CFAJ7.js"),import("./turn-preflight-JGYT7LXP.js")]),k=await I();return c({mode:"override",posture:"reconcile",source:l,changeContext:h},{contextDir:t,agent:y,preflightTurn:()=>m(k),ask:async _=>_.map(w=>({id:w.id,selected_index:w.recommended_index,free_text:null})),review:async _=>new Map(_.map(w=>[w.temp_ref,{resolution:"skipped"}])),confirmStale:async()=>!0,out:_=>e.note?.(_),progress:()=>{},isTTY:!1,auth:k})}),{buildChangeContext:f}=await import("./reconcile-engine-JQNXALNY.js"),n=f(t,a);return n?(o.set(a,n.old_head),d(a,n)):(e.note?.(`no change context for ${a} \u2014 nothing to review`),2)}}}export{Be as makeReconcileDeps,C as readVerdictLedger,pe as toWalkCard};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import { createRequire } from 'module'; const require = createRequire(import.meta.url);
|
|
2
|
-
import{a,b,c,d,e,f,g,h,i,j,k,l,m,n,o}from"./chunk-7QJ75SYR.js";import"./chunk-AFBKGZFG.js";import"./chunk-OS4VSIHT.js";import"./chunk-TRJUD3XJ.js";import"./chunk-AFPHLUQ5.js";import"./chunk-JFAFKHDX.js";import"./chunk-JZ26R6UL.js";import"./chunk-5DT7PIGB.js";import"./chunk-DNNZ353O.js";import"./chunk-XWKUZJCP.js";import"./chunk-NVGBE2DR.js";import"./chunk-TH47OOBV.js";import"./chunk-VAYBKR76.js";import"./chunk-CUM23TLF.js";import"./chunk-DUAXZYAD.js";import"./chunk-DBIBROYW.js";import"./chunk-WXHQYYD5.js";import"./chunk-IAHKTEET.js";import"./chunk-UD7KKHPW.js";import"./chunk-CH273NAE.js";import"./chunk-UR6MHSHU.js";export{g as EVOLVABLE,d as RECONCILE_NOTE_CHANGED,c as RECONCILE_SKIPPED_ARMS,j as buildChangeContext,l as buildReconcilePlan,i as capDiff,a as commitHeldRows,k as commitOneHeldRow,e as isLive,h as lineDiff,o as liveReextractSeam,m as liveReingestSeam,n as liveRemoteReingestSeam,f as parentUc,b as rowImpactOf};
|
package/dist/run-GMZCDRDD.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import { createRequire } from 'module'; const require = createRequire(import.meta.url);
|
|
2
|
-
import{a}from"./chunk-C3T7TKAC.js";import"./chunk-IOD3HQVW.js";import"./chunk-KHU7C6EE.js";import"./chunk-3Q6WAK6P.js";import"./chunk-AFPHLUQ5.js";import"./chunk-AJ56AMT6.js";import"./chunk-DZPGG4S6.js";import"./chunk-F7ISS545.js";import"./chunk-7OYZR6JA.js";import"./chunk-JFAFKHDX.js";import"./chunk-BB2W35TW.js";import"./chunk-YKTYVJBN.js";import"./chunk-IMR64OCZ.js";import"./chunk-427OQS2N.js";import"./chunk-JZ26R6UL.js";import"./chunk-VGFTNLQQ.js";import"./chunk-L2TV4G56.js";import"./chunk-6KPPGMO2.js";import"./chunk-5DT7PIGB.js";import"./chunk-R7QAS6LZ.js";import"./chunk-QOFZSHSC.js";import"./chunk-BKHXPBWN.js";import"./chunk-5FJJJNJK.js";import"./chunk-VMM4LC4V.js";import"./chunk-W4B5LOEX.js";import"./chunk-DNNZ353O.js";import"./chunk-2UIHS2FH.js";import"./chunk-Q2F5QB2W.js";import"./chunk-N2P4MI32.js";import"./chunk-GFKCTYCA.js";import"./chunk-ZPDM6FO7.js";import"./chunk-NVGBE2DR.js";import"./chunk-L5LI2JF4.js";import"./chunk-TH47OOBV.js";import"./chunk-VAYBKR76.js";import"./chunk-CUM23TLF.js";import"./chunk-DUAXZYAD.js";import"./chunk-DBIBROYW.js";import"./chunk-WXHQYYD5.js";import"./chunk-IAHKTEET.js";import"./chunk-UD7KKHPW.js";import"./chunk-CH273NAE.js";import"./chunk-IDX3TOPY.js";import"./chunk-5EOX4MEY.js";import"./chunk-ZUGCHQFC.js";import"./chunk-UR6MHSHU.js";export{a as runDesign};
|
package/dist/run-TFRWPGXP.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import { createRequire } from 'module'; const require = createRequire(import.meta.url);
|
|
2
|
-
import{a as b,b as c,c as d,d as e,e as f,f as g,g as h}from"./chunk-53IBTIL3.js";import"./chunk-ZMNJBUAO.js";import"./chunk-W5TTF7GB.js";import"./chunk-I7TIGB7K.js";import{d as a}from"./chunk-AJ56AMT6.js";import"./chunk-DZPGG4S6.js";import"./chunk-F7ISS545.js";import"./chunk-7OYZR6JA.js";import"./chunk-JFAFKHDX.js";import"./chunk-BB2W35TW.js";import"./chunk-YKTYVJBN.js";import"./chunk-IMR64OCZ.js";import"./chunk-427OQS2N.js";import"./chunk-VGFTNLQQ.js";import"./chunk-L2TV4G56.js";import"./chunk-6KPPGMO2.js";import"./chunk-5DT7PIGB.js";import"./chunk-R7QAS6LZ.js";import"./chunk-QOFZSHSC.js";import"./chunk-BKHXPBWN.js";import"./chunk-DBKNJRJG.js";import"./chunk-5FJJJNJK.js";import"./chunk-VMM4LC4V.js";import"./chunk-W4B5LOEX.js";import"./chunk-DNNZ353O.js";import"./chunk-2UIHS2FH.js";import"./chunk-Q2F5QB2W.js";import"./chunk-N2P4MI32.js";import"./chunk-GFKCTYCA.js";import"./chunk-NVGBE2DR.js";import"./chunk-TH47OOBV.js";import"./chunk-VAYBKR76.js";import"./chunk-CUM23TLF.js";import"./chunk-DUAXZYAD.js";import"./chunk-DBIBROYW.js";import"./chunk-WXHQYYD5.js";import"./chunk-IAHKTEET.js";import"./chunk-UD7KKHPW.js";import"./chunk-CH273NAE.js";import"./chunk-IDX3TOPY.js";import"./chunk-5EOX4MEY.js";import"./chunk-ZUGCHQFC.js";import"./chunk-UR6MHSHU.js";export{g as dedupPreFlags,c as deliveredImagesWire,e as displaySourceName,b as extractProtocolCtx,a as resolveAnswers,h as runExtract,d as sessionSourceRef,f as sourceBanner};
|
package/dist/spawner-GC5CFAJ7.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import { createRequire } from 'module'; const require = createRequire(import.meta.url);
|
|
2
|
-
import{a,b,c,d}from"./chunk-DBKNJRJG.js";import"./chunk-5FJJJNJK.js";import"./chunk-UD7KKHPW.js";import"./chunk-ZUGCHQFC.js";import"./chunk-UR6MHSHU.js";export{c as buildAgentEnv,b as findAssuranceAgent,a as platformPackageName,d as resolveAgentAuthEnv};
|