@testmuai/kane-cli 0.8.18 → 0.8.20
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-SY7HJD46.js → ChatSurface-757LHEYF.js} +1 -1
- package/dist/{ChromeProfilePicker-NCIURJK6.js → ChromeProfilePicker-UAMRJG2H.js} +1 -1
- package/dist/{CliFeedbackPrompt-TTVW5COG.js → CliFeedbackPrompt-NAPKBEOP.js} +1 -1
- package/dist/{CliUploadProgress-E3WEIF36.js → CliUploadProgress-R6FHYXP5.js} +1 -1
- package/dist/{ConfigView-ZY37EGAO.js → ConfigView-CKYIRJBS.js} +1 -1
- package/dist/{EvidenceViewOffer-6KT64W7L.js → EvidenceViewOffer-M3DAU4YU.js} +1 -1
- package/dist/FolderPicker-I2E2EJON.js +2 -0
- package/dist/{InfoBox-JP3TTPIO.js → InfoBox-WKFPWFII.js} +1 -1
- package/dist/{LinksBox-4ZB7G5ET.js → LinksBox-MQOD3X3E.js} +1 -1
- package/dist/{ProfilesView-25AXMCKS.js → ProfilesView-PLO2SBGI.js} +1 -1
- package/dist/{ProjectPicker-RL3LXLTV.js → ProjectPicker-QT2IENIZ.js} +1 -1
- package/dist/{SaveSessionPrompt-5W4ATISN.js → SaveSessionPrompt-BRNUVO5J.js} +1 -1
- package/dist/SingleShotApp-CQWGPSLT.js +2 -0
- package/dist/{SummaryBox-GW4XAX5T.js → SummaryBox-7OBZAVJU.js} +1 -1
- package/dist/TestMdRunView-GIOPBTA6.js +2 -0
- package/dist/{TestrunEvidenceTable-SYCFAGM4.js → TestrunEvidenceTable-PKFPTUZX.js} +1 -1
- package/dist/{WhoamiView-H2DRYRRA.js → WhoamiView-CINKGNTV.js} +1 -1
- package/dist/{app-download-2IZ4GPTA.js → app-download-KLCWIQWJ.js} +1 -1
- package/dist/{auth-6PKLNV6Z.js → auth-L7PFZJBY.js} +1 -1
- package/dist/{binary-OMBH4UTI.js → binary-25KA3XAX.js} +1 -1
- package/dist/{bind-IHLHM5UM.js → bind-N5QZUUUU.js} +2 -2
- package/dist/{bootstrap-UKZX3LRC.js → bootstrap-545GY5CC.js} +1 -1
- package/dist/bridge-VNFL4T6K.js +2 -0
- package/dist/{changelog-ZWOIODQ4.js → changelog-ABQ5HREB.js} +1 -1
- package/dist/{chunk-7DSZ2YSD.js → chunk-2TNMV4BX.js} +1 -1
- package/dist/{chunk-6OIC4S3C.js → chunk-3Q5IQXOI.js} +1 -1
- package/dist/{chunk-5RJ2J5QU.js → chunk-47ZPSTT6.js} +1 -1
- package/dist/{chunk-WTAJTPI5.js → chunk-4K44ZIC4.js} +1 -1
- package/dist/{chunk-4JRCAHHB.js → chunk-4L45IQNU.js} +1 -1
- package/dist/{chunk-MSLYSXGM.js → chunk-4ZVGZF2L.js} +1 -1
- package/dist/{chunk-GUFIE3Z2.js → chunk-56UYK35Z.js} +1 -1
- package/dist/{chunk-6FEEYKSE.js → chunk-5FCXFSAO.js} +1 -1
- package/dist/{chunk-ZMM3Y6U7.js → chunk-5UCXN56I.js} +1 -1
- package/dist/{chunk-RBVLIMOV.js → chunk-5WZ2WOOM.js} +1 -1
- package/dist/{chunk-WWVHK7OA.js → chunk-6MTKXDTH.js} +1 -1
- package/dist/{chunk-AK7BMF5T.js → chunk-6V4ANMW4.js} +1 -1
- package/dist/{chunk-ZARM7ESN.js → chunk-7BKOTLIL.js} +1 -1
- package/dist/{chunk-LHU6TEKD.js → chunk-7SV2NQZV.js} +1 -1
- package/dist/chunk-7XC5IQN6.js +95 -0
- package/dist/{chunk-7ZSHB3AN.js → chunk-A55WPXDZ.js} +1 -1
- package/dist/{chunk-DKPRWI7U.js → chunk-ALK3OUGN.js} +2 -2
- package/dist/{chunk-EW3KRQGF.js → chunk-ARCYAF37.js} +1 -1
- package/dist/{chunk-JMWRMDSI.js → chunk-AXJ47YFH.js} +1 -1
- package/dist/{chunk-WAZUOA3Y.js → chunk-BNWU7JOW.js} +1 -1
- package/dist/{chunk-4B3EHSTD.js → chunk-CLLLLX4F.js} +1 -1
- package/dist/{chunk-YAUR5CBH.js → chunk-CVXVFF2G.js} +1 -1
- package/dist/{chunk-EYVHPJLK.js → chunk-CXXTQ4C5.js} +1 -1
- package/dist/{chunk-6VB4FGBZ.js → chunk-DCLMFWCF.js} +1 -1
- package/dist/{chunk-7PLIZBXB.js → chunk-DFHVZZI3.js} +1 -1
- package/dist/{chunk-G76O7C56.js → chunk-DVYQVSNS.js} +1 -1
- package/dist/{chunk-7ZKVI4US.js → chunk-E6MW25UV.js} +1 -1
- package/dist/{chunk-H5N25XIT.js → chunk-EPVK2NMQ.js} +1 -1
- package/dist/{chunk-ZO75BQ3Z.js → chunk-EV3EU2MT.js} +1 -1
- package/dist/{chunk-5WUDW6BG.js → chunk-FD5TFGJX.js} +1 -1
- package/dist/{chunk-C3GDK2OS.js → chunk-FNJJGQUI.js} +1 -1
- package/dist/{chunk-EKZI5HZV.js → chunk-FYW7USQY.js} +1 -1
- package/dist/{chunk-L4U7NP5Q.js → chunk-G5Q4EJAT.js} +1 -1
- package/dist/{chunk-YNOADDF7.js → chunk-I3NUTW6U.js} +1 -1
- package/dist/{chunk-UUS5AK6L.js → chunk-IHVIIRW5.js} +2 -2
- package/dist/{chunk-SYKS57PK.js → chunk-ISBISZUE.js} +1 -1
- package/dist/{chunk-J3OGBEEP.js → chunk-IYOL2FUH.js} +1 -1
- package/dist/{chunk-DH3H6GWD.js → chunk-JKQX7DUC.js} +1 -1
- package/dist/chunk-K3EN7O5N.js +26 -0
- package/dist/{chunk-OVL4WXGF.js → chunk-K4D5BB63.js} +1 -1
- package/dist/{chunk-UAEU5IPH.js → chunk-LJ5O7DZ7.js} +2 -2
- package/dist/{chunk-NXZPWMK5.js → chunk-LPVAOUAC.js} +1 -1
- package/dist/{chunk-5NZUMWUD.js → chunk-M5V464PU.js} +2 -2
- package/dist/{chunk-WQV5SM5P.js → chunk-N3MZALFQ.js} +1 -1
- package/dist/{chunk-EHOYD6VL.js → chunk-NFQ67CQO.js} +3 -3
- package/dist/{chunk-5B2NEYHF.js → chunk-OGWYTILK.js} +2 -2
- package/dist/{chunk-UQ6A52ML.js → chunk-OWPQZP4C.js} +1 -1
- package/dist/{chunk-VH73F65W.js → chunk-P6HK7GSS.js} +7 -6
- package/dist/{chunk-MMLYJDXO.js → chunk-PCBCEXYO.js} +1 -1
- package/dist/{chunk-NYP7QV54.js → chunk-PN4EL4JN.js} +1 -1
- package/dist/{chunk-H7A4R7WY.js → chunk-PP4I2Z6M.js} +1 -1
- package/dist/{chunk-YPEIPCQY.js → chunk-PY4BWRR6.js} +1 -1
- package/dist/{chunk-IFQD53QB.js → chunk-Q5PQ7U3W.js} +1 -1
- package/dist/{chunk-CHA75LBJ.js → chunk-QBU5B4GH.js} +1 -1
- package/dist/chunk-R54VY272.js +6 -0
- package/dist/{chunk-TSNQLZE3.js → chunk-R5UVQMMP.js} +1 -1
- package/dist/{chunk-4R5U7CHE.js → chunk-R6RK32R2.js} +1 -1
- package/dist/{chunk-47FQ7ZUQ.js → chunk-RMLC3QWX.js} +1 -1
- package/dist/{chunk-ALHCB3LL.js → chunk-RPJUE54T.js} +1 -1
- package/dist/{chunk-4BKSQFEP.js → chunk-RTD27WRG.js} +1 -1
- package/dist/{chunk-PVJB7CVS.js → chunk-RV3KMXUX.js} +1 -1
- package/dist/{chunk-GESZSIB6.js → chunk-SA7ORQHP.js} +1 -1
- package/dist/{chunk-QX5LJVTD.js → chunk-SBSANJ2T.js} +2 -2
- package/dist/{chunk-DDLEZGZB.js → chunk-SHXJQ73O.js} +1 -1
- package/dist/{chunk-EJBJ7MYC.js → chunk-T27HVHZA.js} +1 -1
- package/dist/{chunk-UE5EYEFI.js → chunk-T7UACVWW.js} +1 -1
- package/dist/{chunk-EA2LT5OJ.js → chunk-TEJG5H2O.js} +1 -1
- package/dist/{chunk-BXM5GDIO.js → chunk-TFGGJSTI.js} +2 -2
- package/dist/{chunk-IGLCR4J2.js → chunk-U7WMRB5V.js} +1 -1
- package/dist/{chunk-PMBQU63H.js → chunk-UFWG6VMI.js} +1 -1
- package/dist/{chunk-SBQUEGTP.js → chunk-UUT7EHLT.js} +1 -1
- package/dist/{chunk-XYMUKOKK.js → chunk-UVR7MESH.js} +1 -1
- package/dist/{chunk-IQCW5SV5.js → chunk-UYTBGBT4.js} +1 -1
- package/dist/{chunk-MVOO7RPO.js → chunk-VKFLER7N.js} +1 -1
- package/dist/{chunk-4ANRRDC7.js → chunk-VL7LPZVI.js} +1 -1
- package/dist/{chunk-PDXZROJM.js → chunk-W3USRQX6.js} +1 -1
- package/dist/{chunk-F3IWJ73B.js → chunk-X77AR3IL.js} +1 -1
- package/dist/{chunk-LQMA6N5S.js → chunk-XSZH2K3E.js} +1 -1
- package/dist/{chunk-2LKSDGWA.js → chunk-Y67FYNLP.js} +1 -1
- package/dist/chunk-YKYHVRM2.js +5 -0
- package/dist/{chunk-7BMM5DFP.js → chunk-YL5J3SNK.js} +1 -1
- package/dist/{chunk-ZV5KM7LI.js → chunk-YV6CSSWA.js} +1 -1
- package/dist/{chunk-ZW3JBY5E.js → chunk-ZXP2TJEJ.js} +4 -4
- package/dist/{config-ODCFEOAN.js → config-A6MBUY54.js} +1 -1
- package/dist/{cover-cmd-AQ7PWJRH.js → cover-cmd-TIY53OMC.js} +1 -1
- package/dist/{credentials-MUZUCSJJ.js → credentials-GXICFDVV.js} +1 -1
- package/dist/{deps-bundle-7COKI7UV.js → deps-bundle-RDGQAIGD.js} +1 -1
- package/dist/{deps-resolve-ADN7P5L7.js → deps-resolve-52BOL7G6.js} +1 -1
- package/dist/{dispatch-V24LFEAO.js → dispatch-GJ7RVYPK.js} +1 -1
- package/dist/{doctor-3BRZM4EW.js → doctor-XNI2NZZJ.js} +1 -1
- package/dist/evidence-QYJ7SQR6.js +2 -0
- package/dist/{evolve-cmd-IR7UGOD2.js → evolve-cmd-2LM6NKMY.js} +1 -1
- package/dist/{explain-cmd-NNYKSAQK.js → explain-cmd-LQ5CHHNY.js} +1 -1
- package/dist/{extract-bind-2GGLO5KU.js → extract-bind-NWA4PSTU.js} +2 -2
- package/dist/{extract-cmd-2BQJ2HNT.js → extract-cmd-Q5PZS626.js} +1 -1
- package/dist/{gaps-cmd-Y6CZUCIX.js → gaps-cmd-UKMO7KYX.js} +1 -1
- package/dist/{generate-headless-SPGLBRH5.js → generate-headless-CLKY4IAU.js} +2 -2
- package/dist/index.js +121 -121
- package/dist/{ingest-cmd-N37FGNP5.js → ingest-cmd-JZNVRFFS.js} +1 -1
- package/dist/install-FLC6WLPZ.js +2 -0
- package/dist/{interactive-bind-ZLO6S2SG.js → interactive-bind-7JMBM3OK.js} +3 -3
- package/dist/{lifecycle-cmd-6TWIQCKR.js → lifecycle-cmd-VMZKHC2Y.js} +1 -1
- package/dist/{list-cmd-NDD2OSP5.js → list-cmd-3XDCASJH.js} +1 -1
- package/dist/{list-commands-AARQ2RZG.js → list-commands-QURMKZZH.js} +1 -1
- package/dist/login-flow-BPT46DCE.js +2 -0
- package/dist/{maintenance-cmd-4QUVSGUY.js → maintenance-cmd-MQ4GCVDU.js} +1 -1
- package/dist/{mobile-prompts-GYJS5BYX.js → mobile-prompts-VXNHSCAH.js} +1 -1
- package/dist/{objective-variable-gate-FUVNHKRA.js → objective-variable-gate-BDSG2BEA.js} +1 -1
- package/dist/{open-provider-QTPN6XOL.js → open-provider-ZYBUD6JW.js} +1 -1
- package/dist/{persist-recorded-session-UFK5VC7S.js → persist-recorded-session-NV2ULVPH.js} +1 -1
- package/dist/{pipeline-Z477UOXV.js → pipeline-STTNBJC4.js} +1 -1
- package/dist/prepare-target-CRO3BGAP.js +2 -0
- package/dist/{reconcile-cmd-NDLEM54D.js → reconcile-cmd-VQTFUGEJ.js} +1 -1
- package/dist/{reconcile-deps-APR2LE3C.js → reconcile-deps-SE6COSXQ.js} +2 -2
- package/dist/{reconcile-engine-C72AP4WS.js → reconcile-engine-GLKGQEVR.js} +1 -1
- package/dist/{recording-banner-AZOKNSU3.js → recording-banner-WZECSZJM.js} +1 -1
- package/dist/registry-GQEYUEQJ.js +2 -0
- package/dist/{require-project-folder-LTVPPY3Q.js → require-project-folder-OFA4F2T5.js} +1 -1
- package/dist/{resolve-run-intent-XX6O3RYT.js → resolve-run-intent-M7EXFU7E.js} +1 -1
- package/dist/{resolver-XMASFMID.js → resolver-TZAQGCFJ.js} +1 -1
- package/dist/{review-cmd-4TNBQDJU.js → review-cmd-RXD2RWKN.js} +1 -1
- package/dist/{run-XXA7ILIM.js → run-DVBOAY7S.js} +1 -1
- package/dist/{run-EOIV3OQE.js → run-VF2MBI6M.js} +1 -1
- package/dist/{run-test-md-GVRVMPRZ.js → run-test-md-Z75BGXRK.js} +2 -2
- package/dist/{skill-installer-AWQT3LM2.js → skill-installer-FEOJ4KX3.js} +1 -1
- package/dist/{spawner-O3VKHYUY.js → spawner-XHE7OXNW.js} +1 -1
- package/dist/{store-guard-MHWBXA4C.js → store-guard-HIBKFC2T.js} +1 -1
- package/dist/{sync-cmd-P2CL6YA6.js → sync-cmd-MZYM5IE6.js} +1 -1
- package/dist/{sync-setup-JY4T2X3M.js → sync-setup-WGYN6ZTI.js} +1 -1
- package/dist/tcg-generate-Y2UMDGPL.js +2 -0
- package/dist/testmd-actions-UDNH6W2Z.js +2 -0
- package/dist/{testmd-sync-IRV44CGT.js → testmd-sync-4BXMEIJ3.js} +1 -1
- package/dist/token-refresh-KYIQ7LZL.js +2 -0
- package/dist/{validate-basic-A5TEMJNT.js → validate-basic-GBA5PHIK.js} +1 -1
- package/dist/{variable-receipt-QDP2S5CQ.js → variable-receipt-WMV33LAD.js} +1 -1
- package/dist/{verdicts-H755EUQL.js → verdicts-34ZGB67K.js} +1 -1
- package/dist/{version-check-26W5GVBQ.js → version-check-BHRM4PN4.js} +1 -1
- package/dist/{view-cmd-D3BYBDZE.js → view-cmd-FJGT5KZO.js} +1 -1
- package/dist/{walk-session-ZZ26LEQE.js → walk-session-CTZ5475S.js} +1 -1
- package/dist/{with-telemetry-UE6SYQWL.js → with-telemetry-AIPWSH4P.js} +1 -1
- package/package.json +11 -11
- package/dist/FolderPicker-MPLLN4VP.js +0 -2
- package/dist/SingleShotApp-JV64B4XL.js +0 -2
- package/dist/TestMdRunView-7N6QXMNR.js +0 -2
- package/dist/bridge-KJNDGKPU.js +0 -2
- package/dist/chunk-2KYJOBNI.js +0 -6
- package/dist/chunk-N4HKQTD5.js +0 -93
- package/dist/chunk-TG4GGP3H.js +0 -26
- package/dist/chunk-YVKNKK22.js +0 -5
- package/dist/evidence-EBD3FIXA.js +0 -2
- package/dist/install-2PUHCC2Y.js +0 -2
- package/dist/login-flow-V4US6VQP.js +0 -2
- package/dist/prepare-target-IES7FXJG.js +0 -2
- package/dist/registry-W3BMHQDQ.js +0 -2
- package/dist/tcg-generate-GWLHZYLF.js +0 -2
- package/dist/testmd-actions-SYMNRTK4.js +0 -2
- package/dist/token-refresh-IM6ELK6S.js +0 -2
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { createRequire } from 'module'; const require = createRequire(import.meta.url);
|
|
2
|
-
import{d as W}from"./chunk-MSGW4JDG.js";import{d as U,e as F}from"./chunk-4JOD47QI.js";import{a as H}from"./chunk-
|
|
3
|
-
`));this.deviceClass=s;this.name="DepsInstallRequiredError"}};function _(i){return i>=1024*1024?`${Math.ceil(i/(1024*1024))} MB`:`${i} bytes`}function at(i){let t=i/1048576;return t>=10?`${Math.round(t)} MB/s`:t>=1?`${t.toFixed(1)} MB/s`:`${Math.max(1,Math.round(i/1024))} KB/s`}function lt(i){let t=Math.max(1,Math.round(i));return t<60?`~${t}s left`:`~${Math.floor(t/60)}m ${t%60}s left`}var K=8*1024*1024,ct=8;function ut(i){if(!Number.isFinite(i)||i<2*K)return null;let t=Math.min(ct,Math.floor(i/K)),s=Math.ceil(i/t),e=[];for(let n=0;n<i;n+=s)e.push({start:n,end:Math.min(n+s,i)-1});return e}async function L(i,t){let s=i.body;if(!s||typeof s.getReader!="function"){let c=new Uint8Array(await i.arrayBuffer());return t?.(c.length),c}let e=s.getReader(),n=[],r=0;for(;;){let{done:c,value:h}=await e.read();if(c)break;h&&(n.push(h),r+=h.length,t?.(h.length))}let o=new Uint8Array(r),a=0;for(let c of n)o.set(c,a),a+=c.length;return o}var z=3,dt=3e4,k=class extends Error{};async function pt(i,t,s,e,n,r=dt){let o=new Uint8Array(s),a=0,c=new AbortController,h=null,b=!1;try{await Promise.all(e.map(async(f,M)=>{let P=0,V=d=>{P+=d,a+=d,n?.(a)},T=()=>{a=Math.max(0,a-P),P=0},R=null;for(let d=0;d<z;d+=1){if(c.signal.aborted)return;let u=new AbortController,m=()=>u.abort();c.signal.addEventListener("abort",m,{once:!0});let w=!1,g=null,$=()=>{g&&clearTimeout(g),g=setTimeout(()=>{w=!0,u.abort()},r)};try{$();let p=await i(t,{headers:{Range:`bytes=${f.start}-${f.end}`},signal:u.signal});if(typeof p.body?.getReader!="function"&&g&&(clearTimeout(g),g=null),!p.ok)throw new k(`Could not download ${t}: HTTP ${p.status}`);if(p.status!==206){b=!0,M===0?h=await L(p,I=>{$(),V(I)}):await(p.body?.cancel().catch(()=>{})??Promise.resolve());return}let D=f.end-f.start+1,E=await L(p,I=>{$(),V(I)});if(E.length!==D)throw new Error(`range ${f.start}-${f.end} returned ${E.length} bytes (expected ${D})`);o.set(E,f.start);return}catch(p){if(p instanceof k)throw p;if(c.signal.aborted)return;T(),R=w?new Error(`no data for ${Math.round(r/1e3)}s`):p instanceof Error?p:new Error(String(p))}finally{g&&clearTimeout(g),c.signal.removeEventListener("abort",m)}}throw new Error(`Could not download ${t}: range ${f.start}-${f.end} failed after ${z} attempts (${R?.message??"unknown error"}) \u2014 check your network and rerun \`kane-cli doctor --target <emulator|simulator> --install\`.`)}))}catch(f){throw c.abort(),f}return h||(b?null:o)}async function ht(i,t,s,e,n){let r=ut(s);if(r){let c=await pt(i,t,s,r,e,n?.stallMs);if(c)return c}let o=await i(t);if(!o.ok)throw new Error(`Could not download ${t}: HTTP ${o.status}`);let a=0;return L(o,e&&(c=>{a+=c,e(a)}))}function ft(i){return Y("sha256").update(i).digest("hex")}function mt(i,t){let s=X(i,t);return s!==""&&!s.startsWith(`..${it}`)&&s!==".."&&!nt(s)}async function A(i){try{return await Q(i),!0}catch{return!1}}function wt(){return{home:tt(),os:st,arch:et,cliVersion:H,nodeModuleVersion:process.versions.modules,fetch,resolveBundle:async i=>(await import("./deps-resolve-
|
|
2
|
+
import{d as W}from"./chunk-MSGW4JDG.js";import{d as U,e as F}from"./chunk-4JOD47QI.js";import{a as H}from"./chunk-OWPQZP4C.js";import{createHash as Y}from"crypto";import{access as Q,mkdir as S,mkdtemp as Z,readdir as O,readFile as y,rename as N,rm as v,writeFile as x}from"fs/promises";import{homedir as tt}from"os";import{arch as et,platform as st}from"process";import{dirname as C,isAbsolute as nt,join as l,relative as X,resolve as rt,sep as it}from"path";var q=1,ot={emulator:"emulator",simulator:"simulator"};function Pt(i){return ot[i.kind]??null}var j=class extends Error{constructor(s,e,n){super([`Managed mobile dependencies for ${s} are not installed.`,`- kaneai-mobile-deps ${s} ${e.bundleVersion}: ${e.url} (${_(e.bytes)})`,`Destination: ${n}`,`Run \`kane-cli doctor --target ${s} --install\` to download it.`].join(`
|
|
3
|
+
`));this.deviceClass=s;this.name="DepsInstallRequiredError"}};function _(i){return i>=1024*1024?`${Math.ceil(i/(1024*1024))} MB`:`${i} bytes`}function at(i){let t=i/1048576;return t>=10?`${Math.round(t)} MB/s`:t>=1?`${t.toFixed(1)} MB/s`:`${Math.max(1,Math.round(i/1024))} KB/s`}function lt(i){let t=Math.max(1,Math.round(i));return t<60?`~${t}s left`:`~${Math.floor(t/60)}m ${t%60}s left`}var K=8*1024*1024,ct=8;function ut(i){if(!Number.isFinite(i)||i<2*K)return null;let t=Math.min(ct,Math.floor(i/K)),s=Math.ceil(i/t),e=[];for(let n=0;n<i;n+=s)e.push({start:n,end:Math.min(n+s,i)-1});return e}async function L(i,t){let s=i.body;if(!s||typeof s.getReader!="function"){let c=new Uint8Array(await i.arrayBuffer());return t?.(c.length),c}let e=s.getReader(),n=[],r=0;for(;;){let{done:c,value:h}=await e.read();if(c)break;h&&(n.push(h),r+=h.length,t?.(h.length))}let o=new Uint8Array(r),a=0;for(let c of n)o.set(c,a),a+=c.length;return o}var z=3,dt=3e4,k=class extends Error{};async function pt(i,t,s,e,n,r=dt){let o=new Uint8Array(s),a=0,c=new AbortController,h=null,b=!1;try{await Promise.all(e.map(async(f,M)=>{let P=0,V=d=>{P+=d,a+=d,n?.(a)},T=()=>{a=Math.max(0,a-P),P=0},R=null;for(let d=0;d<z;d+=1){if(c.signal.aborted)return;let u=new AbortController,m=()=>u.abort();c.signal.addEventListener("abort",m,{once:!0});let w=!1,g=null,$=()=>{g&&clearTimeout(g),g=setTimeout(()=>{w=!0,u.abort()},r)};try{$();let p=await i(t,{headers:{Range:`bytes=${f.start}-${f.end}`},signal:u.signal});if(typeof p.body?.getReader!="function"&&g&&(clearTimeout(g),g=null),!p.ok)throw new k(`Could not download ${t}: HTTP ${p.status}`);if(p.status!==206){b=!0,M===0?h=await L(p,I=>{$(),V(I)}):await(p.body?.cancel().catch(()=>{})??Promise.resolve());return}let D=f.end-f.start+1,E=await L(p,I=>{$(),V(I)});if(E.length!==D)throw new Error(`range ${f.start}-${f.end} returned ${E.length} bytes (expected ${D})`);o.set(E,f.start);return}catch(p){if(p instanceof k)throw p;if(c.signal.aborted)return;T(),R=w?new Error(`no data for ${Math.round(r/1e3)}s`):p instanceof Error?p:new Error(String(p))}finally{g&&clearTimeout(g),c.signal.removeEventListener("abort",m)}}throw new Error(`Could not download ${t}: range ${f.start}-${f.end} failed after ${z} attempts (${R?.message??"unknown error"}) \u2014 check your network and rerun \`kane-cli doctor --target <emulator|simulator> --install\`.`)}))}catch(f){throw c.abort(),f}return h||(b?null:o)}async function ht(i,t,s,e,n){let r=ut(s);if(r){let c=await pt(i,t,s,r,e,n?.stallMs);if(c)return c}let o=await i(t);if(!o.ok)throw new Error(`Could not download ${t}: HTTP ${o.status}`);let a=0;return L(o,e&&(c=>{a+=c,e(a)}))}function ft(i){return Y("sha256").update(i).digest("hex")}function mt(i,t){let s=X(i,t);return s!==""&&!s.startsWith(`..${it}`)&&s!==".."&&!nt(s)}async function A(i){try{return await Q(i),!0}catch{return!1}}function wt(){return{home:tt(),os:st,arch:et,cliVersion:H,nodeModuleVersion:process.versions.modules,fetch,resolveBundle:async i=>(await import("./deps-resolve-52BOL7G6.js")).controllerResolveBundle()(i),exec:U,now:()=>new Date,wait:F,processAlive:i=>{try{return process.kill(i,0),!0}catch{return!1}}}}var B=class extends Error{constructor(s,e,n){super(`No managed mobile dependencies are published for ${s} (kane-cli ${e}).
|
|
4
4
|
This is a packaging gap, not something to install locally \u2014 report it, or pass --appium-url to use an Appium server you manage yourself.`);this.coordinate=s;this.cause=n;this.name="NoPublishedBundleError"}},J=class i{deps;constructor(t={}){this.deps={...wt(),...t}}mobileRoot(){return l(this.deps.home,".testmuai","kaneai","mobile")}depsRoot(){return l(this.mobileRoot(),"deps")}classRoot(t,s){return l(this.depsRoot(),s,t)}resolveCacheFile(){return l(this.depsRoot(),"resolve-cache.json")}resolveCacheKey(t){return`${this.deps.cliVersion}|${this.deps.os}-${this.deps.arch}-${t}`}static RESOLVE_CACHE_TTL_MS=1440*60*1e3;async readCachedWantedVersion(t){try{let e=JSON.parse(await y(this.resolveCacheFile(),"utf8"))[this.resolveCacheKey(t)];if(!e?.bundleVersion||!e.fetchedAt)return null;let n=this.deps.now().getTime()-new Date(e.fetchedAt).getTime();return n>=0&&n<i.RESOLVE_CACHE_TTL_MS?e.bundleVersion:null}catch{return null}}async writeResolveCache(t,s){try{let e={};try{e=JSON.parse(await y(this.resolveCacheFile(),"utf8"))}catch{}e[this.resolveCacheKey(t)]={bundleVersion:s,fetchedAt:this.deps.now().toISOString()},await S(this.depsRoot(),{recursive:!0}),await x(this.resolveCacheFile(),`${JSON.stringify(e,null,2)}
|
|
5
5
|
`)}catch{}}async warmResolveCache(t){if(await this.readCachedWantedVersion(t)===null)try{await this.resolveOrExplain(t)}catch{}}paths(t,s){let e=this.classRoot(t,s);return{root:e,appium:l(e,"appium"),appiumHome:l(e,"appium-home"),platformTools:l(e,"platform-tools"),wdaDir:l(e,"wda","Build","Products","Debug-iphonesimulator"),iwdpBinDir:l(e,"bin"),installManifest:l(e,"install-manifest.json")}}async status(t,s){s||(s=await this.readCachedWantedVersion(t)??void 0);let e=[];try{e=await O(this.depsRoot())}catch{}s&&(e=e.filter(c=>c===s));let n=null;for(let c of e){let h=this.classRoot(t,c),b=null;try{b=JSON.parse(await y(l(h,"install-manifest.json"),"utf8"))}catch{continue}b.schemaVersion===q&&(!s&&b.cliVersion!==this.deps.cliVersion||(!n||b.installedAt>n.manifest.installedAt)&&(n={manifest:b,root:h}))}if(!n)return{class:t,installed:!1};let r=this.paths(t,n.manifest.bundleVersion),o=[l(r.appium,"node_modules","appium","index.js")];t==="emulator"&&o.push(l(r.platformTools,this.deps.os==="win32"?"adb.exe":"adb")),t==="simulator"&&o.push(l(r.wdaDir,"WebDriverAgentRunner-Runner.app"));for(let c of o)if(!await A(c))return{class:t,installed:!1,version:n.manifest.bundleVersion,root:n.root,corrupt:`a bundle component is missing from disk (${X(n.root,c)})`};let a=await this.postInstallDrifted(r);return{class:t,installed:!0,version:n.manifest.bundleVersion,root:n.root,...a?{needsRepair:a}:{}}}async postInstallDrifted(t){let s=l(t.appiumHome,"node_modules",".cache","appium","extensions.yaml");if(!await A(s))return!1;let e=await y(s,"utf8");for(let n of e.split(`
|
|
6
6
|
`)){let r=/^\s*installPath:\s*(.+?)\s*$/.exec(n);if(r&&!r[1].startsWith(t.appiumHome))return!0}return!1}async environment(t){let s=await this.status(t);if(!s.installed||!s.version)return{dirs:[]};let e=this.paths(t,s.version),n=[],r={dirs:n,appiumHome:e.appiumHome};return t!=="simulator"&&(n.push(e.platformTools),r.platformToolsDir=e.platformTools),n.push(l(e.appium,"node_modules",".bin")),t==="simulator"&&(n.push(e.iwdpBinDir),r.wdaDir=e.wdaDir,r.wdaRoot=l(e.root,"wda"),r.iwdpBinDir=e.iwdpBinDir),r}async ensure(t,s){let e,n;try{e=await this.resolveOrExplain(t)}catch(a){n=a}let r=await this.status(t,e?.bundleVersion);if(r.installed&&!r.needsRepair)return e&&r.version&&await this.adoptInstall(t,r.version),r;if(!e)throw n;if(r.installed&&r.needsRepair&&r.version){let a=this.paths(t,r.version);return await this.withInstallLock(async()=>{await this.postInstall(a.root,a,s.onProgress)}),await this.adoptInstall(t,r.version),this.status(t,e.bundleVersion)}let o=e;if(!s.automatic&&!s.approved)throw new j(t,o,this.classRoot(t,o.bundleVersion));return await this.withInstallLock(async()=>{(await this.status(t,o.bundleVersion)).installed||await this.install(t,o,s.onProgress)}),this.status(t,o.bundleVersion)}async adoptInstall(t,s){try{let e=this.paths(t,s).installManifest,n=JSON.parse(await y(e,"utf8"));if(n.cliVersion===this.deps.cliVersion)return;n.cliVersion=this.deps.cliVersion;let r=l(C(e),`install-manifest-${process.pid}.json`);await x(r,`${JSON.stringify(n,null,2)}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { createRequire } from 'module'; const require = createRequire(import.meta.url);
|
|
2
|
-
import{a as l}from"./chunk-DHJSM5DT.js";import{a as c}from"./chunk-NLCCBXXV.js";import{a}from"./chunk-RZ4F3BHX.js";var h=class{constructor(e,t,r,s){this.controllerBaseUrl=e;this.getOAuthToken=t;this.directBasicAuth=r;this.log=s}_cached=null;_revoked=!1;_lastError=null;revoke(){this._revoked=!0,this._cached=null}prime(e){this._revoked||(this._cached=e)}get revoked(){return this._revoked}get cached(){return this._cached}get lastError(){return this._lastError}async resolve(e=!1){if(this._cached&&!e)return this._cached;try{let t;if(this.directBasicAuth)t=new l(this.controllerBaseUrl,{username:this.directBasicAuth.username,accessKey:this.directBasicAuth.access_key});else{let s=await this.getOAuthToken();if(!s)return null;t=new l(this.controllerBaseUrl,s)}let r=await t.getTmsCredentials();this.directBasicAuth&&!r.access_key&&(r.access_key=this.directBasicAuth.access_key),this._cached=r,this._lastError=null;try{let[{refreshIdentitySnapshot:s},{telemetryEnvName:n}]=await Promise.all([import("./identity-ADZ4PAJF.js"),import("./bootstrap-
|
|
2
|
+
import{a as l}from"./chunk-DHJSM5DT.js";import{a as c}from"./chunk-NLCCBXXV.js";import{a}from"./chunk-RZ4F3BHX.js";var h=class{constructor(e,t,r,s){this.controllerBaseUrl=e;this.getOAuthToken=t;this.directBasicAuth=r;this.log=s}_cached=null;_revoked=!1;_lastError=null;revoke(){this._revoked=!0,this._cached=null}prime(e){this._revoked||(this._cached=e)}get revoked(){return this._revoked}get cached(){return this._cached}get lastError(){return this._lastError}async resolve(e=!1){if(this._cached&&!e)return this._cached;try{let t;if(this.directBasicAuth)t=new l(this.controllerBaseUrl,{username:this.directBasicAuth.username,accessKey:this.directBasicAuth.access_key});else{let s=await this.getOAuthToken();if(!s)return null;t=new l(this.controllerBaseUrl,s)}let r=await t.getTmsCredentials();this.directBasicAuth&&!r.access_key&&(r.access_key=this.directBasicAuth.access_key),this._cached=r,this._lastError=null;try{let[{refreshIdentitySnapshot:s},{telemetryEnvName:n}]=await Promise.all([import("./identity-ADZ4PAJF.js"),import("./bootstrap-545GY5CC.js")]);await s(n(),r)}catch{}return this.log?.("info","AUTH_RESOLVE_OK","Auth resolved",{username:r.username,org_id:r.org_id,user_id:r.user_id}),r}catch(t){return this._lastError=t instanceof Error?t:new Error(String(t)),this.log?.("warn","AUTH_RESOLVE_FAILED","Auth resolve failed",{error:this._lastError.message}),null}}async fetch(e,t={}){if(this._revoked)throw new Error("Resolver has been revoked \u2014 identity changed");let r=await this.resolve();if(!r)throw new Error("Not authenticated \u2014 no credentials resolved");let s=i=>({...t,headers:{...t.headers,Authorization:c(i.username,i.access_key)}}),n=await a(e,s(r));if(n.status===401){if(this._revoked)throw new Error("Resolver has been revoked \u2014 identity changed");this.log?.("warn","AUTH_RESOLVE_401","Got 401, re-resolving",{url:e});let i=await this.resolve(!0);if(!i)throw new Error("Re-authentication failed after 401");return a(e,s(i))}return n}};function _(o){if(!o)return"network";let e=/failed:\s*(\d{3})\b/.exec(o.message)?.[1];return e==="401"||e==="403"?"auth":e?"server":"network"}export{h as a,_ as b};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { createRequire } from 'module'; const require = createRequire(import.meta.url);
|
|
2
|
-
import{a as S}from"./chunk-I7TIGB7K.js";import{a as x,b as P,c as C,d as V,e as j}from"./chunk-
|
|
2
|
+
import{a as S}from"./chunk-I7TIGB7K.js";import{a as x,b as P,c as C,d as V,e as j}from"./chunk-PCBCEXYO.js";import{a as R,b as D}from"./chunk-KDNNMU7Q.js";import{o as f,p as k,z as y}from"./chunk-IICT4VOU.js";import{e as b}from"./chunk-3UI5VTQS.js";import{f as w}from"./chunk-FQNQVC5O.js";function I(o,t){return{contextDir:o,rootSid:t,locks:w(o,t),probe:S(o,{resolveAlias:i=>P(i),embed:(i,s)=>C(i,s),readVector:(i,s)=>V(o,i,s),writeVector:(i,s,n)=>j(o,i,s,n)})}}var N=new Set(["archive"]);async function Y(o,t,i,s){let n=y(o.contextDir);if(i.v==="defer")return{outcome:"deferred"};if(t.kind==="MODIFY_HELD"){if(!t.heldPayload)return{outcome:"failed",detail:`${t.ref} carries no held payload`};let e=t.heldPayload;if(i.v==="keep_current"){if(!e.event_id)return{outcome:"failed",detail:`this held row has no durable event id \u2014 resume the owner to drop it: kane-cli context extract --resume ${e.sid}`};let{commitChatTurn:r}=await import("./chat-committer-6D7AQI6Z.js"),u=r({contextDir:o.contextDir,graph:n,ops:[{kind:"resolve_question",questionId:`drop-held:${e.sid}:${e.tempRef}`,resolution:"deferred",eventId:e.event_id}],by:s});return u.errors?{outcome:"failed",detail:u.errors.map(d=>`${d.code}: ${d.detail}`).join("; ")}:(o.signals?.({ref:t.ref,verdict:"held-dropped"}),{outcome:"committed",detail:"held payload dropped (recorded) \u2014 the owner's resume will not re-present it"})}if(i.v==="approve"){let r=e.content._held??null;if(!r?.source_id||!r.source_cid||!r.anchor||!r.quote)return{outcome:"failed",detail:`this held row carries no committable provenance \u2014 resume the owner to apply it: kane-cli context extract --resume ${e.sid}`};{let a=n.mediaOf(r.source_cid),m=R(o.contextDir,n,r.source_cid),g=a.format==="image"?null:m?D(m):null;if(a.format!=="image"&&g===null)return{outcome:"failed",detail:`the pinned source ${r.source_id} (${r.source_cid.slice(0,19)}) has no citable text to verify this held row against \u2014 resume the owner: kane-cli context extract --resume ${e.sid}`};let _=b(a,{anchor:r.anchor,quote:r.quote},g);if(_.length>0)return{outcome:"failed",detail:`held provenance does not verify against the pinned source (${_.map($=>`${$.code}: ${$.detail}`).join("; ")}) \u2014 resume the owner: kane-cli context extract --resume ${e.sid}`}}let{commitProposal:u}=await import("./committer-2QPBANRD.js"),{_held:d,...c}=e.content,q={version:1,read_basis:n.latestHash,source:{source_id:r.source_id,source_cid:r.source_cid},use_cases:[{temp_ref:e.tempRef,title:String(c.title??e.tempRef),...c.summary!==void 0?{summary:c.summary}:{},risk:String(c.risk??"med"),cite:{anchor:r.anchor,quote:r.quote},depends_on_hint:[],matches_existing:null}]},l=await x(I(o.contextDir,o.rootSid??`review-${process.pid}`),{verb:"maintain",ucTargets:[],newBuCandidates:[{tempRef:e.tempRef,title:String(c.title??e.tempRef),probeText:`${String(c.title??"")} ${String(c.summary??"")}`.trim()}],sourcePins:[{source_id:r.source_id,source_cid:r.source_cid}],readBasis:n.latestHash,...e.event_id?{eventIds:[e.event_id]}:{}},a=>{let m=u({contextDir:o.contextDir,graph:a.graph,proposal:q,proposalId:null,verdicts:new Map([[e.tempRef,{resolution:"skipped"}]]),by:s,autoName:!0,allowStaleBasis:!0,eventIds:e.event_id?[e.event_id]:a.eventIds("maintain",1),sid:a.sid,probeHits:a.probeHits});return m.errors!==null?{errors:m.errors}:{result:m,record:m.record}}),h=l.ok&&"result"in l?l.result:{record:null,errors:l.ok?null:l.kind==="validation"?l.errors:[{code:l.kind==="contended"?l.err.code:"UNSETTLED",detail:l.kind==="contended"?`held by ${l.err.holder?.owner_sid??"another session"}`:"concurrent activity kept moving the store"}]};return h.errors?{outcome:"failed",detail:h.errors.map(a=>`${a.code}: ${a.detail}`).join("; ")}:(o.signals?.({ref:t.ref,verdict:"held-applied"}),{outcome:"committed",detail:`held payload committed (derived) by ${s.id}`})}return{outcome:"failed",detail:`verdict ${i.v} does not apply to a MODIFY_HELD card`}}let v=n.resolve(t.ref);if(!v)return{outcome:"failed",detail:`${t.ref} names nothing in the graph`};let p=n.tipOf(v.cid);if(i.v==="archive"){if(!i.because||!i.because.trim())return{outcome:"failed",detail:"archive requires --because (a reason the record keeps)"};let e=f({contextDir:o.contextDir,graph:n,verdicts:new Map([[p,{resolution:"rejected",reason:i.because}]]),by:s});return e.errors?{outcome:"failed",detail:e.errors.map(r=>`${r.code}: ${r.detail}`).join("; ")}:(o.signals?.({ref:t.ref,verdict:"archived",reason:i.because}),{outcome:"retired"})}if(i.v==="approve"){let e=f({contextDir:o.contextDir,graph:n,verdicts:new Map([[p,{resolution:"approved"}]]),by:s});return e.errors?{outcome:"failed",detail:e.errors.map(r=>`${r.code}: ${r.detail}`).join("; ")}:(o.signals?.({ref:t.ref,verdict:"approved"}),{outcome:"applied"})}if(i.v==="merge"||i.v==="keep_both"){if(t.kind!=="PAIR"||!t.pair)return{outcome:"failed",detail:`${t.ref} is not a PAIR card`};let e=n.resolve(t.pair.candidate_cid);if(!e)return{outcome:"failed",detail:`pair candidate ${t.pair.candidate_ref} names nothing`};let r=n.tipOf(e.cid);if(i.v==="merge"){let d=k({contextDir:o.contextDir,graph:n,survivor:r,merged:p,reason:`pair merge: duplicate of ${t.pair.candidate_ref} (score ${t.pair.score})`,by:s});return d.errors?{outcome:"failed",detail:d.errors.map(c=>`${c.code}: ${c.detail}`).join("; ")}:(o.signals?.({ref:t.ref,verdict:"pair-merged",reason:t.pair.candidate_ref}),{outcome:"committed",detail:`merged into ${t.pair.candidate_ref} \u2014 survivor stays derived`})}let u=f({contextDir:o.contextDir,graph:n,verdicts:new Map([[p,{resolution:"approved"}],[r,{resolution:"approved"}]]),by:s});return u.errors?{outcome:"failed",detail:u.errors.map(d=>`${d.code}: ${d.detail}`).join("; ")}:(o.signals?.({ref:t.ref,verdict:"pair-kept-both",reason:t.pair.candidate_ref}),{outcome:"applied",detail:"both promoted as distinct"})}return{outcome:"failed",detail:`verdict ${i.v} does not apply to a ${t.kind} card`}}export{I as a,N as b,Y as c};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { createRequire } from 'module'; const require = createRequire(import.meta.url);
|
|
2
|
-
import{f as d}from"./chunk-
|
|
2
|
+
import{f as d}from"./chunk-47ZPSTT6.js";function w(r){let{isAgent:c,log:m}=r,a=r.stdout??process.stderr,s=r.stdin??process.stdin,p=t=>{c&&d(t)};return{async runSteps(t){let{default:e}=await import("./react-QWOAB3TB.js"),{render:o}=await import("./build-JIKYOZUH.js"),{TestMdRunView:i}=await import("./TestMdRunView-GIOPBTA6.js"),{ScrollbackProvider:n}=await import("./scrollback-JLPJR25X.js"),{waitUntilExit:l}=o(e.createElement(n,null,e.createElement(i,t)),{stdout:a,stdin:s,exitOnCtrlC:!1});await l()},async runUpload(t,e){let{renderUploadProgress:o}=await import("./CliUploadProgress-R6FHYXP5.js");return await o(t,e)},async onSummary(t){try{let{default:e}=await import("./react-QWOAB3TB.js"),{render:o}=await import("./build-JIKYOZUH.js"),{AutoExitSummaryBox:i}=await import("./SummaryBox-7OBZAVJU.js"),{waitUntilExit:n}=o(e.createElement(i,{data:t}),{stdout:a,stdin:s});await n()}catch(e){m("warn","TEST_MD_SUMMARY_RENDER_FAILED","Summary box render failed",{error:String(e)})}},async onLinks(t){try{let{default:e}=await import("./react-QWOAB3TB.js"),{render:o}=await import("./build-JIKYOZUH.js"),{LinksBox:i}=await import("./LinksBox-MQOD3X3E.js"),{waitUntilExit:n}=o(e.createElement(i,t),{stdout:a,stdin:s});await n()}catch(e){m("warn","TEST_MD_LINKS_RENDER_FAILED","LinksBox render failed",{error:String(e)})}},onLockState(t){p({type:"test_md_lock_state",...t})},onAdaptiveHeal(t){p({type:"test_md_adaptive_heal",...t})},onAgentEvent(t){p(t)}}}export{w as a};
|